/* ============================================================
   Aris Swift — Game Store Page Styles
   Steam-inspired layout for game product pages
   ============================================================ */

/* ---- STORE-SPECIFIC VARIABLES ---- */
:root {
    --steam-bg: #0c1929;
    --steam-surface: #121f33;
    --steam-surface-light: #1a2d45;
    --steam-border: #233d56;
    --steam-accent: #1a9fff;
    --steam-green: #5c7e10;
    --steam-green-light: #7ab317;
    --steam-green-glow: rgba(122, 179, 23, 0.3);
    --steam-review-pos: #66c0f4;
    --steam-review-neg: #cf6a32;
}

/* ---- BREADCRUMB ---- */
.store-breadcrumb {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 3rem 0;
    font-size: 0.8rem;
    color: var(--muted);
}
.store-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.store-breadcrumb a:hover { color: var(--accent); }
.store-breadcrumb span { margin: 0 0.4rem; color: var(--border); }
.store-breadcrumb .current { color: var(--text); }

/* ---- GAME BANNER ---- */
.game-banner {
    position: relative;
    z-index: 1;
    margin: 1.5rem auto;
    max-width: 1200px;
    padding: 0 3rem;
}
.banner-art {
    position: relative;
    width: 100%;
    height: 340px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1a2e 0%, #0a0f1e 50%, #1a0d2e 100%);
    border: 1px solid var(--border);
}
.banner-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(0,212,255,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(26,159,255,0.05) 0%, transparent 70%);
    z-index: 1;
}
.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.banner-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.banner-particles::before,
.banner-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: streak linear infinite;
}
.banner-particles::before {
    top: 30%;
    left: 10%;
    box-shadow:
        60px 40px 0 rgba(124,58,237,0.6) 2px 2px,
        120px 20px 0 2px rgba(0,212,255,0.4),
        200px 60px 0 1px rgba(124,58,237,0.3),
        300px 10px 0 3px rgba(0,212,255,0.5),
        400px 80px 0 1px rgba(124,58,237,0.4),
        500px 30px 0 2px rgba(0,212,255,0.3);
    animation-duration: 8s;
}
.banner-particles::after {
    top: 70%;
    left: 20%;
    box-shadow:
        80px -20px 0 1px rgba(0,212,255,0.4),
        160px 10px 0 2px rgba(124,58,237,0.5),
        240px -40px 0 1px rgba(0,212,255,0.3),
        350px 20px 0 3px rgba(124,58,237,0.4),
        450px -10px 0 1px rgba(0,212,255,0.5);
    animation-duration: 12s;
    animation-delay: -4s;
}
@keyframes streak {
    0% { transform: translateX(-100px) scale(1); opacity: 0.6; }
    50% { opacity: 1; }
    100% { transform: translateX(calc(100vw + 100px)) scale(0.5); opacity: 0; }
}

/* Banner logo with speed rings */
.banner-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.speed-rings {
    position: relative;
    width: 100px;
    height: 100px;
}
.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: ring-pulse 2s ease-in-out infinite;
}
.r1 {
    width: 80px;
    height: 80px;
    top: 10px;
    left: 10px;
    border-color: rgba(0,212,255,0.6);
    animation-delay: 0s;
}
.r2 {
    width: 100px;
    height: 100px;
    top: 0;
    left: 0;
    border-color: rgba(124,58,237,0.3);
    animation-delay: 0.3s;
}
.r3 {
    width: 60px;
    height: 60px;
    top: 20px;
    left: 20px;
    border-color: rgba(0,212,255,0.8);
    animation-delay: 0.6s;
}
@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.5; }
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-sub {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    color: var(--muted);
    margin-bottom: -0.3rem;
}
.logo-main {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
    letter-spacing: 0.05em;
    filter: drop-shadow(0 0 20px rgba(0,212,255,0.3));
}
.banner-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}
.platform-icons {
    display: flex;
    gap: 0.6rem;
}
.platform-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text);
    background: rgba(255,255,255,0.06);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}
.banner-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---- STEAM-STYLE LAYOUT ---- */
.game-page-layout {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 3rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

/* ---- REVIEW SUMMARY (Steam style) ---- */
.review-summary {
    background: var(--steam-surface);
    border: 1px solid var(--steam-border);
    border-radius: 4px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}
.review-title {
    font-size: 0.85rem;
    color: var(--muted);
}
.review-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 3px;
}
.review-badge.positive {
    color: var(--steam-review-pos);
    background: rgba(102,192,244,0.1);
}
.review-badge.negative {
    color: var(--steam-review-neg);
    background: rgba(207,106,50,0.1);
}
.review-bar {
    width: 100%;
    height: 6px;
    background: var(--steam-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.review-bar-fill {
    height: 100%;
    background: var(--steam-review-pos);
    border-radius: 3px;
    transition: width 0.5s ease;
}
.review-detail {
    font-size: 0.75rem;
    color: var(--muted);
}
.review-count { font-weight: 600; color: var(--text); }

/* ---- GALLERY / SCREENSHOTS ---- */
.gallery-section {
    margin-bottom: 2rem;
}
.gallery-viewer {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--steam-bg);
    border: 1px solid var(--steam-border);
}
.gallery-slides {
    width: 100%;
    height: 100%;
    position: relative;
}
.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.slide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d1a2e, #1a2234);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.slide-placeholder.purple-shift {
    background: linear-gradient(135deg, #1a0d2e, #0d1a2e);
}
.slide-grid-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}
.slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.slide-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    opacity: 0.5;
}
.slide-content span {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--text);
    opacity: 0.7;
}
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 70px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-arrow:hover { background: rgba(0,212,255,0.2); }
.gallery-prev { left: 0; border-radius: 0 4px 4px 0; }
.gallery-next { right: 0; border-radius: 4px 0 0 4px; }
.gallery-thumbs {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}
.gallery-thumb {
    flex: 1;
    height: 60px;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: var(--steam-surface);
}
.gallery-thumb.active {
    border-color: var(--accent);
}
.gallery-thumb:hover {
    border-color: var(--steam-accent);
}
.thumb-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d1a2e, #1a2234);
    position: relative;
}
.gallery-thumb:nth-child(even) .thumb-inner {
    background: linear-gradient(135deg, #1a0d2e, #0d1a2e);
}
.thumb-inner span {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    opacity: 0.3;
}

/* ---- ABOUT THIS GAME ---- */
.about-game-section {
    margin-bottom: 2rem;
}
.game-section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--steam-border);
}
.game-description p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}
.game-description strong {
    color: var(--text);
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}
.feature-card {
    background: var(--steam-surface);
    border: 1px solid var(--steam-border);
    border-radius: 6px;
    padding: 1.2rem;
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.feature-card h4 {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.4rem;
}
.feature-card p {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ---- SYSTEM REQUIREMENTS ---- */
.sysreq-section {
    margin-bottom: 2rem;
}
.sysreq-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}
.sysreq-tab {
    padding: 0.6rem 1.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.05em;
    color: var(--muted);
    background: var(--steam-surface);
    border: 1px solid var(--steam-border);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 2px;
}
.sysreq-tab.active {
    color: var(--accent);
    background: var(--steam-surface-light);
    border-color: var(--accent);
    border-bottom-color: var(--steam-surface-light);
}
.sysreq-tab:hover:not(.active) {
    color: var(--text);
    background: var(--steam-surface-light);
}
.sysreq-content {
    background: var(--steam-surface-light);
    border: 1px solid var(--accent);
    border-radius: 0 4px 4px 4px;
    padding: 1.2rem;
}
.sysreq-table {
    width: 100%;
    border-collapse: collapse;
}
.sysreq-table tr { border-bottom: 1px solid rgba(255,255,255,0.04); }
.sysreq-table tr:last-child { border-bottom: none; }
.sysreq-table td {
    padding: 0.6rem 0;
    font-size: 0.85rem;
    color: var(--muted);
}
.sysreq-label {
    font-weight: 600;
    color: var(--text);
    width: 130px;
    white-space: nowrap;
}

/* ---- MORE LIKE THIS ---- */
.more-section {
    margin-bottom: 2rem;
}
.more-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.more-card {
    display: flex;
    gap: 0.8rem;
    background: var(--steam-surface);
    border: 1px solid var(--steam-border);
    border-radius: 4px;
    padding: 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.more-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.more-card-art {
    width: 80px;
    height: 60px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}
.art-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: rgba(0,212,255,0.3);
}
.gradient-blue { background: linear-gradient(135deg, #0d1a2e, #1a2234); }
.gradient-purple { background: linear-gradient(135deg, #1a0d2e, #0d1a2e); }
.more-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}
.more-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}
.more-card-tag {
    font-size: 0.7rem;
    color: var(--muted);
}

/* ---- PURCHASE CARD (right sidebar) ---- */
.purchase-card {
    background: var(--steam-surface);
    border: 1px solid var(--steam-border);
    border-radius: 6px;
    overflow: hidden;
    position: sticky;
    top: 5.5rem;
}
.drm-notice {
    background: rgba(0,212,255,0.05);
    border-bottom: 1px solid var(--steam-border);
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}
.drm-icon { opacity: 0.7; }
.purchase-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    padding: 1.2rem 1.2rem 0;
    margin-bottom: 0;
}
.price-section {
    padding: 1rem 1.2rem;
}
.price-tag {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.price-amount {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text);
}
.price-amount small {
    font-size: 0.9rem;
    opacity: 0.7;
}
.price-usd {
    font-size: 0.75rem;
    color: var(--muted);
}
.purchase-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: calc(100% - 2.4rem);
    margin: 0 1.2rem 1rem;
    padding: 0.9rem;
    background: linear-gradient(135deg, #4a8c2a, #5c7e10);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}
.purchase-btn:hover {
    background: linear-gradient(135deg, var(--steam-green-light), #6a9e15);
    box-shadow: 0 4px 20px var(--steam-green-glow);
    transform: translateY(-1px);
}
.purchase-details {
    padding: 0 1.2rem 0.8rem;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.82rem;
}
.detail-label { color: var(--muted); }
.detail-value { color: var(--text); font-weight: 500; }
.purchase-divider {
    height: 1px;
    background: var(--steam-border);
    margin: 0.5rem 1.2rem;
}
.launch-info {
    padding: 1rem 1.2rem;
}
.launch-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.8rem;
}
.launch-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}
.launch-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 0.6rem;
}
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--steam-surface-light);
    border: 1px solid var(--steam-border);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    font-family: 'Orbitron', monospace;
}
.donate-section {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--steam-border);
    text-align: center;
}
.donate-section p {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
}
.donate-section a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.donate-section a:hover { text-decoration: underline; }

/* ---- FAQ SECTION ---- */
.faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 3rem 4rem;
    position: relative;
    z-index: 1;
}
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.faq-item {
    background: var(--steam-surface);
    border: 1px solid var(--steam-border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover {
    border-color: rgba(0,212,255,0.3);
}
.faq-item summary {
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    font-size: 0.92rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item[open] summary::before {
    transform: rotate(-135deg);
}
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
    padding: 0 1.2rem 1rem 2.2rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
}

/* ---- FOOTER (override for game page) ---- */
.game-page-layout + .faq-section + footer,
.faq-section + footer {
    margin-top: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
    .game-page-layout {
        grid-template-columns: 1fr;
    }
    .game-sidebar {
        order: -1;
    }
    .purchase-card {
        position: static;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .game-banner { padding: 0 1.5rem; }
    .store-breadcrumb { padding: 6rem 1.5rem 0; }
    .game-page-layout { padding: 2rem 1.5rem; }
    .faq-section { padding: 2rem 1.5rem 4rem; }
    .banner-art { height: 260px; }
    .gallery-viewer { height: 240px; }
    .feature-grid { grid-template-columns: 1fr; }
    .more-grid { grid-template-columns: 1fr; }
    .speed-rings { width: 70px; height: 70px; }
    .r1 { width: 60px; height: 60px; top: 5px; left: 5px; }
    .r2 { width: 70px; height: 70px; }
    .r3 { width: 45px; height: 45px; top: 12px; left: 12px; }
    .logo-main { font-size: 1.8rem; }
    .logo-sub { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .banner-art { height: 220px; }
    .banner-logo { gap: 0.8rem; }
    .gallery-viewer { height: 180px; }
    .gallery-thumbs { gap: 2px; }
    .gallery-thumb { height: 45px; }
    .sysreq-tabs { flex-direction: column; gap: 2px; }
    .sysreq-tab { border-radius: 4px; border-bottom: 1px solid var(--steam-border); }
    .sysreq-tab.active { border-color: var(--accent); }
    .sysreq-content { border-radius: 4px; }
}
