/* =========================================
   ATASÖZÜ MODÜLÜ STİLLERİ
   ========================================= */

/* Header Card */
.atasozu-header-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.atasozu-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.atasozu-header-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    flex-shrink: 0;
}

.atasozu-header-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.atasozu-header-text p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Grid */
.atasozu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* Kart */
.atasozu-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 180px;
    display: flex;
    flex-direction: column;
}

.atasozu-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    background-color: #b5d7ff;
}

.atasozu-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.atasozu-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #d97706;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.atasozu-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.atasozu-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.atasozu-card-desc {
    display: none;
}

.atasozu-card-oran {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #94a3b8;
}

/* Eğer oran tek başına (meta dışında) ise */
.atasozu-card-content > .atasozu-card-oran {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

/* Meta içinde oran - border yok */
.atasozu-card-meta .atasozu-card-oran {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    margin-left: auto;
}

.mini-oran-bar {
    width: 60px;
    min-width: 60px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.mini-oran-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    border-radius: 2px;
}

/* Mini Kart */
.atasozu-card-mini {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    margin-bottom: 12px;
    height: 80px;
    display: flex;
    align-items: center;
}

.atasozu-card-mini:hover {
    background: #fffbeb;
}

.atasozu-card-mini a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.atasozu-card-mini .mini-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #d97706;
    flex-shrink: 0;
}

.atasozu-card-mini .mini-title {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Detay Sayfası */
.atasozu-detay-container {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.atasozu-baslik-card {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.atasozu-baslik-card .atasozu-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    margin: 0 auto 20px;
}

.atasozu-isim {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.atasozu-oran {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.oran-label {
    font-size: 13px;
    color: #64748b;
}

.oran-bar {
    width: 120px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.oran-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.oran-text {
    font-size: 14px;
    font-weight: 600;
    color: #d97706;
}

/* İçerik Kartları */
.atasozu-icerik-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.icerik-baslik {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.icerik-baslik i {
    color: #f59e0b;
}

.icerik-metin {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
}

.icerik-metin.ornek {
    font-style: italic;
    padding-left: 16px;
    border-left: 3px solid #f59e0b;
}

/* Kazanımlar */
.kazanim-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kazanim-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #475569;
}

.kazanim-item i {
    color: #22c55e;
    margin-top: 2px;
}

/* Etiketler */
.atasozu-etiketler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.etiket-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #fef3c7;
    border-radius: 20px;
    font-size: 12px;
    color: #92400e;
    text-decoration: none;
    transition: all 0.2s ease;
}

.etiket-badge:hover {
    background: #fde68a;
    color: #78350f;
    transform: translateY(-1px);
}

.etiket-badge i {
    font-size: 10px;
}

/* Kategori Inline Link */
.kategori-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    text-decoration: none;
    transition: all 0.2s ease;
}

.kategori-inline-link:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    color: #78350f;
}

/* Sidebar */
.atasozu-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.atasozu-sidebar-sticky {
    position: sticky;
    top: 70px;
    /* max-height ve overflow kaldırıldı - kendi içinde scroll yapmaması için */
}

.atasozu-sidebar-sticky::-webkit-scrollbar {
    display: none;
}


/* Sidebar Search Input */
.atasozu-sidebar-card .sidebar-search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 4px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.atasozu-sidebar-card .sidebar-search-input:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}


.atasozu-sidebar-card .sidebar-search-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.atasozu-sidebar-card .sidebar-search-input button:hover {
    transform: scale(1.05);
}

/* Popüler Liste */
.populer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.populer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.populer-item:hover,
.populer-item.active {
    background: #fef3c7;
}

.populer-text {
    font-size: 13px;
    color: #475569;
    flex: 1;
}

.populer-hit {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Section Header */
.section-header {
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: #f59e0b;
}

/* Benzerler */
.atasozu-benzerler {
    margin-top: 32px;
}

/* Sections */
.atasozu-sections {
    margin-top: 40px;
    padding: 32px 32px 16px 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Empty State */
.atasozu-empty {
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border-radius: 16px;
}

.atasozu-empty-icon {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.atasozu-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.atasozu-empty p {
    font-size: 14px;
    color: #64748b;
}

/* Pagination */
.atasozu-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
    .atasozu-sidebar-sticky {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .atasozu-header-card {
        padding: 24px;
    }

    .atasozu-header-content {
        flex-direction: column;
        text-align: center;
    }

    .atasozu-grid {
        grid-template-columns: 1fr;
    }

    .atasozu-detay-container {
        padding: 20px;
    }

    .atasozu-isim {
        font-size: 22px;
    }

    .atasozu-sections {
        padding: 20px;
    }
}

/* Ana Sayfa Link Card */
.ana-sayfa-card {
    padding: 0 !important;
}

.ana-sayfa-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #3d618d 0%, #5b82b0 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ana-sayfa-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 97, 141, 0.35);
    color: #fff;
}

.ana-sayfa-link i {
    font-size: 16px;
}

/* Kart Meta Alanı */
.atasozu-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

/* Seviye Badge */
.atasozu-card-seviye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.level-badge.a1, .seviye-inline-link.a1 { background: #dcfce7; color: #166534; }
.level-badge.a2, .seviye-inline-link.a2 { background: #d1fae5; color: #047857; }
.level-badge.b1, .seviye-inline-link.b1 { background: #fef3c7; color: #b45309; }
.level-badge.b2, .seviye-inline-link.b2 { background: #fed7aa; color: #c2410c; }
.level-badge.c1, .seviye-inline-link.c1 { background: #fecaca; color: #b91c1c; }
.level-badge.c2, .seviye-inline-link.c2 { background: #fca5a5; color: #991b1b; }

/* Seviye Inline Link */
.seviye-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.seviye-inline-link:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

