/**
 * /assets/css/calendar-card.css
 * Takvim kartı — event ve news için tarih gösterimi.
 * 
 * 19/09/2026 - v1.0 - Oluşturuldu.
 * 20/09/2026 - v3.0 - `cal24` sınıflarına uyarlandı.
 * 20/09/2026 - v3.1 - Özet metni resmin altına taşındı.
 * 20/09/2026 - v3.2 - Resimler ve özetler aynı hizada.
 * 27/09/2026 - v3.3 - Metal binding üzerine 45° sarı şeritler.
 * 27/09/2026 - v3.4 - Şerit yönü -45deg, kanarya sarısı, opaklık artırıldı.
 * 27/09/2026 - v3.5 - Sarı ve lacivert şeritler 20px eşit kalınlıkta.
 * 27/09/2026 - v3.6 - Halkalar (rings) kaldırıldı.
 * 27/09/2026 - v3.7 - Sarı rengi pastel yapıldı (GERİ ALINDI).
 * 27/09/2026 - v3.8 - Tam kanarya sarısı (#FFDD00), opaklık 0.75.
 * 14/10/2026 - v3.9 - Şerit döngüsü 12px'e düşürüldü, mobil uyum düzeltildi.
 * 15/10/2026 - v4.0 - Şerit kalınlığı yatay kartla eşitlendi (sarı şeritler belirginleştirildi).
 */

/* ============================================
   KART KAPSAYICI
   ============================================ */
.cal24-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

/* ============================================
   CAL24 KART
   ============================================ */
.cal24 {
    --paper: #f5f0e3;
    --paper2: #ebe3d0;
    --paper3: #e8dcc0;
    --ink: #2b2620;
    --red: #b23a2e;
    --red-d: #8a2c22;
    --gold: #b8923f;
    --navy: #01258F;
    --navy-d: #011142;
    --canary: #FFDD00;
    --shadow: rgba(0,0,0,0.15);
    position: relative;
    width: 100%;
    display: flex;
    align-items: stretch;
    font-family: 'Oswald', sans-serif;
    color: var(--ink);
    background: transparent;
}

.cal24__pad {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ============================================
   METAL BINDING — Çapraz Kanarya Sarısı Şeritler
   
   ⚠️ v4.0 DÜZELTME:
   - Şerit döngüsü 24px → 36px (18px sarı + 18px boş)
   - Açı -45deg (dengeli)
   - Sarı opaklık 0.85 → 0.9 (daha belirgin)
   - Yatay kartla görsel kalınlık eşitlendi
   ============================================ */
.cal24__binding {
    position: relative;
    height: 34px;
    background: 
        repeating-linear-gradient(
            -45deg,
            rgba(255, 221, 0, 0.9) 0px,
            rgba(255, 221, 0, 0.9) 18px,
            rgba(255, 221, 0, 0) 18px,
            rgba(255, 221, 0, 0) 36px
        ),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-d) 100%);
    border-radius: 20px 20px 0 0;
    box-shadow: inset 0 2px 3px rgba(255,255,255,0.15), 0 3px 6px var(--shadow);
    z-index: 5;
    overflow: hidden;
    background-size: auto, auto;
    background-repeat: repeat, no-repeat;
}

/* Üstten hafif ışık efekti */
.cal24__binding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   SAYFA YIĞINI
   ============================================ */
.cal24__stack {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cal24__stack::before,
.cal24__stack::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    background: var(--paper2);
    border-radius: 0 0 20px 20px;
}

.cal24__stack::before {
    top: 6px;
    bottom: -6px;
    box-shadow: 0 6px 10px var(--shadow);
}

.cal24__stack::after {
    top: 3px;
    bottom: -3px;
    background: #f0ead9;
}

/* ============================================
   ANA SAYFA (Takvim yüzeyi)
   ============================================ */
.cal24__page {
    position: relative;
    z-index: 3;
    background: var(--paper);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.6), transparent 60%), 
        repeating-linear-gradient(0deg, transparent 0 27px, rgba(43,38,32,0.04) 27px 28px);
    padding: 0 0 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    flex: 1;
    display: flex;
    flex-direction: column;
    -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 14px) no-repeat, radial-gradient(circle at 8px -2px, transparent 7px, #000 8px) bottom left/16px 14px repeat-x;
    mask: linear-gradient(#000 0 0) top/100% calc(100% - 14px) no-repeat, radial-gradient(circle at 8px -2px, transparent 7px, #000 8px) bottom left/16px 14px repeat-x;
}

/* ============================================
   ŞERİT (Başlık)
   ============================================ */
.cal24__ribbon {
    background: var(--paper3);
    color: var(--ink);
    text-align: center;
    padding: 22px 24px;
    font-family: 'Gloock', Georgia, serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0.2px;
    text-transform: none;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal24__ribbon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(43, 38, 32, 0.05) 0%, 
        rgba(43, 38, 32, 0.15) 50%, 
        rgba(43, 38, 32, 0.05) 100%);
}

/* ============================================
   İÇERİK ALANI
   ============================================ */
.cal24__content {
    padding: 30px 28px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============================================
   BÜYÜK TARİH (Gloock)
   ============================================ */
.cal24__bignum {
    font-family: 'Gloock', Georgia, serif;
    font-weight: 400;
    font-size: 4.5rem;
    line-height: 1;
    text-align: center;
    color: var(--ink);
    margin: 0 0 16px;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

/* ============================================
   AY + YIL — Rozha One
   ============================================ */
.cal24__top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--ink);
}

.cal24__month {
    font-family: 'Rozha One', Georgia, serif;
    font-weight: 400;
    font-size: 26px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--red);
    line-height: 1;
}

.cal24__year {
    font-family: 'Rozha One', Georgia, serif;
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 0.02em;
    color: var(--ink);
    line-height: 1;
}

/* ============================================
   KONUM (Map Pin)
   ============================================ */
.cal24__location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Ruluko', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--navy);
    letter-spacing: 0.3px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.cal24__location svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--red);
    fill: none !important;
    stroke: var(--red) !important;
    stroke-width: 2.5 !important;
}

/* ============================================
   DETAYLAR BUTONU
   ============================================ */
.cal24__details {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.cal24__details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 37px;
    padding: 0 24px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Ruluko', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(1, 37, 143, 0.25);
    cursor: pointer;
    line-height: 1;
}

.cal24__details-btn:hover {
    background: var(--navy-d);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(1, 37, 143, 0.4);
    color: white;
}

.cal24__details-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.5 !important;
    transition: transform 0.3s ease;
}

.cal24__details-btn:hover svg {
    transform: translateX(4px);
}

/* ============================================
   KART İÇİ GÖRSEL
   ============================================ */
.cal24__image {
    position: relative;
    margin: auto 0 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid rgba(43,38,32,0.1);
    line-height: 0;
    flex-shrink: 0;
}

.cal24__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* ============================================
   PILL BADGE
   ============================================ */
.cal24__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid var(--navy);
    border-radius: 50px;
    font-family: 'Ruluko', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--navy);
    letter-spacing: 0.3px;
    text-transform: none;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(1, 37, 143, 0.15);
}

.cal24__badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: none !important;
    stroke: var(--navy) !important;
    stroke-width: 2.5 !important;
}

/* ============================================
   ÖZET METNİ — Resmin ALTINDA
   ============================================ */
.cal24__summary {
    margin: auto 0 0;
    padding: 18px 0 0;
    font-family: 'Ruluko', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    color: #2b2620;
    text-align: left;
    letter-spacing: 0.2px;
    flex-shrink: 0;
}

.cal24__summary em {
    display: block;
    font-style: italic;
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.cal24__summary p {
    font-style: normal;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 500px) {
    .cal24__ribbon {
        font-size: 15px;
        padding: 18px 18px;
        letter-spacing: 0.1px;
    }
    
    /* ⚠️ MOBİLDE ŞERİT — yatay kartla eşit kalınlık */
    .cal24__binding {
        height: 32px;
        background: 
            repeating-linear-gradient(
                -45deg,
                rgba(255, 221, 0, 0.9) 0px,
                rgba(255, 221, 0, 0.9) 16px,
                rgba(255, 221, 0, 0) 16px,
                rgba(255, 221, 0, 0) 32px
            ),
            linear-gradient(180deg, var(--navy) 0%, var(--navy-d) 100%) !important;
        background-repeat: repeat, no-repeat !important;
    }
}

@media (max-width: 400px) {
    .cal24__bignum {
        font-size: 3.5rem;
    }
    .cal24__month {
        font-size: 22px;
    }
    .cal24__year {
        font-size: 18px;
    }
    .cal24__badge {
        font-size: 12px;
        padding: 6px 12px;
        top: 8px;
        left: 8px;
    }
    .cal24__ribbon {
        font-size: 13px;
        padding: 16px 14px;
        letter-spacing: 0;
    }
    .cal24__location {
        font-size: 14px;
    }
    .cal24__details-btn {
        font-size: 13px;
        height: 35px;
        padding: 0 20px;
    }
    .cal24__details-btn svg {
        width: 13px;
        height: 13px;
    }
    .cal24__summary {
        font-size: 12px;
        line-height: 1.45;
        padding-top: 14px;
    }
    .cal24__summary em {
        font-size: 11px;
    }
    .cal24__content {
        padding: 24px 20px 0;
    }
    
    /* ⚠️ ÇOK KÜÇÜK EKRANDA DA ŞERİT — kalın */
    .cal24__binding {
        height: 28px;
        background: 
            repeating-linear-gradient(
                -45deg,
                rgba(255, 221, 0, 0.9) 0px,
                rgba(255, 221, 0, 0.9) 14px,
                rgba(255, 221, 0, 0) 14px,
                rgba(255, 221, 0, 0) 28px
            ),
            linear-gradient(180deg, var(--navy) 0%, var(--navy-d) 100%) !important;
        background-repeat: repeat, no-repeat !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cal24 * {
        animation: none !important;
    }
}