/* ==========================================================
   WeWe3 — presentation pages
   ========================================================== */

.pres {
    --p-bg: var(--surface);
    --p-card: #fff;
    --p-ink: var(--ink);
    --p-soft: var(--ink-soft);
    --p-faint: var(--ink-faint);
    --p-border: var(--border);
    --p-chip: #fff;
    --p-glow: var(--accent-soft);
    background: var(--p-bg);
    color: var(--p-ink);
}
.pres--dark {
    --p-bg: #1B1D1A;
    --p-card: #242723;
    --p-ink: #F2F4EF;
    --p-soft: #C3C9BD;
    --p-faint: #8E9688;
    --p-border: #353A32;
    --p-chip: #2B2F29;
    --p-glow: rgba(85, 130, 44, 0.35);
}

/* ---------- Hero ---------- */
.pres-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 40px;
    background:
        radial-gradient(720px 460px at 88% -8%, var(--p-glow) 0%, transparent 70%),
        radial-gradient(520px 380px at -6% 105%, var(--p-glow) 0%, transparent 70%);
}
.pres-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: center;
}
@media (max-width: 960px) {
    .pres-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.pres-back {
    display: flex; width: fit-content; align-items: center; gap: 6px;
    margin-bottom: 22px;
    font-size: 14px; font-weight: 600;
    color: var(--p-faint);
    text-decoration: none;
    transition: color .15s ease;
}
.pres-back svg { width: 16px; height: 16px; }
.pres-back:hover { color: var(--p-ink); }
.pres--dark .eyebrow { color: #A9CC86; }
.pres-intro h1,
.pres-list-head h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    margin: 16px 0 10px;
    color: var(--p-ink);
}
.pres-subtitle {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 18px;
}
.pres--dark .pres-subtitle { color: #8DBF5E; }
.pres-summary {
    font-size: 17px;
    line-height: 1.6;
    color: var(--p-soft);
    max-width: 56ch;
}
.pres-meta {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 26px;
}
.pres-meta > * {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 99px;
    background: var(--p-chip);
    border: 1px solid var(--p-border);
    color: var(--p-soft);
}
.pres-meta--sm { margin-top: 14px; gap: 6px; }
.pres-meta--sm > * { font-size: 11.5px; padding: 4px 10px; }

/* ---------- Cover (stacked slides) ---------- */
.pres-cover {
    position: relative;
    display: block;
    width: 100%;
    padding: 0 0 0 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    aspect-ratio: 16 / 10.2;
    perspective: 1600px;
}
.pres-cover img {
    position: absolute;
    width: 88%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--p-border);
    transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}
.pres-cover-back2 { right: 0; top: 0; transform: rotate(4deg) translate(0, 0); opacity: .55; box-shadow: var(--shadow-m); }
.pres-cover-back1 { right: 3%; top: 4%; transform: rotate(2deg); opacity: .8; box-shadow: var(--shadow-m); }
.pres-cover-front { left: 0; bottom: 0; box-shadow: var(--shadow-l); background: #fff; }
.pres-cover:hover .pres-cover-front { transform: translateY(-6px); box-shadow: 0 32px 70px rgba(11,14,20,.22), 0 10px 24px rgba(11,14,20,.1); }
.pres-cover:hover .pres-cover-back1 { transform: rotate(3.5deg) translate(10px, -6px); }
.pres-cover:hover .pres-cover-back2 { transform: rotate(6.5deg) translate(18px, -10px); }
.pres-cover-play {
    position: absolute;
    left: calc(44% - 30px); top: calc(55% - 30px);
    width: 60px; height: 60px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(37, 38, 39, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transform: scale(.85);
    transition: opacity .25s ease, transform .25s ease;
}
.pres-cover-play svg { width: 26px; height: 26px; }
.pres-cover:hover .pres-cover-play,
.pres-cover:focus-visible .pres-cover-play { opacity: 1; transform: none; }
.pres-cover:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 16px; }

/* ---------- Choice panel ---------- */
.pres-choice-section { padding: 8px 0 56px; }
.pres .modal-overlay { display: block; }
.pres-choice {
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-m);
    padding: 32px;
}
.pres-choice h2 {
    font-size: clamp(20px, 2.4vw, 26px);
    color: var(--p-ink);
    margin-bottom: 22px;
}
.pres-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.pres .pres-option {
    justify-content: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-m);
    background: var(--p-bg);
    border: 1px solid var(--p-border);
    color: var(--p-ink);
    text-align: left;
    white-space: normal;
    font: inherit;
}
.pres .pres-option:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-s);
}
.pres--dark .pres-option:hover { background: rgba(85, 130, 44, .16); }
.pres-option-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 12px;
    color: var(--accent);
    background: var(--accent-soft);
}
.pres--dark .pres-option-icon { background: rgba(85, 130, 44, .2); color: #A9CC86; }
.pres-option-icon svg { width: 22px; height: 22px; }
.pres-option-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pres-option-text strong { font-size: 15.5px; font-weight: 600; }
.pres-option-text small { font-size: 13px; color: var(--p-faint); font-weight: 500; }
.pres .pres-option--primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-s); }
.pres .pres-option--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.pres .pres-option--primary .pres-option-icon { background: rgba(255,255,255,.16); color: #fff; }
.pres .pres-option--primary small { color: rgba(255,255,255,.78); }
.pres .btn.cancel {
    margin-top: 18px;
    padding: 10px 18px;
    background: transparent;
    color: var(--p-faint);
    border-color: transparent;
}
.pres .btn.cancel:hover { color: var(--p-ink); background: var(--p-bg); }
.pres .btn:focus-visible, .pres-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Slides grid ---------- */
.pres-inside { padding: 24px 0 64px; }
.pres-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.pres-section-head h2 { font-size: clamp(24px, 3vw, 32px); color: var(--p-ink); }
.pres-section-head p { color: var(--p-faint); font-size: 14.5px; }
.pres-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.pres-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--p-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--p-card);
    cursor: zoom-in;
    box-shadow: var(--shadow-s);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pres-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pres-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--accent); }
.pres-thumb-num {
    position: absolute; left: 10px; bottom: 10px;
    font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
    padding: 3px 8px; border-radius: 6px;
    background: rgba(30, 31, 33, .78); color: #fff;
}

.pres-cta-section { padding: 0 0 80px; }

/* ---------- Full-screen viewer ---------- */
.pres-lock { overflow: hidden; }
.pres-viewer {
    position: fixed; inset: 0; z-index: 300;
    display: flex; flex-direction: column;
    background: #121312;
    color: #F2F4F8;
    animation: pres-fade .25s ease both;
}
.pres-viewer[hidden] { display: none; }
@keyframes pres-fade { from { opacity: 0; } to { opacity: 1; } }
.pres-viewer-bar {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
    padding: 12px 16px;
}
.pres-viewer-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pres-viewer-count { font-family: var(--font-mono); font-size: 13px; color: var(--on-dark-soft); }
.pres-viewer-actions { justify-self: end; display: flex; gap: 8px; }
.pres-icon-btn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
    transition: background .15s ease;
}
.pres-icon-btn svg { width: 18px; height: 18px; }
.pres-icon-btn:hover { background: rgba(255,255,255,.16); }
.pres-progress { height: 3px; background: rgba(255,255,255,.08); }
.pres-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.pres-stage {
    position: relative;
    flex: 1; min-height: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 20px 72px;
}
.pres-stage img {
    width: auto; height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
    background: #fff;
    user-select: none;
    cursor: pointer;
}
.pres-stage img.is-in { animation: pres-slide-in .3s ease both; }
@keyframes pres-slide-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.pres-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    transition: background .15s ease;
}
.pres-nav svg { width: 22px; height: 22px; }
.pres-nav:hover { background: var(--accent); border-color: var(--accent); }
.pres-nav--prev { left: 14px; }
.pres-nav--next { right: 14px; }
.pres-strip {
    display: flex; gap: 8px;
    padding: 12px 16px 16px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.pres-strip button {
    flex: 0 0 auto;
    width: 112px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    opacity: .5;
    cursor: pointer;
    transition: opacity .15s ease, border-color .15s ease;
}
.pres-strip button img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pres-strip button:hover { opacity: .85; }
.pres-strip button.is-active { opacity: 1; border-color: var(--accent); }
.pres-stage--video video { width: 100%; max-width: 1280px; max-height: 100%; border-radius: 12px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

/* ---------- Presentations list ---------- */
.pres-hero--list { padding: 64px 0 88px; }
.pres-list-head { max-width: 720px; margin-bottom: 40px; }
.pres-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.pres-card {
    display: flex; flex-direction: column;
    border-radius: var(--radius-l);
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-s);
    transition: transform .25s ease, box-shadow .25s ease;
}
.pres-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.pres-card-media { position: relative; display: block; background: var(--surface-2); }
.pres-card-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.pres-card:hover .pres-card-media img { transform: scale(1.03); }
.pres-card-badge {
    position: absolute; top: 14px; right: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 99px;
    font-size: 12px; font-weight: 600;
    background: rgba(30,31,33,.78); color: #fff;
}
.pres-card-badge svg { width: 12px; height: 12px; }
.pres-card-body { display: flex; flex-direction: column; padding: 22px 24px 24px; flex: 1; }
.pres-card-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); }
.pres-card-sub { margin-top: 4px; font-size: 15px; color: var(--ink-soft); }
.pres-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: auto; padding-top: 18px;
    font-weight: 600; font-size: 14.5px; color: var(--accent-text);
}
.pres-card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.pres-card:hover .pres-card-link svg { transform: translateX(4px); }
.pres-card--dark { background: #1F221E; border-color: #30352D; }
.pres-card--dark .pres-card-title { color: #F2F4EF; }
.pres-card--dark .pres-card-sub { color: #C3C9BD; }
.pres-card--dark .pres-card-link { color: #A9CC86; }
.pres-card--dark .pres-meta > * { background: #2B2F29; border-color: #3A4036; color: #C3C9BD; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .pres-hero { padding: 32px 0 24px; }
    .pres-choice { padding: 22px 18px; }
    .pres-cover-play { opacity: 1; transform: none; width: 48px; height: 48px; left: calc(44% - 24px); top: calc(55% - 24px); }
    .pres-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pres-cards { grid-template-columns: 1fr; }
    .pres-stage { padding: 8px 0; }
    .pres-stage img { border-radius: 0; }
    .pres-nav { width: 40px; height: 40px; background: rgba(0,0,0,.45); }
    .pres-nav--prev { left: 6px; }
    .pres-nav--next { right: 6px; }
    .pres-viewer-title { display: none; }
    .pres-viewer-bar { grid-template-columns: 1fr auto; }
    .pres-strip button { width: 84px; }
}
@media (prefers-reduced-motion: reduce) {
    .pres-cover img, .pres-thumb, .pres-card, .pres-stage img.is-in { transition: none; animation: none; }
}
