/**
 * ACM Chapter Theme — Event Single & Speaker Profile Styles
 */

/* ═══════════════════════════════════════════════════════════
   SHARED CONTENT SECTION STYLES
   ═══════════════════════════════════════════════════════════ */

.ec-intro {
    border-left: 3px solid var(--gold);
    background: var(--bg-light);
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    font-size: var(--text-md);
    font-family: var(--font-sans);
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: var(--space-6);
}

.ec-section {
    margin-bottom: var(--space-6);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.ec-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
    font-size: var(--text-base);
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--blue-dark);
}

.ec-icon {
    width: 28px;
    height: 28px;
    background: var(--blue-dark);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.ec-list {
    list-style: none;
    padding: 14px 16px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ec-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: var(--text-base);
    font-family: var(--font-sans);
    line-height: 1.65;
    color: var(--text-body);
}

.ec-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    margin-top: 7px;
    flex-shrink: 0;
}

.ec-para {
    padding: 0 16px 14px;
    font-size: var(--text-base);
    font-family: var(--font-sans);
    line-height: 1.8;
    color: var(--text-body);
    margin: 0;
}

.ec-audience-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 14px;
}

.ec-pill {
    font-size: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--blue-light);
    color: var(--blue-dark);
}

.ec-schedule { overflow: hidden; }

.ec-schedule-row {
    display: grid;
    grid-template-columns: 110px 1fr;
}

.ec-schedule-time {
    background: var(--blue-dark);
    color: var(--gold);
    font-size: 11px;
    font-family: var(--font-sans);
    font-weight: 700;
    padding: 12px 12px;
    border-bottom: 1px solid #002855;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.ec-schedule-item {
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    color: var(--text-body);
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.ec-schedule-row:last-child .ec-schedule-time,
.ec-schedule-row:last-child .ec-schedule-item { border-bottom: none; }


/* ═══════════════════════════════════════════════════════════
   SIDEBAR — EVENT PAGE
   ═══════════════════════════════════════════════════════════ */

.sidebar-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: var(--space-5);
}

.sidebar-cell {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.sidebar-cell:nth-child(even) { border-right: none; }
.sidebar-cell:nth-last-child(-n+2) { border-bottom: none; }

.sidebar-cell-label {
    font-size: 11px;
    font-family: var(--font-sans);
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sidebar-cell-value {
    font-size: 13px;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--blue-dark);
}

.sidebar-admission-label {
    font-size: 11px;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.sidebar-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.sidebar-price-cell {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 8px 6px;
    text-align: center;
}

.sidebar-price-type {
    font-size: 10px;
    font-family: var(--font-sans);
    color: var(--text-muted);
    margin-bottom: 4px;
    line-height: 1.3;
}

.sidebar-price-value {
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 700;
}

.price-free { color: #0F6E56; }
.price-paid { color: #185FA5; }

.sidebar-youtube-note {
    font-size: 0.82rem;
    font-family: var(--font-sans);
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-3);
    line-height: 1.5;
}

.sidebar-youtube-note a {
    color: #c53030;
    text-decoration: underline;
    font-weight: 600;
}

.sidebar-past-note {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    padding: var(--space-3);
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-top: var(--space-4);
}

.btn-block {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}


/* ═══════════════════════════════════════════════════════════
   SPEAKER CARDS ON EVENT PAGE
   ═══════════════════════════════════════════════════════════ */

.spk-badge-dist {
    display: inline-block;
    font-size: 10px;
    font-family: var(--font-sans);
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--gold);
    color: var(--blue-dark);
    margin-bottom: 10px;
}

.spk-badge-comm {
    display: inline-block;
    font-size: 10px;
    font-family: var(--font-sans);
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--blue-light);
    color: var(--blue-dark);
    margin-bottom: 10px;
}

.spk-featured {
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: var(--space-5);
    background: #FFFDF5;
}

.spk-featured-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
    border: 2px solid var(--gold);
    overflow: hidden;
}

.spk-featured-avatar img { width: 100%; height: 100%; object-fit: cover; }
.spk-featured-info { flex: 1; }

.spk-featured-name {
    font-size: var(--text-md);
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 2px;
}

.spk-featured-title {
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    color: var(--text-muted);
    margin-bottom: 8px;
}

.spk-featured-talk {
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--blue-dark);
    background: #FFF3CC;
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--gold);
    margin-bottom: 8px;
}

.spk-profile-link {
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.spk-profile-link:hover { text-decoration: underline; }

.spk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    padding: 0 16px 16px;
}

.spk-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}

.spk-card-top {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.spk-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--blue-dark);
    flex-shrink: 0;
    overflow: hidden;
}

.spk-avatar img { width: 100%; height: 100%; object-fit: cover; }

.spk-name {
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--blue-dark);
}

.spk-role {
    font-size: 11px;
    font-family: var(--font-sans);
    color: var(--text-muted);
}

.spk-talk {
    font-size: 12px;
    font-family: var(--font-sans);
    color: var(--text-muted);
    line-height: 1.5;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-bottom: 6px;
}


/* ═══════════════════════════════════════════════════════════
   SPEAKER PROFILE PAGE — HERO
   ═══════════════════════════════════════════════════════════ */

.spk-hero-section {
    background: var(--blue-dark);
    padding: var(--space-10) var(--space-8);
}

.spk-hero-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.spk-hero-top {
    display: flex;
    gap: var(--space-6);
    align-items: center;
    margin-bottom: var(--space-6);
}

.spk-hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--blue);
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
    overflow: hidden;
}

.spk-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }

.spk-hero-name {
    font-size: var(--text-xl);
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-2);
}

.spk-hero-title {
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    color: rgba(255,255,255,0.65);
    margin-bottom: var(--space-3);
}

.spk-linkedin-link {
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}

.spk-linkedin-link:hover { text-decoration: underline; }

/* Event selector */
.spk-event-selector {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-3);
}

.spk-selector-label {
    font-size: 11px;
    font-family: var(--font-sans);
    color: rgba(255,255,255,0.6);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.spk-event-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.spk-event-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.75);
    background: transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.spk-event-tab.active {
    background: var(--gold);
    color: var(--blue-dark);
    border-color: var(--gold);
}

.spk-event-tab:hover:not(.active) {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

/* ── Share Row ── */
.spk-share-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: var(--space-3);
}

.spk-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-family: var(--font-sans);
    font-weight: 600;
    color: #ffffff !important;
    background: rgba(255,255,255,0.18) !important;
    border: 1.5px solid rgba(255,255,255,0.45) !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

.spk-share-btn:hover {
    background: rgba(255,255,255,0.28) !important;
    border-color: rgba(255,255,255,0.65) !important;
    color: #ffffff !important;
}

.spk-copied-msg {
    display: none;
    font-size: 12px;
    font-family: var(--font-sans);
    color: var(--gold);
    margin-top: 8px;
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   SPEAKER PROFILE PAGE — BODY
   ═══════════════════════════════════════════════════════════ */

.spk-page-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: var(--space-10);
    align-items: start;
}

.spk-main { display: flex; flex-direction: column; gap: var(--space-4); }

.spk-talk-title {
    font-size: var(--text-md);
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1.4;
    padding: 12px 16px 8px;
    border-left: 3px solid var(--gold);
    margin: 0 16px 8px;
    background: #FFFDF5;
    border-radius: 0 4px 4px 0;
}

.spk-bio {
    padding: 14px 16px;
    font-size: var(--text-base);
    font-family: var(--font-sans);
    line-height: 1.8;
    color: var(--text-body);
}

.spk-history-row {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}

.spk-history-row:last-child { border-bottom: none; }
.spk-history-row:hover { background: var(--bg-light); }

.spk-history-row.active {
    background: #FFFDF5;
    border-left: 3px solid var(--gold);
    padding-left: 13px;
}

.spk-history-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
}

.spk-history-dot.gold { background: var(--gold); }
.spk-history-info { flex: 1; }

.spk-history-event {
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--blue-dark);
}

.spk-history-meta {
    font-size: 11px;
    font-family: var(--font-sans);
    color: var(--text-muted);
    margin-top: 2px;
}

.spk-history-badge {
    font-size: 10px;
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--blue-light);
    color: var(--blue-dark);
    white-space: nowrap;
}

.spk-history-badge.dist { background: #FFF3CC; color: #7A4F00; }
.spk-history-arrow { font-size: 12px; color: var(--text-muted); }

/* Sidebar */
.spk-sidebar { display: flex; flex-direction: column; gap: var(--space-4); }

.spk-event-ref {
    background: var(--blue-dark);
    border-radius: var(--radius);
    padding: var(--space-5);
}

.spk-event-ref-eye {
    font-size: 10px;
    font-family: var(--font-sans);
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.spk-event-ref-title {
    font-size: var(--text-md);
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    line-height: 1.3;
}

.spk-event-ref-date {
    font-size: 12px;
    font-family: var(--font-sans);
    color: rgba(255,255,255,0.55);
    margin-bottom: var(--space-4);
}

.spk-event-ref-btn {
    display: block;
    text-align: center;
    background: var(--gold);
    color: var(--blue-dark);
    font-size: 13px;
    font-family: var(--font-sans);
    font-weight: 700;
    padding: 8px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: opacity 0.2s;
}

.spk-event-ref-btn:hover { opacity: 0.9; }

.spk-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-5);
}

.spk-info-card h4 {
    font-size: 11px;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}

.spk-info-row { margin-bottom: var(--space-3); }
.spk-info-row:last-child { margin-bottom: 0; }

.spk-info-label {
    font-size: 10px;
    font-family: var(--font-sans);
    color: var(--text-muted);
    margin-bottom: 2px;
}

.spk-info-val {
    font-size: 13px;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text-body);
}

.spk-action-btn {
    display: block;
    text-align: center;
    padding: 8px;
    border-radius: var(--radius);
    font-size: 13px;
    font-family: var(--font-sans);
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-body);
    background: var(--bg-light);
    cursor: pointer;
    margin-bottom: var(--space-2);
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.15s;
}

.spk-action-btn:last-child { margin-bottom: 0; }
.spk-action-btn:hover { background: var(--white); }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 800px) {
    .spk-page-layout { grid-template-columns: 1fr; }
    .spk-grid { grid-template-columns: 1fr; }
    .spk-hero-top { flex-direction: column; text-align: center; }
    .spk-event-selector { flex-direction: column; align-items: flex-start; }
    .spk-featured { flex-direction: column; }
    .ec-schedule-row { grid-template-columns: 90px 1fr; }
    .spk-share-row { justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════ */

@media print {
    .spk-hero-section { background: #001E3C !important; -webkit-print-color-adjust: exact; }
    .spk-share-row, .spk-action-btn, header, footer { display: none !important; }
    .spk-page-layout { grid-template-columns: 1fr !important; }
    .spk-sidebar { display: none !important; }
    .spk-main { width: 100% !important; }
    .ec-section { break-inside: avoid; }
}