/*
    REVIEWS & GUIDES PAGE STYLES
    This file adds styles on top of the base style.css
*/

/* HERO SECTION */
.hero-reviews {
    height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-reviews::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 12, 29, 0.5);
    z-index: -1;
}

.nav-links a.active {
    color: var(--primary-color);
}
.nav-links a.active::after {
    width: 100%;
}

/* FEATURED REVIEW SECTION */
.featured-review-section { background-color: var(--dark-grey); }
.featured-review { display: flex;  background: var(--background-color); border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.featured-image { flex: 1; min-height: 400px; background-size: cover; background-position: center; transition: transform 0.5s ease;background-image: url('/image/Hollow\ Knight.jpg');}
.featured-review:hover .featured-image { transform: scale(1.05); }
.featured-content { flex: 1.2; padding: 3rem; }
.featured-content h3 { color: var(--primary-color); font-weight: normal; }
.featured-content h2 { font-family: var(--font-primary); font-size: 2.5rem; margin: 0.5rem 0 1rem 0; color: #fff; }
.rating { margin-bottom: 1.5rem; color: #f9ca24; font-size: 1.2rem; }
.rating span { color: var(--text-color); margin-left: 0.5rem; font-size: 1rem; }
.cta-button-small { display: inline-block; margin-top: 1.5Landrem; background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); padding: 10px 20px; text-decoration: none; border-radius: 50px; transition: all 0.3s ease; }
.cta-button-small:hover { background: var(--primary-color); color: #fff; }
.wom1 { background-image: url('image/wom1.jpg'); }
.lily { background-image: url('image/lily.jpg'); }
.w0 { width: 0; }
.w10 { width: 10%; }

/* GAME FILTER SECTION */
#filter-buttons { text-align: center; margin-bottom: 3rem; }
.filter-btn { background: var(--dark-grey); color: var(--text-color); border: 2px solid var(--secondary-color); padding: 0.8rem 1.5rem; margin: 0 0.5rem; border-radius: 50px; cursor: pointer; transition: all .3s ease; }
.filter-btn:hover, .filter-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.game-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform 0.3s ease, opacity 0.3s ease; transform: scale(1); opacity: 1; }
.gallery-item.hide { transform: scale(0); opacity: 0; width: 0; height: 0; padding: 0; margin: 0; }
.gallery-item img { width: 100%; height: 400px; object-fit: cover; display: block; }
.gallery-item span { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.7); color: #fff; padding: 0.8rem; text-align: center; transform: translateY(100%); transition: transform 0.3s ease; }
.gallery-item:hover span { transform: translateY(0); }

/* TOP GUIDES CAROUSEL */
.top-guides-section { background: var(--dark-grey); }
.guide-carousel { position: relative; height: 350px; perspective: 1000px; transform-style: preserve-3d; }
.guide-card { position: absolute; width: 250px; height: 350px; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; color: #fff; transition: transform 0.5s ease, opacity 0.5s ease, z-index 0.5s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.guide-card::after { content:''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%); }
.guide-card h3 { position: absolute; bottom: 20px; left: 20px; font-family: var(--font-primary); z-index: 2; }
.carousel-nav-guides { text-align: center; margin-top: 2rem; }
.carousel-nav-guides button { background: none; border: 2px solid var(--primary-color); color: var(--primary-color); font-size: 1.5rem; cursor: pointer; padding: 0.5rem 1rem; margin: 0 0.5rem; border-radius: 5px; transition: all .3s ease; }
.carousel-nav-guides button:hover { background: var(--primary-color); color: #fff; }

.guide-carousel {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.guide-card {
  position: absolute;
  width: 200px;
  height: 260px;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: transform 0.6s ease, opacity 0.6s ease;
  transform-style: preserve-3d;
}

.carousel-nav-guides {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.carousel-nav-guides button {
  background: var(--primary-color, #667eea);
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.3s ease;
}

.carousel-nav-guides button:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* GAME COMPARISON TOOL */
.comparison-tool { display: grid; grid-template-columns: 1fr 1.5fr 1.5fr 1fr; gap: 1rem; align-items: center; background: var(--dark-grey); padding: 2rem; border-radius: 15px; }
.game-selector { text-align: center; }
.game-selector h3 { margin-bottom: 1rem; }
.game-selector select { width: 100%; padding: 0.8rem; background: var(--background-color); color: var(--text-color); border: 1px solid var(--secondary-color); border-radius: 5px; font-size: 1rem; }
.comparison-chart { padding: 0 1rem; }
.comparison-chart h3 { text-align: center; margin-bottom: 1.5rem; font-size: 1rem; color: #aaa; }
.chart-row { display: flex; align-items: center; margin-bottom: 1rem; }
.chart-row span { width: 120px; }
.bar-container { flex: 1; height: 20px; background: var(--background-color); border-radius: 10px; overflow: hidden; }
.bar { height: 100%; width: 0; background: var(--primary-color); border-radius: 10px; transition: width 1s ease-out; }

/* GAME RELEASE TIMELINE */
.timeline-section { padding-bottom: 10rem; overflow-x: hidden; }
.timeline-container { width: 100%; overflow-x: auto; cursor: grab; padding: 2rem 0; }
.timeline-container:active { cursor: grabbing; }
.timeline { position: relative; display: flex; padding: 2rem 2%; max-width: 100%; }
.timeline::before { content: ''; position: absolute; top: 50%; transform: translateY(-50%); left: 0; width: 100%; height: 4px; background: var(--secondary-color); }
.timeline-event { position: relative; padding: 0 30px; text-align: center; flex: 1; }
.event-point { width: 20px; height: 20px; border-radius: 50%; background: var(--primary-color); border: 3px solid var(--background-color); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); cursor: pointer; transition: transform 0.3s ease; }
.timeline-event:hover .event-point { transform: translate(-50%, -50%) scale(1.3); }
.event-label { position: absolute; top: calc(50% + 45px); left: 50%; transform: translateX(-50%); }
.timeline-event::after { content: attr(data-year); position: absolute; top: calc(50% - 45px); left: 50%; transform: translateX(-50%); background: var(--dark-grey); padding: 5px 10px; border-radius: 5px; }
#timeline-info-box { text-align: center; margin-top: 2rem; color: var(--primary-color); font-size: 1.2rem; min-height: 25px; }

/* VIDEO GUIDES */
.video-guides-section { background: var(--dark-grey); }
.video-player-layout { display: flex; gap: 2rem; }
.main-video { flex: 3; }
.main-video iframe { width: 100%; height: 100%; min-height: 450px; border-radius: 10px; }
.video-playlist { flex: 1; display: flex; flex-direction: column; gap: 1rem; max-height: 450px; overflow-y: auto; }
.playlist-item { display: flex; align-items: center; gap: 1rem; background: var(--background-color); padding: 0.8rem; border-radius: 5px; cursor: pointer; border-left: 3px solid transparent; transition: all 0.3s ease; }
.playlist-item:hover, .playlist-item.active { border-left-color: var(--primary-color); background: var(--secondary-color); }
.playlist-item img { width: 100px; height: 60px; object-fit: cover; border-radius: 5px; }

/* REVIEWERS SECTION */
.reviewers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.reviewer-card { perspective: 1000px; height: 350px; cursor: pointer; }
.reviewer-front, .reviewer-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; transition: transform 0.6s ease; border-radius: 10px; }
.reviewer-front { background-size: cover; background-position: center; color: #fff; display: flex; align-items: flex-end; padding: 1.5rem; }
.reviewer-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); border-radius: 10px; }
.reviewer-front h3 { z-index: 1; font-family: var(--font-primary); }
.reviewer-back { background: var(--dark-grey); transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 1.5rem; }
.reviewer-card:hover .reviewer-front { transform: rotateY(180deg); }
.reviewer-card:hover .reviewer-back { transform: rotateY(0deg); }
.social-links-small { margin-top: 1rem; }
.social-links-small a { color: var(--primary-color); font-size: 1.2rem; margin: 0 0.5rem; }

/* QUICK TIPS */
.quick-tips-section { background-color: var(--primary-color); padding: 1rem 0; overflow: hidden; }
.ticker-wrap { width: 100%; }
.ticker { display: inline-block; white-space: nowrap; animation: ticker-scroll 30s linear infinite; color: #fff; font-weight: bold; }
.ticker span { margin-right: 5rem; }
.ticker i { margin-right: 0.5rem; }
@keyframes ticker-scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* RATING BREAKDOWN */
.rating-breakdown-section { background: var(--dark-grey); }
.rating-chart { max-width: 700px; margin: auto; }
.rating-row { display: flex; align-items: center; margin-bottom: 1rem; gap: 1rem; }
.rating-label { color: #f9ca24; font-weight: bold; width: 50px; }
.rating-bar-bg { flex: 1; background: var(--background-color); height: 25px; border-radius: 5px; }
.rating-bar { height: 100%; background: #f9ca24; border-radius: 5px; transition: width 1.5s ease-out; }
.rating-percent { font-weight: bold; width: 50px; text-align: right; }

/* GALLERY SECTION */
.image-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.gallery-img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-img:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.lightbox { display: none; position: fixed; z-index: 1001; padding-top: 100px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.lightbox-content { margin: auto; display: block; max-width: 80%; max-height: 80%; }
.lightbox-close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .hero-reviews {
        height: 50vh;
    }

    .featured-review {
        flex-direction: column;
    }

    .featured-image {
        min-height: 300px;
    }

    .featured-content {
        padding: 2rem;
    }

    .game-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .gallery-item img {
        height: 250px;
    }

    .comparison-tool {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #game1-selector {
        grid-column: 1;
        grid-row: 1;
    }

    #game2-selector {
        grid-column: 1;
        grid-row: 2;
    }

    .comparison-chart:nth-of-type(1) {
        grid-column: 1;
        grid-row: 3;
    }

    .comparison-chart:nth-of-type(2) {
        grid-column: 1;
        grid-row: 4;
    }

    .chart-row span {
        width: 80px;
    }

    .timeline-container {
        max-width: 100%;
        overflow-x: auto;
        padding: 1rem 0;
    }

    .timeline {
        min-width: 0;
        flex-wrap: nowrap;
        padding: 1rem 2%;
    }
    

    .timeline-event {
        padding: 0 15px;
        flex: 0 0 auto;
    }

    .event-label {
        font-size: 0.9rem;
        top: calc(50% + 30px);
    }

    .timeline-event::after {
        font-size: 0.8rem;
        top: calc(50% - 35px);
    }

    .video-player-layout {
        flex-direction: column;
    }

    .main-video iframe {
        min-height: 300px;
    }

    .video-playlist {
        max-height: 300px;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .gallery-img {
        height: 150px;
    }

    .lightbox-content {
        max-width: 90%;
    }
    .video-guides-section h2 {
        text-align: center;
        font-size: 1rem;
    }
}