/* Quiz Page Styles - Updated */

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.quiz-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.quiz-card .card-header {
    border: none;
    padding: 1rem;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.quiz-card .card-body {
    padding: 1rem;
}

.quiz-card .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.6em;
}

.quiz-card .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.btn-purple {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

.btn-purple:hover {
    background-color: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

.quick-quiz-box {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ── Coming Soon: Yakında bölümü ── */
.coming-soon-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
}

.coming-soon-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.coming-soon-toggle:hover {
    color: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.15);
}
.coming-soon-toggle .toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.25s;
}
.coming-soon-toggle:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
}
.coming-soon-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 0.05rem 0.55rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.coming-soon-card {
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
    filter: grayscale(0.4);
}

.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* ── Pratik Sayfası: Arama & Filtre ── */

.search-bar {
    position: relative;
}

.search-bar input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg, 0.75rem);
    color: var(--text-light, #e2e8f0);
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    width: 100%;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
    background: rgba(99, 102, 241, 0.08);
}

.search-bar input::placeholder {
    color: var(--text-muted, #64748b);
}

.search-bar .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #64748b);
    font-size: 0.85rem;
    pointer-events: none;
}

.search-bar .clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1;
    display: none;
}

.search-bar input:not(:placeholder-shown) ~ .clear-btn {
    display: block;
}

/* ── Filtre Chips ── */

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 8px ;
}

.chip {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary, #94a3b8);
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1.5;
}

.chip:hover {
    border-color: rgba(99, 102, 241, 0.5);
    color: #c4b5fd;
}

.chip.active {
    background: var(--primary, #6366f1);
    border-color: var(--primary, #6366f1);
    color: #fff;
}

.chip .chip-icon {
    font-size: 0.6rem;
}

/* Zorluk chip'leri: pasif durum ikon renkleri */
.chip.diff-easy   .chip-icon { color: var(--success, #22c55e); }
.chip.diff-medium .chip-icon { color: var(--warning, #f59e0b); }
.chip.diff-hard   .chip-icon { color: var(--danger, #ef4444); }

/* Zorluk chip'leri: aktif durum */
.chip.diff-easy.active {
    background: var(--success, #22c55e);
    border-color: var(--success, #22c55e);
    color: #fff;
}

.chip.diff-medium.active {
    background: var(--warning, #f59e0b);
    border-color: var(--warning, #f59e0b);
    color: #1a1a1a;
}

.chip.diff-hard.active {
    background: var(--danger, #ef4444);
    border-color: var(--danger, #ef4444);
    color: #fff;
}

/* Aktif chip'te ikon rengi arka planla kontrast sağlamalı */
.chip.active .chip-icon,
.chip.diff-easy.active .chip-icon,
.chip.diff-hard.active .chip-icon {
    color: #fff;
}

.chip.diff-medium.active .chip-icon {
    color: #1a1a1a;
}

/* Durum chip'leri */
.chip.st-progress.active {
    background: var(--primary, #6366f1);
    border-color: var(--primary, #6366f1);
}

.chip.st-done.active {
    background: var(--success, #22c55e);
    border-color: var(--success, #22c55e);
}

/* ── Konu Kartları ── */

.topic-card {
    background: var(--bg-card, #1e293b);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-xl, 1rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    border-color: rgba(99, 102, 241, 0.35);
}

.topic-card.is-weak {
    border-color: rgba(239, 68, 68, 0.35);
}

.topic-card.review-due {
    border-color: rgba(6, 182, 212, 0.35);
}

.tc-head {
    background: #5143b142 !important;
    padding: 0.9rem 1rem 0.75rem;
}

.tc-body {
    padding: 0.85rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.tc-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.tc-stars {
    margin-top: 0.4rem;
}

.tc-stars i {
    font-size: 0.58rem;
}

.tc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.55rem;
}

.tc-tag {
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.67rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    line-height: 1.5;
}

.tc-desc {
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.45;
    flex: 1;
    margin-bottom: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-progress-wrap {
    margin-bottom: 0.75rem;
}

.tc-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 0.3rem;
}

.tc-progress-label span:last-child {
    color: var(--text-light, #e2e8f0);
    font-weight: 600;
}

.tc-bar {
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.tc-bar-fill {
    height: 5px;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.tc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tc-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tc-meta span {
    font-size: 0.72rem;
    color: var(--text-muted, #64748b);
}

.topic-item.hidden {
    display: none !important;
}

#topicCount {
    font-size: 0.82rem;
    color: var(--text-muted, #64748b);
}

#noResults {
    display: none;
}

#noResults.show {
    display: block;
}
