/*
 * İzmir Hematoloji Sempozyumu — görsel kimlik (15. İHS sponsorluk dosyasından)
 * Temel temanın (themes/_base/css/style.css) üzerine en son yüklenir; yalnızca farkları tanımlar.
 * Renkler paneldeki kongre renklerinden türetilir (--color-primary / -secondary / -accent).
 * Yazı tipleri: başlıklar Archivo geniş (dosyadaki Termina'nın açık lisanslı muadili), metin Lato,
 * el yazısı Ms Madi. Görseller: img/hero-art.jpg (arka kapak çizimi), img/paper.jpg (krem doku).
 */

:root {
    --izm-red: var(--color-secondary);
    --izm-deep: var(--color-primary);
    --izm-bright: var(--color-accent);
    --izm-maroon: color-mix(in srgb, var(--color-primary) 62%, #1a0405);
    --izm-wine: color-mix(in srgb, var(--color-primary) 40%, #120203);
    --izm-cream: #f6f2eb;
    --izm-cream-deep: #eee6da;
    --izm-rose: color-mix(in srgb, var(--color-secondary) 7%, #fffaf6);
    --izm-ink: #2d2222;
    --izm-muted: #6e5f5d;
    --izm-line: color-mix(in srgb, var(--color-secondary) 22%, transparent);

    /* Temel temanın turkuaz tonlarını kırmızıya çevirir */
    --color-highlight: var(--izm-maroon);
    --color-dark: var(--izm-ink);
    --color-gray-600: var(--izm-muted);
    --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Archivo', 'Lato', sans-serif;
    --font-heading: 'Archivo', 'Lato', sans-serif;
    --font-body: 'Lato', sans-serif;
    --izm-script: 'Ms Madi', cursive;
    --shadow-sm: 0 1px 3px rgba(90, 21, 23, .10);
    --shadow-md: 0 6px 18px rgba(90, 21, 23, .12);
    --shadow-lg: 0 14px 34px rgba(90, 21, 23, .14);
    --shadow-xl: 0 22px 48px rgba(90, 21, 23, .18);
}

body { color: var(--izm-ink); font-family: var(--font-primary); }

h1, h2, h3, h4, .section-title, .nav-title, .izm-hero-name, .izm-hero-no, .izm-hero-date,
.price-table thead th, .transfer-price, .footer-bottom {
    font-stretch: 118%;
}

/* ── Menü ── */
.navbar {
    background: rgba(255, 252, 248, .96);
    border-bottom: 3px solid var(--izm-red);
    box-shadow: 0 6px 24px rgba(62, 12, 14, .10);
}
.nav-title { font-family: var(--font-display); font-weight: 800; color: var(--izm-maroon); letter-spacing: -.01em; }
.nav-link { font-weight: 700; }
.nav-link::after { background: var(--izm-red) !important; }

/* ── Giriş: arka kapaktaki gibi koyu kırmızı zemin + çizim ── */
/* #anasayfa: temel temanın section:nth-child(odd) zeminini ezmek için */
#anasayfa.izm-hero {
    min-height: 92vh;
    padding: 140px 0 90px;
    color: #fff;
    background: radial-gradient(120% 90% at 50% 10%, var(--izm-red) 0%, var(--izm-deep) 48%, var(--izm-wine) 100%);
    isolation: isolate;
}
.izm-hero::after { display: none; }
.izm-hero-art {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('../img/hero-art.jpg') center top / cover no-repeat;
    mix-blend-mode: multiply;
    opacity: .78;
}
.izm-hero-art::after {
    /* Metnin okunurluğu: ortada ve altta koyulaşır */
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 55% at 50% 58%, rgba(40, 6, 8, .42) 0%, transparent 100%),
        linear-gradient(180deg, transparent 55%, rgba(30, 4, 6, .45) 100%);
}
.izm-hero-inner { position: relative; text-align: center; max-width: 920px; margin: 0 auto; }
.izm-hero-title { margin: 0 0 2.2rem; line-height: 1; display: flex; flex-direction: column; align-items: center; }
.izm-hero-no {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(4.5rem, 11vw, 8.5rem);
    letter-spacing: -.04em;
    line-height: .9;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .25);
}
.izm-dot { color: #ffb4ad; }
.izm-hero-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5.6vw, 4.6rem);
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: 1.02;
    margin-top: .35em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}
.izm-hero-script {
    display: flex;
    align-items: center;
    gap: .35em;
    font-family: var(--izm-script);
    font-weight: 400;
    font-size: clamp(3rem, 7.5vw, 6.2rem);
    text-transform: lowercase;
    line-height: .95;
    color: #ffd6cf;
    margin-top: -.05em;
}
.izm-hero-script::before, .izm-hero-script::after {
    /* Dosyadaki el yazısının iki yanındaki ince kuyruklar */
    content: '';
    width: clamp(36px, 9vw, 120px);
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: .7;
}
.izm-hero-script::before { background: linear-gradient(90deg, transparent, currentColor); }
.izm-hero-script::after { background: linear-gradient(90deg, currentColor, transparent); }

.izm-hero-meta { display: flex; flex-direction: column; align-items: center; gap: .15rem; margin-bottom: 1.8rem; }
.izm-hero-meta p { margin: 0; }
.izm-hero-date {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.25rem, 2.6vw, 1.9rem);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.izm-hero-venue { font-size: clamp(1rem, 1.8vw, 1.2rem); opacity: .92; }
.izm-hero-city { font-family: var(--izm-script); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: #ffd6cf; text-transform: lowercase; }
.izm-hero-text {
    max-width: 640px;
    margin: 0 auto 2.2rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .88);
}
.izm-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.izm-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.izm-btn:hover { transform: translateY(-2px); }
.izm-btn:focus-visible { outline: 3px solid #ffd6cf; outline-offset: 3px; }
.izm-btn-light { background: #fff; color: var(--izm-deep); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
.izm-btn-light:hover { background: #fff4f2; }
.izm-btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.izm-btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

/* ── Bölümler: krem doku ve beyaz arasında dönüşümlü ── */
section:nth-child(even):not(.program) {
    background: var(--izm-cream) url('../img/paper.jpg') center / cover;
}
section:nth-child(odd):not(.program):not(.izm-hero) { background: #fffdf9; }

/* ── Bölüm başlığı: dosyadaki "— G E N E L  B İ L G İ L E R —" düzeni ── */
.section-header-center::before, .section-header-center::after { display: none; }
.section-header-center .section-label,
.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    animation: none;
    color: var(--izm-red);
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .42em;
    margin-bottom: 1rem;
}
.section-label::before, .section-label::after {
    content: '';
    width: clamp(28px, 8vw, 90px);
    height: 1.5px;
    background: var(--izm-red);
    opacity: .65;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--izm-maroon);
    letter-spacing: -.01em;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.section-header-center .section-title::after {
    content: '✦';
    display: block;
    margin-top: .55rem;
    font-size: 1rem;
    color: var(--izm-red);
    text-align: center;
}
.section-description { color: var(--izm-muted); }
.section-label.light, .section-title.light, .section-description.light { color: #fff; }
.section-label.light::before, .section-label.light::after { background: #fff; }
.section-header-center .section-title.light::after { color: #ffb4ad; }

/* ── Bilimsel program: girişle aynı kırmızı zemin ── */
.program {
    background:
        url('../img/hero-art.jpg') center 70% / cover no-repeat,
        linear-gradient(160deg, var(--izm-red) 0%, var(--izm-deep) 55%, var(--izm-wine) 100%);
    background-blend-mode: multiply;
}
.program::before { display: none; }

/* Program bölümündeki metin kutusu koyu zeminde yarı saydam */
.program .about-content-full .info-section-text {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .3);
    box-shadow: none;
    backdrop-filter: blur(6px);
}
.program .about-content-full .info-section-text p { color: rgba(255, 255, 255, .94); font-size: 1.1rem; }

/* ── İçerik kutuları ── */
.info-section-text, .about-content-full .info-section-text {
    background: rgba(255, 253, 249, .92);
    border: 1px solid var(--izm-line);
    box-shadow: var(--shadow-md);
}
.info-section-text h3, .info-section-text h4 { color: var(--izm-maroon); font-family: var(--font-display); }
.info-section h3 { color: var(--izm-maroon); font-weight: 800; }
.info-section h3 i { color: var(--izm-red); }
.rules-box { background: var(--izm-rose); border-left-color: var(--izm-red); }

/* Fiyat tabloları: dosyadaki kırmızı başlık şeritleri */
.price-table {
    background: rgba(255, 253, 249, .95);
    border: 1px solid var(--izm-line);
    box-shadow: var(--shadow-lg);
}
.price-table::before { background: linear-gradient(180deg, var(--izm-bright), var(--izm-deep)); }
.price-table thead th {
    background: linear-gradient(135deg, var(--izm-deep), var(--izm-red));
    box-shadow: 0 6px 16px rgba(90, 21, 23, .22);
    letter-spacing: .06em;
}
.price-table tbody tr { box-shadow: 0 2px 8px rgba(90, 21, 23, .06); }
.price-table tbody td { background: #fff; }
.price-table tbody tr:hover td { background: var(--izm-rose); }
.price-table tbody td:first-child { color: var(--izm-maroon); }
.price-table tbody td:not(:first-child) { font-weight: 800; font-size: 1.05rem; color: var(--izm-ink); font-stretch: 110%; }

.transfer-card {
    background: #fffdf9;
    border: 2px solid var(--izm-line);
    box-shadow: var(--shadow-md);
}
.transfer-card:hover { border-color: var(--izm-red); }

.important-note { background: linear-gradient(135deg, var(--izm-deep), var(--izm-red)); }

/* Davet mektubu */
.invitation-poster { box-shadow: var(--shadow-xl); outline-color: var(--izm-red); }
.signature-name { color: var(--izm-maroon); font-family: var(--font-display); }
.invitation-body strong { color: var(--izm-deep); }

/* İletişim */
.contact-method {
    background: #fffdf9;
    border: 1.5px solid var(--izm-line);
    box-shadow: var(--shadow-md);
}
.contact-method:hover { border-color: var(--izm-red); box-shadow: var(--shadow-lg); }
.method-content h4 { color: var(--izm-red); font-family: var(--font-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }

/* Genel butonlar */
.btn-primary { background: linear-gradient(135deg, var(--izm-deep), var(--izm-red)); box-shadow: 0 8px 22px rgba(90, 21, 23, .25); }
.btn-outline { color: var(--izm-deep); border-color: var(--izm-deep); }
.btn-outline:hover { background: var(--izm-deep); color: #fff; }

/* Alt bilgi: koyu şarap rengi */
.footer { background: linear-gradient(135deg, var(--izm-maroon), var(--izm-wine)); }
.footer::before { background: linear-gradient(90deg, transparent, var(--izm-bright), transparent); }

/* Ek sayfaların başlık şeridi (yasal metinler vb.) */
.kp-page-header {
    background:
        url('../img/hero-art.jpg') center 30% / cover no-repeat,
        linear-gradient(135deg, var(--izm-red), var(--izm-wine)) !important;
    background-blend-mode: multiply;
}
.kp-page-header h1 { font-family: var(--font-display); font-weight: 800; }

/* Yıl seçim sayfası (arşiv): girişle aynı çizimli kırmızı zemin */
body:has(.cards) {
    background:
        url('../img/hero-art.jpg') center top / cover no-repeat fixed,
        linear-gradient(160deg, var(--izm-red) 0%, var(--izm-deep) 55%, var(--izm-wine) 100%) fixed;
    background-blend-mode: multiply;
    color: #fff;
}
body:has(.cards) .header h1 { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; }
body:has(.cards) .card-year { font-family: var(--font-display); font-stretch: 118%; }

/* ── Telefon ── */
@media (max-width: 768px) {
    #anasayfa.izm-hero { min-height: auto; padding: 120px 0 64px; }
    .izm-hero-art { background-position: 62% 0; background-size: auto 100%; opacity: .7; }
    .izm-hero-title { margin-bottom: 1.6rem; }
    .izm-hero-text { font-size: .98rem; }
    .izm-hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
    .izm-btn { justify-content: center; }
    .section-label { letter-spacing: .28em; font-size: .7rem; gap: .6rem; }
}

@media (max-width: 480px) {
    .section-label { letter-spacing: .18em; }
    .section-label::before, .section-label::after { width: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .izm-btn { transition: none; }
    .izm-btn:hover { transform: none; }
}
