/* ==========================================================================
   RESMİ ÇALIŞTAY PROGRAM KİTAPÇIĞI VE BASKI STİLLERİ (program_kitapcik.css)
   Türkiye’de Antroposen Çağında Sulak Alanlarda Ekolojik Riskler Çalıştayı 2026
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&family=Cinzel:wght@600;700;800&display=swap');

:root {
    --primary-navy: #091e3a;
    --primary-blue: #0284c7;
    --primary-dark: #0f172a;
    --accent-teal: #0d9488;
    --accent-gold: #d97706;
    --text-main: #1e293b;
    --text-muted: #475569;
    --border-light: #e2e8f0;
    --bg-page: #f1f5f9;
    --sheet-bg: #ffffff;
    --shadow-booklet: 0 12px 40px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   STICKY CONTROL BAR (Ekran Görünümü İçin Kontrol ve İndirme Çubuğu)
   ========================================================================== */
.kitapcik-top-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.top-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #93c5fd;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.top-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.3px;
}

.top-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn-group {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.mode-tab-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 6px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mode-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.mode-tab-btn.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.export-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-export.primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

.btn-export.primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-1px);
}

.btn-export.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-export.secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* Oturum Seçim Dropdown */
.session-select-wrap {
    position: relative;
}

.session-dropdown-select {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.84rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

/* ==========================================================================
   BOOKLET WRAPPER & A4 SHEET STYLING
   ========================================================================== */
.booklet-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px 80px 20px;
}

/* Her Bir A4 Sayfası */
.a4-sheet {
    background: #ffffff;
    width: 100%;
    margin-bottom: 40px;
    border-radius: 6px;
    box-shadow: var(--shadow-booklet);
    border: 1px solid var(--border-light);
    padding: 48px 56px;
    position: relative;
    overflow: hidden;
}

/* Sayfa Üst Başlık Şeridi (Baskıda Her Sayfanın Tepesinde Görünür) */
.sheet-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
    margin-bottom: 28px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sheet-header-line .header-conf-name {
    color: #003366;
    font-weight: 700;
}

.sheet-footer-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    margin-top: 32px;
    font-size: 0.78rem;
    color: #94a3b8;
}

/* ==========================================================================
   SAYFA 1: RESMİ KAPAK (COVER PAGE)
   ========================================================================== */
.cover-sheet {
    text-align: center;
    padding: 65px 50px;
    background: radial-gradient(circle at 50% 10%, #ffffff 0%, #f8fafc 100%);
    border-top: 8px solid #003366;
    position: relative;
}

.cover-sheet::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #003366, #0284c7, #0d9488);
}

.cover-university {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #003366;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.cover-faculty {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 30px;
}

.cover-badge-pill {
    display: inline-block;
    padding: 6px 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.cover-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.15rem;
    font-weight: 900;
    color: #002b55;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
}

.cover-honoree-box {
    background: #fdf8e6;
    border: 1px solid #fde68a;
    padding: 14px 24px;
    border-radius: 8px;
    display: inline-block;
    margin: 15px auto 30px auto;
}

.cover-honoree-label {
    font-size: 0.82rem;
    color: #92400e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 3px;
}

.cover-honoree-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #78350f;
}

.cover-doc-type {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #003366;
    letter-spacing: 2px;
    margin: 25px 0 35px 0;
    text-transform: uppercase;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}

.cover-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
    text-align: center;
}

.cover-meta-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px 12px;
    border-radius: 8px;
}

.cover-meta-card i {
    font-size: 1.3rem;
    color: #0284c7;
    margin-bottom: 6px;
}

.cover-meta-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.cover-meta-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

/* ==========================================================================
   SAYFA 2: KURULLAR VE ONUR KONUĞU
   ========================================================================== */
.section-main-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: #003366;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-main-heading .heading-icon-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 6px;
}

/* Liderler / Yönetim Kartları */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.leader-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.leader-box.featured {
    border-top: 3px solid #003366;
}

.leader-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px auto;
    display: block;
    border: 2px solid #0284c7;
}

.leader-role {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.leader-name {
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 4px;
}

.leader-inst {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.3;
}

/* Davetli Konuşma Özel Kartı */
.keynote-spotlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-left: 5px solid #0284c7;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 28px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.keynote-spotlight-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0284c7;
    flex-shrink: 0;
}

.keynote-spotlight-content h4 {
    font-size: 1.05rem;
    color: #003366;
    font-weight: 800;
    margin-bottom: 6px;
}

.keynote-spotlight-content .keynote-talk-title {
    font-style: italic;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.keynote-spotlight-content p {
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.5;
}

/* Bilim Kurulu Kompakt 2 Sütun */
.science-board-title {
    font-size: 1rem;
    font-weight: 800;
    color: #003366;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.science-board-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.science-board-item {
    color: #334155;
    border-bottom: 1px dotted #e2e8f0;
    padding-bottom: 4px;
}

.science-board-item strong {
    color: #0f172a;
    font-weight: 700;
}

/* ==========================================================================
   OTURUMLAR VE PROGRAM BİLGİSİ
   ========================================================================== */
.day-header-banner {
    background: linear-gradient(135deg, #003366 0%, #0369a1 100%);
    color: #ffffff;
    padding: 16px 22px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-header-banner.day-2 {
    background: linear-gradient(135deg, #1e3a8a 0%, #4338ca 100%);
}

.day-header-banner.day-3 {
    background: linear-gradient(135deg, #065f46 0%, #0d9488 100%);
}

.day-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.day-header-sub {
    font-size: 0.85rem;
    color: #e0f2fe;
}

.day-action-print-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.day-action-print-btn:hover {
    background: #ffffff;
    color: #003366;
}

/* Oturum Kartı (Baskı ve Ekran İçin Kusursuz Format) */
.session-block {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    background: #ffffff;
    page-break-inside: avoid;
    break-inside: avoid;
}

.session-block-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.session-badge-and-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.session-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: #003366;
}

.session-block.blue .session-pill { background: #0284c7; }
.session-block.amber .session-pill { background: #d97706; }
.session-block.teal .session-pill { background: #0d9488; }
.session-block.rose .session-pill { background: #e11d48; }
.session-block.purple .session-pill { background: #7c3aed; }
.session-block.emerald .session-pill { background: #059669; }
.session-block.fuchsia .session-pill { background: #c026d3; }

.session-time {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.session-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 4px;
    line-height: 1.35;
}

.session-chair-tag {
    font-size: 0.84rem;
    color: #475569;
    font-weight: 600;
    margin-top: 3px;
}

.session-chair-tag strong {
    color: #003366;
}

.session-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.session-print-icon-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.session-print-icon-btn:hover {
    background: #eff6ff;
    color: #0284c7;
    border-color: #93c5fd;
}

/* Bildiriler Listesi */
.session-papers-list {
    padding: 8px 18px;
}

.paper-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: baseline;
}

.paper-row:last-child {
    border-bottom: none;
}

.paper-row-time {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0284c7;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.paper-row-content {
    font-size: 0.88rem;
}

.paper-row-title {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 4px;
}

.paper-row-authors {
    font-size: 0.82rem;
    color: #64748b;
}

.paper-row-authors .author-badge {
    display: inline-block;
    color: #334155;
    font-weight: 600;
    margin-right: 8px;
}

/* Mola / Tören Çubukları */
.event-break-row {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 8px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #475569;
    page-break-inside: avoid;
    break-inside: avoid;
}

.event-break-row strong {
    color: #0f172a;
}

.event-break-row i {
    color: #d97706;
    margin-right: 6px;
}

/* ==========================================================================
   SAYFA 3: SAHA GEZİSİ REHBERİ
   ========================================================================== */
.fieldtrip-sheet-content {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    background: #ffffff;
}

.fieldtrip-sheet-header {
    border-bottom: 2px solid #0d9488;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.fieldtrip-title-large {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f766e;
    margin-bottom: 6px;
}

.fieldtrip-leaders-tag {
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
}

.fieldtrip-text-p {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 14px;
}

.fieldtrip-points-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.ft-card {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 0.82rem;
}

.ft-card h5 {
    color: #0f766e;
    font-weight: 800;
    margin-bottom: 3px;
}

.ft-card p {
    color: #475569;
    line-height: 1.4;
}

/* ==========================================================================
   ARKA KAPAK / NOTLAR SAYFASI
   ========================================================================== */
.notes-sheet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 10px;
}

.notes-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    font-size: 0.85rem;
}

.notes-info-card h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #003366;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notes-info-card p, .notes-info-card ul {
    color: #475569;
    line-height: 1.55;
}

.notes-info-card ul {
    padding-left: 18px;
    margin-top: 6px;
}

/* ==========================================================================
   SEKMELİ FİLTRE DURUMLARI (EKRAN GÖRÜNÜMÜ)
   ========================================================================== */
body.view-day1 .a4-sheet:not(.day1-sheet),
body.view-day2 .a4-sheet:not(.day2-sheet),
body.view-day3 .a4-sheet:not(.day3-sheet),
body.view-committee .a4-sheet:not(.committee-sheet) {
    display: none;
}

/* ==========================================================================
   PRINT / PDF BASKI SİSTEMİ (@media print)
   ========================================================================== */
@page {
    size: A4 portrait;
    margin: 12mm 14mm 14mm 14mm;
}

@media print {
    /* Gizlenecek Arayüz Öğeleri */
    .kitapcik-top-bar,
    .day-action-print-btn,
    .session-actions,
    .no-print {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 9.5pt;
        line-height: 1.4;
    }

    .booklet-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .a4-sheet {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 0 20mm 0 !important;
        page-break-after: always;
        break-after: page;
        min-height: auto;
    }

    .a4-sheet:last-child {
        page-break-after: auto;
        break-after: auto;
    }

    .session-block {
        border: 1px solid #94a3b8 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        margin-bottom: 12px !important;
    }

    .session-block-header {
        background: #f1f5f9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .session-pill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .day-header-banner {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cover-sheet {
        page-break-after: always;
        break-after: page;
        padding: 100px 30px 40px 30px !important;
    }

    /* Gün gün özel baskı modu */
    body.print-only-day1 .a4-sheet:not(.day1-sheet),
    body.print-only-day2 .a4-sheet:not(.day2-sheet),
    body.print-only-day3 .a4-sheet:not(.day3-sheet),
    body.print-only-committee .a4-sheet:not(.committee-sheet) {
        display: none !important;
    }

    /* Oturum tekil baskı modu */
    body[class*="print-session-"] .a4-sheet:not(.day1-sheet):not(.day2-sheet) {
        display: none !important;
    }

    body[class*="print-session-"] .session-block {
        display: none !important;
    }

    body[class*="print-session-"] .day-header-banner,
    body[class*="print-session-"] .event-break-row {
        display: none !important;
    }

    body.print-session-1 #session-1 { display: block !important; }
    body.print-session-2 #session-2 { display: block !important; }
    body.print-session-3 #session-3 { display: block !important; }
    body.print-session-4 #session-4 { display: block !important; }
    body.print-session-5 #session-5 { display: block !important; }
    body.print-session-6 #session-6 { display: block !important; }
    body.print-session-7 #session-7 { display: block !important; }
    body.print-session-8 #session-8 { display: block !important; }
}

@media (max-width: 768px) {
    .a4-sheet {
        padding: 24px 18px;
    }

    .leaders-grid, .notes-sheet-grid, .cover-meta-grid {
        grid-template-columns: 1fr;
    }

    .science-board-columns {
        grid-template-columns: 1fr;
    }

    .paper-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
