/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #171a21;
    --secondary-color: #2a475e;
    --accent-color: #00adee;
    --text-color: #c6d4df;
    --text-highlight: #fff;
    --background-light: #316282;
    --background-dark: #1b2838;
    --card-bg: #2a475e;
    --success-color: #4caf50;
    --danger-color: #f44336;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-highlight);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-highlight);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.site-header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--text-highlight);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--text-highlight);
}

.primary-btn:hover {
    background-color: #008fbd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, var(--primary-color), var(--background-dark));
    padding: 3rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-info {
    flex: 1;
    padding-right: 2rem;
}

.game-tagline {
    font-size: 1.2rem;
    margin: 1rem 0;
    font-style: italic;
}

.game-meta {
    margin-bottom: 1.5rem;
}

.genre, .release-date {
    display: inline-block;
    background-color: var(--background-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.hero-image {
    flex: 1;
}

.hero-img {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Section Styles */
section {
    padding: 3rem 0;
}

/* Game Description */
.game-description {
    background-color: var(--background-dark);
}

.description-content {
    max-width: 800px;
}

/* Screenshots */
.screenshots {
    background-color: var(--primary-color);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.screenshot-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features Section */
.features {
    background-color: var(--background-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Reviews Section */
.reviews {
    background-color: var(--primary-color);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: bold;
    color: var(--text-highlight);
}

.review-rating {
    color: #ffd700;
}

/* Guides Section */
.guides-section {
    background-color: var(--background-dark);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guide-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.guide-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    padding: 3rem 0 1.5rem;
    border-top: 2px solid var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo p {
    color: var(--text-color);
    font-size: 0.9rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-info {
    margin-top: 2rem;
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    
    .game-info {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .game-meta {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .reviews-container,
    .features-grid,
    .guides-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

/* Inner Page Styles */
.inner-page-header {
    background: linear-gradient(to bottom, var(--primary-color), var(--background-dark));
    padding: 2rem 0;
    text-align: center;
}

.content-section {
    background-color: var(--background-dark);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Endings Page */
.endings-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ending-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ending-header {
    background-color: var(--background-light);
    padding: 1rem;
}

.ending-title {
    margin-bottom: 0;
}

.ending-content {
    padding: 1rem;
}

.ending-requirements {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.8rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* Visitors Page */
.visitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.visitor-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.visitor-image {
    height: 200px;
    overflow: hidden;
}

.visitor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visitor-content {
    padding: 1rem;
}

.visitor-type {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.human {
    background-color: var(--success-color);
    color: white;
}

.visitor {
    background-color: var(--danger-color);
    color: white;
}

.visitor-characteristics {
    margin-top: 1rem;
}

.characteristic-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.characteristic-icon {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

/* Game Guide Page */
.mechanic-section {
    margin-bottom: 2rem;
}

.mechanic-section h3 {
    border-left: 4px solid var(--accent-color);
    padding-left: 0.8rem;
}

/* Download Page */
.download-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.download-option {
    flex: 1;
    min-width: 250px;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Loading animation for images */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background-color: var(--primary-color);
    z-index: 1010;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
}

.mobile-menu.show {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 1rem;
}

.mobile-menu a {
    color: var(--text-color);
    font-size: 1.2rem;
}

.close-menu-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1005;
    display: none;
}

.overlay.show {
    display: block;
}

.game-video {
    background-color: var(--background-dark);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px; /* Adjust max-width as needed */
    margin: 0 auto; /* Center the container */
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
