/* ── Serenas Kongre Program — Frontend CSS ───────────────────────────────── */

/* ── Manuel Program (tablo görünümü) ──────────────────────────────────────── */

.t-premium-wrapper { font-family: inherit; }

.t-premium-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    align-items: center;
}

.t-premium-tab {
    padding: 9px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    transition: all .15s;
}
.t-premium-tab.active,
.t-premium-tab:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #fff;
}

/* Arama */
.t-search-wrapper { position: relative; margin-left: auto; }
.t-premium-search {
    padding: 8px 36px 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    width: 220px;
    outline: none;
}
.t-premium-search:focus { border-color: #6366f1; box-shadow: 0 0 0 2px #e0e7ff; }
.t-search-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }

.t-premium-content { display: none; }
.t-premium-content.active { display: block; }

/* Tablo */
.t-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.t-prog-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 600px;
}
.t-col-salon { width: auto; }

.t-th-salon {
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    margin: 4px;
    display: block;
}

.t-td-session {
    vertical-align: top;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
}
.t-td-empty {
    border: 1px solid #f3f4f6;
    background: #fafafa;
}

.t-session-header { margin-bottom: 8px; }
.t-session-time { display: block; font-size: 12px; font-weight: 700; color: #6b7280; margin-bottom: 4px; }
.t-session-name { font-size: 15px; font-weight: 700; color: #111827; line-height: 1.4; margin-bottom: 6px; }
.t-session-chairs { font-size: 13px; color: #374151; margin-top: 4px; border-top: 1px solid #e5e7eb; padding-top: 6px; }
.t-session-chairs b { color: #c00000; }

.t-kongre-placeholder { color: #d1d5db; font-style: italic; font-size: 12px; }

/* Konular */
.t-topic-list { list-style: none; margin: 8px 0 0; padding: 0; }
.t-topic-list li { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 5px 0; border-bottom: 1px dotted #e5e7eb; font-size: 13px; }
.t-topic-list li:last-child { border-bottom: none; }
.t-konu-time   { color: #6b7280; font-size: 11px; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.t-konu-title  { color: #111827; font-weight: 600; flex: 1; }
.t-konu-speaker { color: #6b7280; font-size: 12px; font-style: italic; flex-basis: 100%; padding-left: 0; }

/* Ara satırı */
.t-tr-break td { padding: 0; }
.t-break-cell-filled { padding: 8px 14px !important; }
.t-break-label, .t-break-label-left { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.t-break-coffee   .t-break-cell-filled { background: #fffbeb; color: #92400e; }
.t-break-lunch    .t-break-cell-filled { background: #fef2f2; color: #7f1d1d; }
.t-break-satellite .t-break-cell-filled { background: #f0f9ff; color: #0c4a6e; }
.t-break-event    .t-break-cell-filled { background: #f0fdf4; color: #14532d; }
.t-break-assembly .t-break-cell-filled { background: #faf5ff; color: #4a1d96; }
.t-break-ceremony .t-break-cell-filled { background: #fff7ed; color: #7c2d12; }

/* Keynote satırı */
.t-tr-keynote .t-td-session { background: #fffbeb; border-color: #fde68a; }

/* ── ICON Program (kart görünümü) ─────────────────────────────────────────── */

/* Kapsayıcı içi reset — tema/Elementor başlık ve liste stillerini nötralize et */
.serenas-program,
.serenas-program * {
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    box-sizing: border-box;
}
.serenas-program h1,
.serenas-program h2,
.serenas-program h3,
.serenas-program h4,
.serenas-program h5,
.serenas-program h6,
.serenas-program p,
.serenas-program ul,
.serenas-program ol,
.serenas-program li,
.serenas-program a,
.serenas-program span,
.serenas-program div {
    font-family: inherit !important;
    line-height: 1.45 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-shadow: none !important;
}
.serenas-program h1,
.serenas-program h2,
.serenas-program h3,
.serenas-program h4,
.serenas-program h5,
.serenas-program h6 {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit;
    background: none !important;
    border: none !important;
}
.serenas-program ul,
.serenas-program ol { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.serenas-program li { margin: 0 !important; padding: 0 !important; }
.serenas-program a { text-decoration: none !important; }

/* Proje başlığı */
.serenas-program .sp__project-title { font-size: 22px !important; font-weight: 800 !important; margin: 24px 0 12px !important; color: #1d2a73 !important; }

/* Sekmeler */
.serenas-program .sp__tabs { display: flex; gap: 12px; margin: 10px 0 20px; flex-wrap: wrap; justify-content: center; }
.serenas-program .sp__tab {
    border: 1px solid #d4dbe4 !important;
    background: #f7f9fc !important;
    border-radius: 10px !important;
    padding: 12px 20px !important;
    cursor: pointer;
    font-weight: 700 !important;
    text-decoration: none !important;
    color: #1f2937 !important;
    font-size: 16px !important;
    transition: all .15s;
}
.serenas-program .sp__tab--active { background: #eef6ff !important; border-color: #9ec5fe !important; color: #1d2a73 !important; }
.serenas-program .sp__tab:hover   { background: #e8f0fe !important; }
.sp__panel { display: none; }
.sp__panel--active { display: block; }

/* Zaman slot */
.sp__slot {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    margin: 14px 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.slot__time {
    background: var(--slot-color, #1f2937);
    color: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.slot__date  { font-weight: 800; margin-bottom: 4px; font-size: 13px; }
.slot__hours { font-weight: 700; opacity: .9; font-size: 13px; }
.slot__cols  { padding: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }

/* Oturum kartı */
.serenas-program .sess { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; background: #fff; display: flex; flex-direction: column; }
.serenas-program .sess__head { margin-bottom: 8px !important; padding-bottom: 8px !important; border-bottom: 1px solid #e5e7eb !important; }
.serenas-program .sess__hall  { font-size: 12px !important; color: #6b7280 !important; margin: 0 0 3px !important; font-weight: 500 !important; }
.serenas-program .sess__title {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    margin: 0 0 3px !important;
    color: #111827 !important;
    min-height: 2.6rem; /* tek satırda bile 2 satır yüksekliğinde yer tut */
    display: flex;
    align-items: flex-start;
}
.serenas-program .sess__comment { color: #c70000 !important; font-weight: 600 !important; font-size: 12px !important; margin: 4px 0 !important; }

/* Başkanlar */
.serenas-program .sess__officers { margin: 8px 0 !important; border-left: 3px solid #ef4444; padding: 0 0 0 10px !important; }
.serenas-program .officers__title { color: #c00000 !important; font-weight: 600 !important; font-size: 0.8rem !important; margin: 5px 0 3px !important; }
.serenas-program .officers__list  { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.serenas-program .officers__list li { font-size: 12px !important; line-height: 1.5 !important; padding: 1px 0 !important; color: #1f2937 !important; font-weight: 500 !important; }
.serenas-program .sp__inst { font-size: .85em !important; font-weight: 400 !important; opacity: .8 !important; color: #6b7280 !important; }

/* Sunum listesi */
.serenas-program .sess__list { list-style: none !important; margin: 8px 0 0 !important; padding: 0 !important; }
.serenas-program .sess__item { padding: 5px 0 !important; border-bottom: 1px dotted #e5e7eb !important; font-size: 12px !important; display: flex; flex-wrap: wrap; gap: 3px 6px; align-items: baseline; }
.serenas-program .sess__item:last-child { border-bottom: none !important; }
.serenas-program .sess__item--break { opacity: .8; font-style: italic !important; }
/* Kurum bilgili konuşmacılarda isim alt satıra insin */
.serenas-program .sess__item--multiline .item__speaker { flex-basis: 100%; margin-left: 0; }
.serenas-program .item__topic   { font-weight: 600 !important; color: #111827 !important; }
.serenas-program .item__dash    { color: #9ca3af !important; }
.serenas-program .item__speaker { color: #374151 !important; font-weight: 500 !important; }
.serenas-program .item__slot    { font-size: 11px !important; color: #9ca3af !important; white-space: nowrap; }

/* Takvim butonları */
.sess__cal { margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid #f3f4f6; }
.cal__label { font-size: 12px; font-weight: 600; color: #6b7280; }
.cal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-decoration: none;
    color: #111;
    background: #fff;
    transition: background .15s;
}
.cal__btn:hover { background: #f3f4f6; }
.cal__btn svg  { display: block; }
.cal--apple  { color: #111; }
.cal--outlook { color: #0a63d8; }
.cal--google { border-color: #dadce0; }

/* Responsive */
@media (max-width: 820px) { .sp__slot { grid-template-columns: 130px 1fr; } }
@media (max-width: 580px) {
    .sp__slot { grid-template-columns: 1fr; }
    .slot__time { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
}

/* ── Günlük ızgara (salon × saat) ──────────────────────────────────────────── */
.sp__dgrid-wrap { margin: 0 0 24px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden; }

.sp__dgrid {
    display: grid;
    grid-template-columns: 90px repeat(var(--sp-cols), 1fr);
    gap: 0;
    background: #fff;
    width: 100%;
}

.dgrid__cell { background: #fff; padding: 10px; }

.serenas-program .dgrid__head {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-align: center;
    padding: 14px 10px !important;
    letter-spacing: .2px !important;
    position: sticky; top: 0; z-index: 2;
}
.serenas-program .dgrid__time-head { background: #1f2937 !important; }

/* ── Sütun renk paleti (her salon için farklı soft ton) ──────────────────── */
.serenas-program .dgrid--col-0.dgrid__hall-head { background: #0d9488 !important; }
.serenas-program .dgrid--col-1.dgrid__hall-head { background: #4f46e5 !important; }
.serenas-program .dgrid--col-2.dgrid__hall-head { background: #7c3aed !important; }
.serenas-program .dgrid--col-3.dgrid__hall-head { background: #d97706 !important; }
.serenas-program .dgrid--col-4.dgrid__hall-head { background: #e11d48 !important; }
.serenas-program .dgrid--col-5.dgrid__hall-head { background: #0284c7 !important; }

.serenas-program .dgrid--col-0.dgrid__body { background: #f0fdfa; }
.serenas-program .dgrid--col-1.dgrid__body { background: #eef2ff; }
.serenas-program .dgrid--col-2.dgrid__body { background: #f5f3ff; }
.serenas-program .dgrid--col-3.dgrid__body { background: #fffbeb; }
.serenas-program .dgrid--col-4.dgrid__body { background: #fff1f2; }
.serenas-program .dgrid--col-5.dgrid__body { background: #f0f9ff; }

.serenas-program .dgrid__time {
    background: #fff;
    font-weight: 700 !important;
    font-size: 12px !important;
    color: #1f2937 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-left: 3px solid var(--slot-color, #374151);
    border-top: 1px solid #d1d5db;
}

.dgrid__body { padding: 8px; min-width: 0; overflow: hidden; display: flex; flex-direction: column; border-top: 1px solid #d1d5db; }

/* Tüm salonları kapsayan ortak satır (kahve arası, öğle yemeği vb.) */
.dgrid__body--full { background: #f9fafb !important; padding: 10px 16px !important; }
.dgrid__body--full .sess {
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 0 !important;
}
.dgrid__body--full .sess__head { border-bottom: none !important; margin: 0 !important; padding: 0 !important; }
.dgrid__body--full .sess__title { min-height: auto !important; font-size: 0.95rem !important; font-weight: 600 !important; color: #4b5563 !important; text-transform: uppercase; letter-spacing: .5px; }
.dgrid__body--full .sess__cal { display: none; }
.dgrid__body .sess {
    flex: 1;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 10px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* içerik üstte, boşluk altta */
}
.dgrid__body .sess + .sess { margin-top: 8px; }
.dgrid__body .sess__hall { display: none; } /* Salon zaten üst başlıkta */

/* Takvime Ekle içerikle beraber yukarıda — boşluk kartın altına düşsün */
.dgrid__body .sess__cal { margin-top: 12px; padding-top: 10px; }

/* Mobil: her saati tam genişlikte yığınla */
@media (max-width: 700px) {
    .sp__dgrid-wrap { box-shadow: none; }
    .sp__dgrid {
        display: block;
        background: transparent;
    }
    .dgrid__head.dgrid__hall-head { display: none; }
    .dgrid__head.dgrid__time-head { display: none; }
    .dgrid__time {
        background: var(--slot-color, #374151);
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 13px;
        justify-content: flex-start;
        margin: 14px 0 8px;
    }
    .dgrid__body { padding: 0; margin-bottom: 6px; }
    .dgrid__body .sess__hall { display: block; } /* Mobilde salon ismini göster */
    .dgrid__empty { display: none; }
}

/* Erişilebilirlik */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* PDF butonu */
.skp-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #1d4ed8;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background .15s;
}
.skp-pdf-btn:hover { background: #1e40af; }
.skp-pdf-not-found { color: #9ca3af; font-style: italic; font-size: 13px; }

/* Bildirim */
.skp-notice { border: 1px solid #fde68a; background: #fffbeb; padding: 10px 16px; border-radius: 6px; color: #92400e; font-size: 13px; }
.skp-no-data { color: #9ca3af; font-style: italic; }
