﻿body {
    background-image: url('/lib/view_content_assets/background.png');
    background-position: center 0vh;
    background-size: cover;
    min-height: auto;
    margin: 0;
    background-repeat:repeat-y;
    
}

.game-image img {
    position: absolute;
    margin-top: 5vh;
    justify-content: center;
    align-items: center;
    display: block;
    max-height: 40vh;
    max-width: 40vw;
    border-radius: 15px;
    z-index: 1;
}

/* Make the card flow-based and responsive (removed negative margins / absolute offsets) */
.game-block {
    margin: 6vh auto 0;
    position: relative;
    backdrop-filter: blur(10);
    width: clamp(280px, 60vw, 900px);
    background-color: rgb(21 18 15 / 40%);
    z-index: 0;
    border-radius: 15px;
    border-top: 1px solid rgb(82, 58, 23);
    padding: 1.25rem;
    box-sizing: border-box;
    display: block;
}

/* Title sits below the image and scales on small viewports */
.game-name {
    margin: 1.25rem auto 0;
    color: white;
    width: min(90%, 700px);
    text-align: center;
    font-size: clamp(1rem, 2.2vw, 1.75rem);
}

/* Description flows under the title; responsive width and readable sizing */
.game-desc {
    margin: 1rem auto 0;
    position: relative;
    text-align: left;
    width: min(90%, 760px);
    color: white;
    font-size: clamp(0.85rem, 1.8vw, 1.05rem);
    line-height: 1.45;
}

/* Rating: larger stars and placed under description */
.rating {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin: 1rem auto 2rem; /* space under description and above bottom of block */
    width: min(90%, 760px);
    justify-content: flex-start; /* align with description start */
    position: relative;
    z-index: 2;
}

/* Make stars larger and touch-friendly */
.rating .star {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* bigger stars */
    cursor: pointer;
    padding: 0.15rem;
    line-height: 1;
    transition: color .12s ease, transform .08s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 6px;
}

/* Hover/focus affordance */
.rating .star:hover,
.rating .star:focus {
    color: rgba(255,255,255,0.95);
    transform: translateY(-3px);
    outline: none;
}

/* Filled star color (selected) */
.rating .star.filled {
    color: #ffd166;
}

/* hidden input remains off-screen but accessible */
.rating .rating-value {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Ensure rating adapts on very small screens */
@media (max-width: 480px) {
    .game-image img {
        margin-top: 4vh;
        max-height: 32vh;
        max-width: 92vw;
    }

    .game-block {
        margin-top: 4vh;
        width: 92%;
        padding: 1rem;
    }

    .game-name {
        font-size: clamp(0.95rem, 4vw, 1.25rem);
    }

    .game-desc {
        font-size: clamp(0.8rem, 3.6vw, 1rem);
    }

    .rating {
        gap: 0.4rem;
        margin: 0.75rem auto 1.5rem;
    }
    .rating .star {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        padding: 0.12rem;
    }
}

/* PlayStation-style game detail layout (hero + columns) */

.gc-page {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #fff;
    line-height: 1.45;
}

/* HERO */
.gc-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 3.5rem 1rem;
    box-sizing: border-box;
}

/* subtle overlay for legibility */
.gc-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

/* inner content constrained and centered */
.gc-hero__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: center;
    z-index: 2;
}

/* left column: title, rating, actions */
.gc-hero__left {
    padding: 1rem 0;
}

.gc-title {
    margin: 0 0 0.6rem 0;
    font-size: clamp(1.6rem, 3.4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.gc-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.gc-stars .star { font-size: 1.05rem; color: #9aa; margin-right: 0.12rem; }
.gc-stars .filled { color: #f5b301; }

.gc-rating__unavail { color: #c3c3c3; }

/* platform badges */
.platform-badge {
    display:inline-block;
    padding: .25rem .5rem;
    margin-right: .25rem;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-radius: 6px;
    font-size: .85rem;
}

/* price and actions */
.gc-price { font-size: 1.05rem; color: #ffd166; margin: .5rem 0 1rem 0; font-weight:700; }

.gc-actions { display:flex; gap: .75rem; flex-wrap:wrap; align-items:center; }

.gc-btn { display:inline-flex; align-items:center; justify-content:center; padding:.6rem 1rem; border-radius:8px; text-decoration:none; cursor:pointer; border: none; }
.gc-btn--primary { background: #0b69ff; color:#fff; box-shadow: 0 6px 18px rgba(11,105,255,0.18); }
.gc-btn--secondary { background: rgba(255,255,255,0.06); color:#fff; border:1px solid rgba(255,255,255,0.08); }

/* right column thumbnail */
.gc-hero__right { display:flex; align-items:center; justify-content:center; }
.gc-thumb { width:100%; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.55); max-width: 360px; }

/* CONTENT LAYOUT */
.gc-content {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    padding: 0 1rem 3rem;
    box-sizing: border-box;
}

/* main column */
.gc-content__col { background: transparent; color: #fff; }
.section-title { margin: 0 0 .5rem 0; font-size:1.1rem; color: #fff; }
.gc-description { color: #ddd; white-space: pre-wrap; }

/* aside (screenshots + meta) */
.gc-content__aside { background: rgba(255,255,255,0.02); padding: .75rem; border-radius: 8px; }
.gc-screenshots { display:grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.gc-screenshots img { width:100%; border-radius:6px; object-fit:cover; height:100px; }

/* platform pills */
.platform-pill { display:inline-block; padding:.25rem .5rem; margin:.25rem .25rem .25rem 0; background: rgba(255,255,255,0.03); border-radius:6px; color:#fff; font-size:.85rem; }

/* responsive adjustments */
@media (max-width: 980px) {
    .gc-hero__inner { grid-template-columns: 1fr 300px; gap:1.25rem; }
    .gc-content { grid-template-columns: 1fr 260px; gap: 1.25rem; }
    .gc-screenshots img { height: 90px; }
}

@media (max-width: 720px) {
    .gc-hero__inner { grid-template-columns: 1fr; padding-bottom: .6rem; }
    .gc-hero__right { order: 2; }
    .gc-hero__left { order: 1; }
    .gc-content { grid-template-columns: 1fr; }
    .gc-content__aside { order: 2; }
    .gc-screenshots { grid-template-columns: 1fr 1fr; }
    .gc-thumb { max-width: 280px; margin: 0 auto; }
}

/* Styles for ViewContent screenshots and embed */
.gc-screenshots {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.gc-embed-wrap {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.gc-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.gc-screenshot-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.gc-review-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background: #111827;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 120ms ease, transform 120ms ease;
}

.gc-review-link:hover {
  background: #0b1220;
  transform: translateY(-2px);
}

/* Small screens */
@media (max-width: 640px) {
  .gc-embed-wrap,
  .gc-screenshot-img {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}