/**
 * TerfiUI v5 - Duyurular & Sınav Bildirimleri Modüler CSS (assets/css/pages/duyurular.css)
 * Tüm sınıflar 'gd-' prefix'i kullanır. Inline CSS içermez. Mobile-first responsive yapılıdır.
 */

/* ── 1. KOMPAKT HERO HEADER KARTI VE KURUMLARA ÖZEL SAĞ KÖŞE SİLÜET LOGO ── */
.gd-ann-hero-compact {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}

.gd-ann-hero-inst-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    flex-shrink: 0;
}

.gd-ann-hero-inst-img {
    max-height: 48px;
    max-width: 120px;
    object-fit: contain;
    display: block;
    opacity: 1;
    filter: none;
}

.gd-ann-hero-inst-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.gd-ann-hero-compact .gd-page-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff1f2;
    color: #f43f5e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-ann-hero-compact .gd-page-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.gd-ann-hero-compact .gd-page-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* ── 2. ARAMA VE SEGMENTED FİLTRELEME ÇUBUĞU (RULE 23) ─────────────────── */
.gd-mev-controls {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.gd-mev-search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.gd-mev-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.gd-mev-search-input {
    width: 100%;
    height: 42px;
    padding: 10px 16px 10px 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.gd-mev-search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #f43f5e;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.gd-mev-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    overflow-x: auto;
    max-width: 100%;
}

.gd-mev-filter-btn {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gd-mev-filter-btn:hover {
    color: #0f172a;
}

.gd-mev-filter-btn.active {
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ── 3. KURUM VE GENEL DUYURU SEÇİCİ KAPSÜL BAR ────────────────────────── */
.gd-ann-inst-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    width: 100%;
    box-sizing: border-box;
}

.gd-ann-inst-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 8px;
    border-right: 1px solid #e2e8f0;
}

.gd-ann-inst-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gd-ann-inst-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.gd-ann-inst-btn.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.gd-ann-inst-btn.gd-inst-genel.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.gd-ann-featured-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

@media (max-width: 768px) {
    .gd-ann-featured-wrapper {
        grid-template-columns: 1fr;
    }
}

.gd-ann-featured-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1.5px solid #cbd5e1;
    padding: 24px;
    color: #0f172a;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gd-ann-featured-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.gd-ann-featured-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gd-ann-featured-star {
    background: #f59e0b;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gd-ann-featured-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
}

.gd-ann-featured-excerpt {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.gd-ann-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.gd-ann-meta-list {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
}

.gd-ann-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.gd-ann-btn-primary {
    background: #f43f5e;
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.gd-ann-btn-primary:hover {
    background: #e11d48;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
}

/* ── 5. DUYURU KART GRIDI TASARIMI (REFERANS GÖRSELE UYGUN) ─────────────── */
.gd-ann-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    width: 100%;
}

.gd-ann-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.gd-ann-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.gd-ann-card-body {
    padding: 20px 20px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: space-between;
}

.gd-ann-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.gd-ann-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gd-ann-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.gd-ann-card-title a:hover {
    color: #2563eb;
}

.gd-ann-card-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gd-ann-card-footer {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.gd-ann-card-date {
    font-size: 12.5px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.gd-ann-card-link {
    font-size: 13.5px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.gd-ann-card-link:hover {
    color: #1d4ed8;
    transform: translateX(2px);
}

/* ── 6. ROZETLER VE ETİKETLER (BADGES & TAGS) ───────────────────────────── */
.gd-ann-badge {
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.gd-ann-badge-news {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.gd-ann-badge-exam {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.gd-ann-badge-system {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.gd-ann-badge-official {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-weight: 800;
}

.gd-ann-inst-tag {
    background: #f1f5f9;
    color: #334155;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gd-ann-countdown {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ── 7. BOŞ DURUM (EMPTY STATE) & SAYFALAMA ────────────────────────────── */
.gd-ann-empty {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.gd-ann-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.gd-ann-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 6px 0;
}

.gd-ann-empty-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* ── 8. RESPONSIVE BREAKPOINTS (RULE 4) ─────────────────────────────────── */
@media (max-width: 991px) {
    .gd-mev-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .gd-mev-search-box {
        width: 100%;
    }

    .gd-mev-filter-group {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        overflow: visible;
        box-sizing: border-box;
    }

    .gd-mev-filter-btn {
        width: 100%;
        text-align: center;
        padding: 8px 6px;
        font-size: 12.5px;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .gd-ann-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gd-ann-hero-compact {
        padding: 12px;
    }

    .gd-ann-featured-card {
        padding: 16px;
    }

    .gd-ann-featured-title {
        font-size: 1.15rem;
    }

    .gd-mev-filter-btn {
        font-size: 11.5px;
        padding: 7px 4px;
    }
}
