/**
 * /assets/css/news-card.css
 * News kartı — takvim formatı (Fenerbahçe açık forma renkleri).
 * 
 * calendar-card.css'in renk uyarlaması.
 * Ana renkler:
 * - Açık sarı (khaki): #F0E68C
 * - Beyaz zemin: #FFFFFF
 * - Altın: #C9A227
 * - Koyu: #1A1A1A
 * 
 * 27/09/2026 - v1.0 - Oluşturuldu.
 * 27/09/2026 - v1.1 - Genişlik takvim kartıyla eşitlendi (max-width: 500px).
 */

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

/* ============================================
   NEWS KART
   ============================================ */
.news-card {
    --paper: #ffffff;
    --paper2: #fafaf5;
    --paper3: #f5f2e3;
    --ink: #1a1a1a;
    --red: #b8923f;
    --red-d: #96742e;
    --gold: #c9a227;
    --khaki: #f0e68c;
    --khaki-d: #e0d67c;
    --khaki-l: #f7f3c0;
    --white: #ffffff;
    --shadow: rgba(0,0,0,0.12);
    position: relative;
    width: 100%;
    display: flex;
    align-items: stretch;
    font-family: 'Oswald', sans-serif;
    color: var(--ink);
    background: transparent;
}

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

/* ============================================
   METAL BINDING
   -45° Çapraz Açık Sarı Şeritler (20px + 20px)
   ============================================ */
.news-card__binding {
    position: relative;
    height: 34px;
    background: 
        repeating-linear-gradient(
            -45deg,
            rgba(240, 230, 140, 0.85) 0px,
            rgba(240, 230, 140, 0.85) 20px,
            rgba(240, 230, 140, 0) 20px,
            rgba(240, 230, 140, 0) 40px
        ),
        linear-gradient(180deg, #ffffff 0%, #f5f2e3 100%);
    border-radius: 20px 20px 0 0;
    box-shadow: inset 0 2px 3px rgba(0,0,0,0.05), 0 3px 6px var(--shadow);
    z-index: 5;
    overflow: hidden;
}

.news-card__binding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

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

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

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

.news-card__stack::after {
    top: 3px;
    bottom: -3px;
    background: #f5f2e3;
}

/* ============================================
   ANA SAYFA
   ============================================ */
.news-card__page {
    position: relative;
    z-index: 3;
    background: var(--paper);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(240,230,140,0.15), transparent 60%), 
        repeating-linear-gradient(0deg, transparent 0 27px, rgba(26,26,26,0.03) 27px 28px);
    padding: 0 0 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    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)
   ============================================ */
.news-card__ribbon {
    background: var(--khaki-l);
    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;
}

.news-card__ribbon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(201, 162, 39, 0.1) 0%, 
        rgba(201, 162, 39, 0.3) 50%, 
        rgba(201, 162, 39, 0.1) 100%);
}

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

/* ============================================
   BÜYÜK TARİH
   ============================================ */
.news-card__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
   ============================================ */
.news-card__top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--ink);
}

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

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

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

.news-card__location svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--gold);
    fill: var(--gold);
}

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

.news-card__details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 37px;
    padding: 0 24px;
    background: var(--gold);
    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(201, 162, 39, 0.35);
    cursor: pointer;
    line-height: 1;
}

.news-card__details-btn:hover {
    background: var(--red-d);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(201, 162, 39, 0.5);
    color: white;
}

.news-card__details-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

/* ============================================
   KART İÇİ GÖRSEL
   ============================================ */
.news-card__image {
    position: relative;
    margin: auto 0 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid rgba(26,26,26,0.08);
    line-height: 0;
    flex-shrink: 0;
}

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

/* ============================================
   PILL BADGE
   ============================================ */
.news-card__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(--gold);
    border-radius: 50px;
    font-family: 'Ruluko', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.3px;
    text-transform: none;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.2);
}

.news-card__badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: var(--gold);
}

/* ============================================
   ÖZET METNİ
   ============================================ */
.news-card__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;
}

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 500px) {
    .news-card__ribbon {
        font-size: 15px;
        padding: 18px 18px;
        letter-spacing: 0.1px;
    }
}

@media (max-width: 400px) {
    .news-card__bignum {
        font-size: 3.5rem;
    }
    .news-card__month {
        font-size: 22px;
    }
    .news-card__year {
        font-size: 18px;
    }
    .news-card__badge {
        font-size: 12px;
        padding: 6px 12px;
        top: 8px;
        left: 8px;
    }
    .news-card__ribbon {
        font-size: 13px;
        padding: 16px 14px;
        letter-spacing: 0;
    }
    .news-card__location {
        font-size: 14px;
    }
    .news-card__details-btn {
        font-size: 13px;
        height: 35px;
        padding: 0 20px;
    }
    .news-card__details-btn svg {
        width: 13px;
        height: 13px;
    }
    .news-card__summary {
        font-size: 12px;
        line-height: 1.45;
        padding-top: 14px;
    }
    .news-card__summary em {
        font-size: 11px;
    }
    .news-card__content {
        padding: 24px 20px 0;
    }
}

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