/* =============================================
   ROTARY 2430. BÖLGE ASAMBLE 2026
   Premium Mobile-First Program
   
   Rotary Royal Blue  #17458f
   Rotary Gold        #f7a81b
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --blue: #17458f;
    --blue-dark: #0e2d5c;
    --blue-light: #1e5abc;
    --blue-50: #edf2fa;
    --blue-06: rgba(23,69,143,0.06);
    --blue-10: rgba(23,69,143,0.10);
    --blue-15: rgba(23,69,143,0.15);

    --gold: #f7a81b;
    --gold-dark: #d48e0e;
    --gold-light: #fbc04a;
    --gold-50: #fef8ec;
    --gold-08: rgba(247,168,27,0.08);
    --gold-15: rgba(247,168,27,0.15);

    --white: #ffffff;
    --g50: #f7f8fb;
    --g100: #f0f2f6;
    --g200: #e3e7ee;
    --g300: #ced4df;
    --g400: #9ca5b4;
    --g500: #6b7688;
    --g600: #4a5468;
    --g700: #2d3548;
    --g900: #111827;

    --c-ceremony: #c6930a;
    --c-panel: #6c5ce7;
    --c-presentation: #0984e3;
    --c-meal: #00b894;
    --c-social: #e84393;
    --c-speech: #e17055;
    --c-session: var(--blue);
    --c-registration: var(--blue-light);
    --c-gala: var(--gold);

    --radius: 14px;
    --radius-sm: 10px;
    --radius-full: 100px;
    --pad: 16px;
    --sh-sm: 0 1px 4px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.03);
    --sh-md: 0 4px 16px rgba(0,0,0,0.08);
    --sh-blue: 0 4px 20px rgba(23,69,143,0.2);
    --sh-gold: 0 4px 16px rgba(247,168,27,0.25);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--g50);
    color: var(--g700);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
    padding: 0 var(--pad);
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    background: var(--blue);
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}

/* Decorative circles */
.header::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: -50px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(247,168,27,0.06);
    pointer-events: none;
}

/* Header Brand — centered logo */
.header-brand {
    display: flex;
    justify-content: center;
    padding: 12px var(--pad) 0;
    position: relative;
    z-index: 2;
}

.header-logo {
    width: 250px;
    padding-top: 60px;
    padding-bottom: 25px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
    animation: logoIn 0.6s var(--ease) both;
}

@keyframes logoIn {
    from { opacity:0; transform: scale(0.7) rotate(-10deg); }
    to { opacity:1; transform: scale(1) rotate(0); }
}

/* ===== TEXT SIZE TOGGLE ===== */
.text-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 6px auto 2px;
    padding: 9px 20px;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.65);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.25s var(--ease);
    position: relative;
    z-index: 2;
}

.text-toggle i { font-size: 0.6rem; }

.text-toggle:active { transform: scale(0.94); }

.text-toggle.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--blue-dark);
}

/* Large Text Mode */
.large-text .ev-text h3 { font-size: 1.1rem; }
.large-text .ev-time { font-size: 1.1rem; }
.large-text .ev-time span { font-size: 0.85rem; }
.large-text .ev-gala-dress { font-size: 0.85rem; }
.large-text .day-info-title { font-size: 1rem; }
.large-text .day-info-date { font-size: 0.85rem; }
.large-text .day-info-dress { font-size: 0.78rem; }
.large-text .day-btn-num { font-size: 0.78rem; }
.large-text .day-btn-label { font-size: 0.72rem; }
.large-text .text-toggle { font-size: 0.78rem; padding: 8px 20px; }
.large-text .ev-detail-item { font-size: 0.82rem; }
.large-text .ev-detail-role { font-size: 0.78rem; }
.large-text .ev-location { font-size: 0.75rem; }

/* ===== DAY NAV ===== */
.day-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 12px var(--pad) 14px;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.5s var(--ease) 0.45s both;
}

.day-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px 8px;
    border: 1.5px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
    font-family: 'Open Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

.day-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    border-radius: inherit;
    z-index: 0;
}

.day-btn > * { position: relative; z-index: 1; }

.day-btn-num {
    font-size: 0.62rem;
    font-weight: 800;
    color: rgba(255,255,255,0.5);
    line-height: 1.2;
    transition: all 0.25s var(--ease);
}

.day-btn-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.5px;
    transition: all 0.25s var(--ease);
}

.day-btn-date {
    font-size: 0.58rem;
    font-weight: 500;
    color: rgba(255,255,255,0.3);
    transition: all 0.25s var(--ease);
}

.day-btn:active { transform: scale(0.94); }

/* Active Day */
.day-btn.active::after { opacity: 1; }
.day-btn.active {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(247,168,27,0.35), inset 0 0 0 1px rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.day-btn.active .day-btn-num { color: var(--blue-dark); }
.day-btn.active .day-btn-label { color: var(--blue-dark); }
.day-btn.active .day-btn-date { color: rgba(14,45,92,0.6); }

/* ===== MAIN ===== */

/* Day Info Bar */
.day-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 10px;
    border-bottom: 2px solid var(--blue);
    margin-bottom: 12px;
    animation: fadeUp 0.35s var(--ease) both;
}

.day-info-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.5px;
}

.day-info-date {
    display: block;
    font-size: 0.7rem;
    color: var(--g400);
    margin-top: 1px;
}

.day-info-dress {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-06);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.day-info-dress i {
    margin-right: 3px;
    font-size: 0.55rem;
}

/* ===== EVENTS ===== */
.events {
    padding-bottom: 20px;
}

.ev-group { display: none; }
.ev-group.active { display: flex; flex-direction: column; gap: 8px; }

/* ===== EVENT CARD ===== */
.ev {
    position: relative;
    display: flex;
    align-items: stretch;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--g200);
    -webkit-tap-highlight-color: transparent;
    /* Stagger animation */
    opacity: 0;
    transform: translateY(14px);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ev.show {
    animation: cardPop 0.4s var(--ease) forwards;
}

@keyframes cardPop {
    0% { opacity: 0; transform: translateY(14px) scale(0.97); }
    60% { transform: translateY(-2px) scale(1.005); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ev:active {
    transform: scale(0.98);
    box-shadow: var(--sh-sm);
}

/* Left Accent */
.ev-accent {
    width: 4px;
    flex-shrink: 0;
    background: var(--blue);
    border-radius: 4px 0 0 4px;
}

/* Time */
.ev-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 10px 6px;
    background: var(--g50);
    border-right: 1px solid var(--g200);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.ev-time span {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--g400);
}

/* Body */
.ev-body {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    flex: 1;
    min-width: 0;
}

.ev-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--blue-06);
    color: var(--blue);
    font-size: 0.88rem;
}

.ev-text {
    flex: 1;
    min-width: 0;
}

.ev-text h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--g700);
    line-height: 1.3;
}

/* Speaker / Detail Sub-items */
.ev-details {
    margin-top: 8px;
    padding: 8px 10px;
    background: linear-gradient(135deg, var(--g50) 0%, rgba(23,69,143,0.025) 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--g100);
}

.ev-detail-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px 0 6px 16px;
    position: relative;
    border-bottom: 1px solid var(--g100);
}

.ev-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

.ev-detail-item:first-child {
    padding-top: 2px;
}

.ev-detail-item::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--g300);
}

.ev-detail-name {
    font-weight: 600;
    color: var(--g600);
    font-size: 0.73rem;
    line-height: 1.35;
}

.ev-detail-role {
    color: var(--g400);
    font-weight: 400;
    font-size: 0.63rem;
    line-height: 1.3;
}

.ev-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.63rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-06);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-top: 6px;
    border: 1px solid var(--blue-10);
}

.ev-location i {
    font-size: 0.5rem;
}

/* ===== TYPE ACCENTS ===== */
.ev[data-type="ceremony"] .ev-accent { background: var(--c-ceremony); }
.ev[data-type="ceremony"] .ev-icon { background: rgba(198,147,10,0.08); color: var(--c-ceremony); }
.ev[data-type="ceremony"] .ev-time { color: var(--c-ceremony); }

.ev[data-type="panel"] .ev-accent { background: var(--c-panel); }
.ev[data-type="panel"] .ev-icon { background: rgba(108,92,231,0.08); color: var(--c-panel); }
.ev[data-type="panel"] .ev-time { color: var(--c-panel); }

.ev[data-type="presentation"] .ev-accent { background: var(--c-presentation); }
.ev[data-type="presentation"] .ev-icon { background: rgba(9,132,227,0.08); color: var(--c-presentation); }
.ev[data-type="presentation"] .ev-time { color: var(--c-presentation); }

.ev[data-type="meal"] .ev-accent { background: var(--c-meal); }
.ev[data-type="meal"] .ev-icon { background: rgba(0,184,148,0.08); color: var(--c-meal); }
.ev[data-type="meal"] .ev-time { color: var(--c-meal); }

.ev[data-type="social"] .ev-accent { background: var(--c-social); }
.ev[data-type="social"] .ev-icon { background: rgba(232,67,147,0.08); color: var(--c-social); }
.ev[data-type="social"] .ev-time { color: var(--c-social); }

.ev[data-type="speech"] .ev-accent { background: var(--c-speech); }
.ev[data-type="speech"] .ev-icon { background: rgba(225,112,85,0.08); color: var(--c-speech); }
.ev[data-type="speech"] .ev-time { color: var(--c-speech); }

.ev[data-type="session"] .ev-accent { background: var(--blue); }
.ev[data-type="session"] .ev-time { color: var(--blue); }

.ev[data-type="registration"] .ev-accent { background: var(--blue-light); }
.ev[data-type="registration"] .ev-icon { background: rgba(30,90,188,0.08); color: var(--blue-light); }
.ev[data-type="registration"] .ev-time { color: var(--blue-light); }

/* ===== BREAK ===== */
.ev--break {
    background: var(--g100);
    border-color: var(--g200);
    box-shadow: none;
}

.ev--break .ev-accent { background: var(--g300) !important; width: 3px; }
.ev--break .ev-icon { background: transparent; color: var(--g400); width: 30px; height: 30px; font-size: 0.78rem; }
.ev--break .ev-time { background: transparent; border-right-color: var(--g200); color: var(--g400) !important; font-size: 0.8rem; min-width: 56px; }
.ev--break .ev-time span { color: var(--g300); }
.ev--break .ev-text h3 { color: var(--g400); font-weight: 500; font-size: 0.8rem; }
.ev--break:active { transform: none; }
.ev--break .ev-body { padding: 8px 12px; }

/* ===== GALA ===== */
.ev--gala {
    background: linear-gradient(135deg, #fffcf5 0%, var(--gold-50) 100%);
    border: 2px solid var(--gold);
    box-shadow: var(--sh-gold);
    overflow: hidden;
}

.ev--gala .ev-accent { background: linear-gradient(180deg, var(--gold), var(--gold-dark)) !important; width: 5px; }
.ev--gala .ev-icon { background: var(--gold-08); color: var(--gold-dark); }
.ev--gala .ev-time { color: var(--gold-dark) !important; background: var(--gold-08); border-right-color: var(--gold-15); }
.ev--gala .ev-text h3 { color: var(--blue-dark); font-weight: 700; font-size: 0.9rem; }

.ev-gala-dress {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-top: 3px;
}

.ev-gala-dress i { margin-right: 3px; font-size: 0.55rem; }

.ev-gala-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 2px;
    border-radius: var(--radius-full);
    box-shadow: var(--sh-gold);
    align-self: center;
}

.ev-gala-shimmer {
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(247,168,27,0.06), transparent);
    animation: shimmer 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer {
    0%, 100% { left: -120%; }
    50% { left: 140%; }
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 32px var(--pad) 40px;
    background: var(--blue);
    margin-top: 8px;
}

.footer-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

.footer-org {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

.footer-divider {
    width: 30px;
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 14px auto;
}

.footer-credit {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
}

.footer-credit strong {
    color: rgba(255,255,255,0.55);
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-ew {
    width: 80px;
    margin-top: 8px;
    opacity: 0.4;
    filter: brightness(0) invert(1);
}

.footer-ew-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== DESKTOP ===== */
@media (min-width: 768px) {
    :root { --pad: 24px; }

    .main { max-width: 640px; }

    .header-top { padding: 28px var(--pad) 14px; }
    .header-logo { width: 64px; height: 64px; }
    .header-title { font-size: 1.9rem; }

    .day-nav { gap: 8px; padding: 14px var(--pad) 16px; max-width: 500px; margin: 0 auto; }
}

@media (min-width: 1024px) {
    .main { max-width: 720px; }
    .day-nav { max-width: 560px; }
}

/* ===== PRINT ===== */
@media print {
    .header, .footer { display: none; }
    body { background: white; }
    .ev { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
    .ev-accent { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .ev-group.active { gap: 4px; }
}
