/* ================================================== */
/* DUYURULAR ÖZEL STİLLERİ (duyurular.css)             */
/* ================================================== */

/* _Layout'tan gelen --primary-color değişkenini veya yedeğini kullanır */
:root {
    --primary-color: #0d6efd;
    --danger-color: #dc3545; /* Önemli badge için */
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa; /* anasayfa.css'den */
}

/* DÜZELTME: Sitenin ana fontu eklendi */
body {
    font-family: 'Inter', sans-serif;
}

/* 1. SAYFA BAŞLIĞI (DÜZELTİLDİ) */
.page-header {
    background-color: var(--bg-light); /* Arka plan rengi anasayfa ile uyumlu hale getirildi */
    padding: 3rem 0; /* Boşluk artırıldı */
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
    text-align: center; /* Başlık ortalandı */
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* 2. ANA İÇERİK BÖLÜMÜ */
.content-section {
    padding-bottom: 3rem;
}

/* 3. ÖNEMLİ NİŞANI (Badge) */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-important {
    color: #fff;
    background-color: var(--danger-color);
}


/* 4. DUYURU LİSTESİ (Index.cshtml - DÜZELTİLDİ) */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.announcement-item {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px; /* Köşeler yuvarlatıldı */
    /* anasayfa.css'deki .news-card stili */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: none; /* Eski border kaldırıldı */
}

.announcement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* anasayfa.css hover stili */
    border-left-color: transparent; /* Eski border hover kaldırıldı */
}

.announcement-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.announcement-header h3 {
    flex-grow: 1;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.announcement-header .card-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    flex-shrink: 0;
}

.announcement-item > p {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* DÜZELTME: "Detaylar" linki, anasayfadaki gibi outline butona çevrildi */
.announcement-item .btn-link {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600; /* Daha belirgin */
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0.2rem;
    transition: all 0.15s ease-in-out;
}

.announcement-item .btn-link:hover {
    color: #fff;
    background-color: var(--primary-color);
    text-decoration: none;
}


/* 5. DUYURU DETAY SAYFASI (Details.cshtml) */
.detail-content {
    background-color: var(--bg-white);
    padding: 2rem 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.detail-text {
    color: #333;
    line-height: 1.8;
}

.detail-text p {
    margin-bottom: 1.5rem;
}

.detail-text ul, .detail-text ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.detail-text li {
    margin-bottom: 0.5rem;
}

.detail-content .btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
    margin-top: 2rem;
}

.detail-content .btn:hover {
    color: var(--bg-white);
    background-color: var(--primary-color);
}