/* =========================================================
   Página do Forastero
   ========================================================= */

/* ---------- Hero: capa em tela cheia com areia ---------- */
.fx-hero {
    position: relative; background: #1b1112; margin-top: 80px; overflow: hidden; isolation: isolate;
}
.fx-cover {
    display: block; width: 100%; max-height: calc(100vh - 190px); min-height: 220px;
    object-fit: contain; margin: 0 auto;
    animation: coverIn 1.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes coverIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
.fx-hero .sand-canvas { z-index: 1; }
.fx-hero::after {            /* fio vermelho de acabamento */
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 2;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ---------- Faixa de wishlist ---------- */
.get-section { padding: 0 20px; margin-top: -44px; position: relative; z-index: 5; }
.get-card {
    max-width: 1000px; margin: 0 auto; background: #fff; border-radius: 14px;
    box-shadow: 0 22px 60px rgba(20,16,16,.18); padding: 34px 38px;
    display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
    border-top: 4px solid var(--accent);
}
.badge-soon {
    display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
    color: var(--ink); background: var(--accent); padding: 5px 12px; border-radius: 30px; margin-bottom: 12px;
}
.get-card h1 { font-size: 2rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; margin-bottom: 6px; color: var(--ink); }
.get-card .platforms-info { font-size: 1rem; font-weight: 700; color: #6b5d55; margin-bottom: 18px; }
.get-card .platforms-info i { margin-right: 6px; }
.wishlist-container { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-wishlist {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 8px;
    font-weight: 700; font-size: .92rem; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.14);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-wishlist:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,.22); color: #fff; }
.btn-wishlist i { font-size: 1.3rem; }
.btn-ps5 { background-color: #0070d1; } .btn-ps5:hover { background-color: #005bb5; }
.btn-xbox { background-color: #107c41; } .btn-xbox:hover { background-color: #0d6635; }
.get-steam iframe { display: block; max-width: 100%; border-radius: 6px; }

/* ---------- Títulos de seção ---------- */
.fx-section { padding: 80px 20px 10px; }
.fx-wrap { max-width: 1000px; margin: 0 auto; }
.fx-heading {
    font-size: 1.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 28px;
    display: flex; align-items: center; gap: 16px; color: var(--ink);
}
.fx-heading::before { content: ''; width: 34px; height: 4px; background: var(--accent); border-radius: 2px; }

/* ---------- Galeria de mídia ---------- */
.media-gallery { background: #1b1112; border-radius: 14px; padding: 14px; box-shadow: 0 20px 50px rgba(20,16,16,.25); }
.media-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #000; }
.stage-view, .stage-view > * { width: 100%; height: 100%; }
.stage-view iframe { border: 0; display: block; }
.stage-img { object-fit: cover; display: block; cursor: zoom-in; animation: stageFade .45s ease both; }
@keyframes stageFade { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: scale(1); } }

.video-facade { position: relative; border: 0; padding: 0; background: #000; cursor: pointer; display: block; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .3s, transform .6s; }
.video-facade:hover img { opacity: 1; transform: scale(1.03); }
.play-btn {
    position: absolute; top: 50%; left: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
    background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
    padding-left: 6px; box-shadow: 0 0 0 0 rgba(253,158,0,.6); animation: pulse 2.2s infinite; transition: transform .25s, background .25s;
}
.video-facade:hover .play-btn { transform: scale(1.1); background: var(--accent-dark); }
@keyframes pulse { 70% { box-shadow: 0 0 0 26px rgba(253,158,0,0); } 100% { box-shadow: 0 0 0 0 rgba(253,158,0,0); } }
.play-label {
    position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); color: #fff; font-weight: 800;
    letter-spacing: 3px; text-transform: uppercase; font-size: .85rem; text-shadow: 0 2px 8px rgba(0,0,0,.7); white-space: nowrap;
}

.stage-nav {
    position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(20,16,16,.55); color: #fff; font-size: 1.1rem; z-index: 3; backdrop-filter: blur(4px);
    transition: background .2s, transform .2s; display: flex; align-items: center; justify-content: center;
}
.stage-nav:hover { background: var(--accent); color: var(--ink); transform: scale(1.08); }
.stage-prev { left: 14px; } .stage-next { right: 14px; }
.stage-full {
    position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 8px;
    background: rgba(20,16,16,.55); color: #fff; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s;
}
.stage-full:hover { background: var(--accent); color: var(--ink); }
.stage-counter {
    position: absolute; left: 14px; bottom: 12px; z-index: 3; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: 2px;
    background: rgba(20,16,16,.55); padding: 4px 10px; border-radius: 20px; backdrop-filter: blur(4px); pointer-events: none;
}

.media-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: #6b5d55 transparent; }
.media-thumbs::-webkit-scrollbar { height: 6px; }
.media-thumbs::-webkit-scrollbar-thumb { background: #6b5d55; border-radius: 3px; }
.thumb {
    position: relative; flex: 0 0 auto; width: 150px; aspect-ratio: 16 / 9; border: 2px solid transparent; border-radius: 7px;
    padding: 0; overflow: hidden; cursor: pointer; background: #000; opacity: .55; transition: opacity .25s, border-color .25s, transform .25s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { opacity: .9; transform: translateY(-2px); }
.thumb.active { opacity: 1; border-color: var(--accent); }
.thumb .thumb-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
    background: rgba(20,16,16,.35);
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 3000; background: rgba(10,6,6,.98); display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-frame { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lb-img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 20px 80px rgba(0,0,0,.6); transition: opacity .15s ease, transform .15s ease; }
.lb-img.swap { opacity: 0; transform: scale(.98); }
.lb-btn {
    position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.1); width: 50px; height: 50px; border-radius: 50%;
    font-size: 1.2rem; transition: background .2s; display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: var(--accent); color: var(--ink); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 16px; top: 50%; margin-top: -25px; }
.lb-next { right: 16px; top: 50%; margin-top: -25px; }
.lb-count { position: absolute; top: 28px; left: 24px; color: #fff; font-weight: 700; letter-spacing: 2px; font-size: .9rem; }

/* ---------- História ---------- */
.story-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 50px; align-items: start; }
.story-lead {
    font-size: 1.5rem; line-height: 1.45; font-weight: 800; color: var(--ink); text-transform: uppercase;
    border-left: 5px solid var(--accent); padding-left: 22px;
}
.story-text p { font-size: 1.08rem; line-height: 1.8; margin-bottom: 16px; color: #4a3f39; }
.story-text p:first-child::first-letter {
    float: left; font-size: 3.6rem; line-height: .9; font-weight: 800; padding: 6px 10px 0 0; color: var(--accent);
}

/* ---------- Cards (jogabilidade e características) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.feat-card {
    background: var(--bg-light); border: 1px solid #eee3d8; border-radius: 12px; padding: 24px 22px;
    padding-left: 28px; position: relative; overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); transform: scaleY(.35); transform-origin: top; transition: transform .35s ease; }
.feat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(20,16,16,.12); border-color: #e5cdb6; }
.feat-card:hover::before { transform: scaleY(1); }
.feat-card p { font-size: 1rem; line-height: 1.6; color: #3a2f2a; margin: 0; }

/* ---------- Requisitos de sistema ---------- */
.sys-req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sys-req-col { background: var(--bg-light); border: 1px solid #eee3d8; border-radius: 12px; padding: 26px; border-top: 4px solid var(--ink); }
.sys-req-col.rec { border-top-color: var(--accent); }
.sys-req-col h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; color: var(--ink); }
.sys-req-list { list-style: none; padding: 0; font-size: .95rem; line-height: 1.5; }
.sys-req-list li { padding: 8px 0; border-bottom: 1px dashed #e2d3c3; }
.sys-req-list li:last-child { border-bottom: 0; }
.sys-req-list li strong { color: #6b5d55; }

.fx-bottom-space { height: 90px; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .get-card { grid-template-columns: 1fr; padding: 28px 24px; }
    .story-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
    .fx-hero { margin-top: 120px; }
    .fx-cover { max-height: none; }
    .get-section { margin-top: -22px; }
    .get-card h1 { font-size: 1.6rem; }
    .fx-section { padding-top: 60px; }
    .fx-heading { font-size: 1.5rem; }
    .sys-req-grid { grid-template-columns: 1fr; }
    .thumb { width: 110px; }
    .play-btn { width: 66px; height: 66px; margin: -33px 0 0 -33px; font-size: 1.4rem; }
    .stage-nav { width: 38px; height: 38px; margin-top: -19px; }
    .lb-frame { padding: 70px 14px; }
    .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .fx-cover, .stage-img { animation: none; }
    .play-btn { animation: none; }
}
