/* ================================================== */
/* ETKİNLİKLER ÖZEL STİLLERİ (etkinlikler.css)         */
/* ================================================== */

/* _Layout'tan gelen --primary-color değişkenini veya yedeğini kullanır */
:root {
    --primary-color: #0d6efd;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif; /* Sitenin ana fontu */
}

/* 1. SAYFA BAŞLIĞI (Düzeltildi) */
.page-header {
    background-color: var(--bg-light); /* Anasayfa ile uyumlu */
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
    text-align: center;
}

.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. KART IZGARASI (Index.cshtml) */
.card-grid {
    display: grid;
    /* 320px'lik sütunlarla duyarlı bir grid oluşturur */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* KART (Anasayfadaki .news-card stiline benzetildi) */
.card {
    background-color: var(--bg-white);
    border-radius: 8px;
    border: 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.card-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card-content p {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Açıklamayı aşağı iter */
}

/* "Detaylar" linki (Anasayfadaki .news-card-link stili) */
.card-content .btn-link {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    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;
    margin-top: auto; /* Butonu en alta iter */
    align-self: flex-start;
}

.card-content .btn-link:hover {
    color: #fff;
    background-color: var(--primary-color);
    text-decoration: none;
}

/* 4. ETKİNLİK 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-image {
    width: 100%;
    max-height: 450px; 
    object-fit: cover;
    border-radius: 0.3rem;
    margin-bottom: 2rem;
}

.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, .detail-text ul, .detail-text ol {
    margin-bottom: 1.5rem;
}

/* Geri Dön Butonu */
.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);
}