/* ====================================================
   YAPALI - FIRSATLAR VE KAMPANYALAR CSS
   ==================================================== */
:root {
    --kampanya-dark: #002277;
    --kampanya-light: #0cacf0;
}

.yapali-campaign-section {
    padding: 100px 0 120px 0;
    /* Footer'dan önce temiz, aydınlık bir zemin */
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Arkada çok zarif çapraz çizgiler (Premium mimari hissiyat) */
.yapali-campaign-section::before {
    content: ''; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0, 34, 119, 0.01) 10px, rgba(0, 34, 119, 0.01) 20px);
    z-index: 1; pointer-events: none;
}

.yc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* --- BAŞLIK ALANI --- */
.yc-header {
    margin-bottom: 60px;
}

.yc-badge-wrap {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 15px;
}
.yc-badge-dot {
    width: 30px; height: 2px; background-color: var(--kampanya-light);
}
.yc-badge-text {
    font-size: 13px; font-weight: 800; color: var(--kampanya-dark);
    letter-spacing: 2px; text-transform: uppercase;
}

.yc-title {
    font-size: 2.8rem; font-weight: 900; color: #1e293b;
    line-height: 1.2; letter-spacing: -1px; margin: 0;
}
.yc-title .text-light-blue {
    color: var(--kampanya-light);
}

/* --- 3'LÜ GRID YERLEŞİMİ --- */
.yc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* --- PREMIUM KART TASARIMI --- */
.yc-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 34, 119, 0.06);
    border: 1px solid rgba(0, 34, 119, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.yc-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 34, 119, 0.12);
}

/* Kart Görseli */
.yc-img-wrapper {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background-color: #f1f5f9;
}

.yc-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.yc-card:hover .yc-img-wrapper img {
    transform: scale(1.08);
}

/* Fırsat Etiketleri (Resim Üzerinde) */
.yc-tag {
    position: absolute;
    top: 20px; left: 20px;
    background: rgba(0, 34, 119, 0.9);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px; font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.yc-tag.tag-alert {
    background: var(--kampanya-light); /* Son 20 gibi acil durumlar için açık mavi */
    color: #002277;
}

/* İçerik Alanı */
.yc-content {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

/* Üstteki ince estetik çizgi */
.yc-content::before {
    content: ''; position: absolute; top: 0; left: 30px; right: 30px;
    height: 1px; background: linear-gradient(90deg, rgba(12, 172, 240, 0.3), transparent);
}

.yc-card-title {
    font-size: 1.4rem; font-weight: 800; color: var(--kampanya-dark);
    margin-bottom: 15px; line-height: 1.3; letter-spacing: -0.5px;
    transition: color 0.3s ease;
}
.yc-card:hover .yc-card-title {
    color: var(--kampanya-light);
}

.yc-card-desc {
    font-size: 0.95rem; color: #64748b; line-height: 1.6;
    margin-bottom: 25px; flex-grow: 1;
}

/* İncele Butonu */
.yc-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: var(--kampanya-dark);
    text-decoration: none; text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.3s ease;
    align-self: flex-start;
}
.yc-btn svg { width: 18px; height: 18px; transition: transform 0.3s ease; }

.yc-btn:hover { color: var(--kampanya-light); }
.yc-btn:hover svg { transform: translateX(6px); }

/* --- SCROLL ANİMASYONU --- */
.yapali-campaign-section .reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.yapali-campaign-section .reveal-up.active { opacity: 1; transform: translateY(0); }

/* ====================================================
   MOBİL UYUM (≤1024px, ≤768px)
   ==================================================== */
@media (max-width: 1024px) {
    .yc-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
    .yapali-campaign-section { padding: 70px 0; }
    .yc-container { padding: 0 20px; }
    
    .yc-title { font-size: 2.2rem; }
    .yc-grid { grid-template-columns: 1fr; gap: 25px; }
    
    .yc-img-wrapper { height: 220px; }
    .yc-content { padding: 25px 20px; }
    .yc-card-title { font-size: 1.3rem; }
}