﻿/* ===== VPO PORTAL — Sub Page Styles ===== */
/* Imports portal.css base, extends for sub-pages */

/* Page Container */
.sp-page {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 80px 24px 40px;
}

.sp-page-wide {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 40px;
}

/* Page Header */
.sp-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent);
}

.sp-breadcrumb {
    font-size: 11px;
    color: var(--fg-dim);
    margin-bottom: 8px;
}

.sp-breadcrumb a {
    color: var(--fg-muted);
    text-decoration: none;
    transition: color .2s;
}

.sp-breadcrumb a:hover {
    color: var(--accent);
}

.sp-title {
    font-family: var(--font-serif);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 8px;
}

.sp-subtitle {
    font-size: 14px;
    color: var(--fg-muted);
    line-height: 1.6;
}

/* Content Typography */
.sp-content {}

.sp-content h2 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.sp-content h3 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    margin: 24px 0 8px;
    color: var(--accent);
}

.sp-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--fg-muted);
    margin-bottom: 16px;
}

.sp-content ul,
.sp-content ol {
    margin: 0 0 16px 20px;
    font-size: 14px;
    color: var(--fg-muted);
    line-height: 1.8;
}

.sp-content li {
    margin-bottom: 4px;
}

.sp-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s;
}

.sp-content a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.sp-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
    margin: 16px 0;
    background: var(--accent-dim);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--fg);
}

.sp-content .highlight {
    background: var(--accent-dim);
    border: 1px solid rgba(212, 168, 74, .15);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}

/* Cards Grid */
.sp-grid {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.sp-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sp-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sp-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.sp-card {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all .3s;
}

.sp-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.sp-card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.sp-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.sp-card-desc {
    font-size: 12px;
    color: var(--fg-muted);
    line-height: 1.6;
}

/* Team Members */
.sp-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.sp-team-card {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.sp-team-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, .06);
}

.sp-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-team-photo .initial {
    font-size: 28px;
    font-weight: 800;
    color: var(--fg-dim);
}

.sp-team-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.sp-team-role {
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 6px;
}

.sp-team-bio {
    font-size: 11px;
    color: var(--fg-muted);
    line-height: 1.5;
}

/* Timeline */
.sp-timeline {
    margin: 20px 0;
}

.sp-tl-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.sp-tl-year {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    min-width: 60px;
}

.sp-tl-content {
    flex: 1;
}

.sp-tl-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sp-tl-desc {
    font-size: 12px;
    color: var(--fg-muted);
    line-height: 1.6;
}

/* Form */
.sp-form {
    max-width: 600px;
    margin: 20px 0;
}

.sp-form-group {
    margin-bottom: 16px;
}

.sp-form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 6px;
}

.sp-form-input,
.sp-form-textarea,
.sp-form-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--fg);
    font-size: 13px;
    font-family: var(--font);
    outline: none;
    transition: border-color .2s;
}

.sp-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.sp-form-input:focus,
.sp-form-textarea:focus,
.sp-form-select:focus {
    border-color: var(--accent);
}

.sp-form-input::placeholder,
.sp-form-textarea::placeholder {
    color: var(--fg-dim);
}

.sp-form-select option {
    background: var(--bg);
    color: var(--fg);
}

.sp-form-submit {
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: #000;
    cursor: pointer;
    transition: all .2s;
}

.sp-form-submit:hover {
    background: var(--accent-hover);
}

.sp-form-msg {
    margin-top: 8px;
    font-size: 12px;
    min-height: 16px;
}

/* Speakers Archive Grid */
.sp-speakers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.sp-speaker-card {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: all .3s;
}

.sp-speaker-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Stats */
.sp-stats-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.sp-stat {
    flex: 1;
    min-width: 120px;
    text-align: center;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.sp-stat-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.sp-stat-label {
    font-size: 11px;
    color: var(--fg-muted);
}

/* Global Map Section */
.sp-map-area {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin: 20px 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

/* AI Feature Box */
.sp-ai-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.sp-ai-step {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    position: relative;
}

.sp-ai-step::after {
    content: '→';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--accent);
}

.sp-ai-step:last-child::after {
    display: none;
}

.sp-ai-step-num {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
}

.sp-ai-step-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sp-ai-step-desc {
    font-size: 10px;
    color: var(--fg-muted);
    line-height: 1.5;
}

/* Audience Breakdown Bars */
.sp-audience-list {
    margin: 20px 0;
}

.sp-audience-item {
    margin-bottom: 16px;
}

.sp-audience-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.sp-audience-pct {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent);
    font-size: 15px;
}

.sp-audience-bar-bg {
    height: 10px;
    background: rgba(255, 255, 255, .06);
    border-radius: 100px;
    overflow: hidden;
}

.sp-audience-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(.22, 1, .36, 1);
    width: 0;
}

/* Event Format Box */
.sp-event-format {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
}

.sp-event-format-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.sp-event-format-item {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, .03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, .04);
}

.sp-event-format-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.sp-event-format-val {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 2px;
}

.sp-event-format-label {
    font-size: 11px;
    color: var(--fg-muted);
}

.sp-event-flow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.sp-event-flow-step {
    background: rgba(212, 168, 74, .08);
    border: 1px solid rgba(212, 168, 74, .2);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.sp-event-flow-arrow {
    color: var(--accent);
    font-size: 18px;
    font-weight: 800;
}

/* FAQ Accordion (shared) */
.sp-faq-list {
    max-width: 760px;
    margin: 20px 0;
}

.sp-faq-item {
    border-bottom: 1px solid var(--border);
}

.sp-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: color .2s;
}

.sp-faq-q:hover {
    color: var(--accent);
}

.sp-faq-q-text {
    font-size: 14px;
    font-weight: 600;
}

.sp-faq-q-icon {
    font-size: 18px;
    transition: transform .3s;
    color: var(--fg-dim);
    flex-shrink: 0;
    margin-left: 16px;
}

.sp-faq-q-icon.open {
    transform: rotate(45deg);
}

.sp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .3s ease;
    font-size: 13px;
    color: var(--fg-muted);
    line-height: 1.8;
}

.sp-faq-a.open {
    max-height: 300px;
    padding-bottom: 18px;
}

/* Inline Speakers Grid (for speaker-about) */
.sp-inline-speakers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.sp-inline-speaker-card {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: all .3s;
    cursor: default;
}

.sp-inline-speaker-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Two-Column Layouts (for speaker-about) */
.sp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 8px;
}

.sp-two-col-wide {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.sp-section-heading {
    margin-top: 16px;
}

/* Speaker Header (title + shuffle button) */
.sp-speaker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
}

.sp-speaker-header h2 {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.sp-shuffle-btn {
    font-size: 12px;
    padding: 6px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== Card Action Buttons (Cheer / Comment) ===== */
.card-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    justify-content: center;
}

.card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: transparent;
    color: var(--fg-muted, #888);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.card-action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 168, 74, .08);
}

.card-action-btn.cheered {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 168, 74, .12);
}

.card-action-btn.cheered:hover {
    background: rgba(212, 168, 74, .04);
    border-color: rgba(255, 255, 255, .2);
}

.card-action-btn .count {
    font-weight: 700;
}

.card-comment-area {
    display: none;
    margin-top: 6px;
}

.card-comment-area.show {
    display: flex;
    gap: 4px;
}

.card-comment-input {
    flex: 1;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(0, 0, 0, .3);
    color: #e8e6e3;
    font-size: 11px;
    outline: none;
    font-family: inherit;
}

.card-comment-input:focus {
    border-color: var(--accent);
}

.card-comment-send {
    padding: 5px 10px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.card-comment-send:hover {
    background: #e0b550;
}

.card-comment-send:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Responsive */
@media(max-width:768px) {

    .sp-grid-2,
    .sp-grid-3,
    .sp-grid-4 {
        grid-template-columns: 1fr;
    }

    .sp-team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sp-speakers-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sp-ai-flow {
        grid-template-columns: 1fr 1fr;
    }

    .sp-ai-step::after {
        display: none;
    }

    .sp-stats-row {
        flex-direction: column;
    }

    .sp-event-format-row {
        grid-template-columns: 1fr;
    }

    .sp-inline-speakers-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sp-event-flow-row {
        flex-direction: column;
        gap: 4px;
    }

    .sp-event-flow-arrow {
        transform: rotate(90deg);
    }

    .sp-two-col,
    .sp-two-col-wide {
        grid-template-columns: 1fr;
    }

    .sp-grid {
        grid-template-columns: 1fr !important;
    }

    .sp-faq-list {
        max-width: 100%;
    }

    .sp-event-format {
        padding: 16px;
    }

    .sp-card {
        padding: 16px;
    }

    .sp-shuffle-btn {
        font-size: 11px;
        padding: 4px 10px;
    }

    .sp-speaker-header {
        flex-wrap: wrap;
    }

    .sp-speaker-header h2 {
        width: 100%;
        font-size: 22px;
    }

    .sp-section-heading {
        margin-top: 0;
    }
}
