/* StrataGem! Game Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: linear-gradient(180deg, #0a1628 0%, #1a3a5c 100%);
    min-height: 100vh;
}

/* Container for content sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header / Navigation */
header {
    background: rgba(10, 22, 40, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #2d4a6d;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a9eff;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #4a9eff;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: radial-gradient(ellipse at center top, rgba(74, 158, 255, 0.15) 0%, transparent 60%);
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: #4a9eff;
    text-shadow: 0 0 30px rgba(74, 158, 255, 0.5);
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4a9eff 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(74, 158, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #4a9eff;
    border: 2px solid #4a9eff;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(74, 158, 255, 0.1);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Gameplay Videos Section */
.gameplay-section {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.gameplay-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.gameplay-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.gameplay-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.gameplay-item img,
.gameplay-item video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #1a2a3a;
}

.gameplay-item .caption {
    padding: 1rem;
    color: #94a3b8;
    text-align: center;
    font-size: 0.95rem;
}

/* Feature Highlights */
.features-section {
    padding: 4rem 2rem;
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(74, 158, 255, 0.15);
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 158, 255, 0.4);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #4a9eff 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.feature-card h3 {
    color: #4a9eff;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Screenshots / Gallery */
.gallery-section {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.gallery-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(74, 158, 255, 0.2);
    transition: transform 0.2s;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* About / Description Section */
.about-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-section p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Download Section */
.download-section {
    padding: 4rem 2rem;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(74, 158, 255, 0.1) 0%, transparent 70%);
}

.download-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.download-section p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.download-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    min-width: 180px;
    text-decoration: none;
    transition: all 0.2s;
}

.download-card:hover {
    background: rgba(74, 158, 255, 0.1);
    border-color: #4a9eff;
    transform: translateY(-2px);
}

.download-card .platform {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.download-card .size {
    color: #64748b;
    font-size: 0.85rem;
}

/* Footer */
footer {
    background: rgba(10, 22, 40, 0.95);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(74, 158, 255, 0.2);
}

footer p {
    color: #64748b;
    font-size: 0.9rem;
}

footer a {
    color: #4a9eff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gameplay-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        margin: 0 1rem;
    }
}

/* Screenshots Carousel */
.screenshots-section {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.screenshots-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.carousel-btn {
    background: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
    border: 1px solid rgba(74, 158, 255, 0.3);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: rgba(74, 158, 255, 0.4);
    border-color: #4a9eff;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background: #4a9eff;
}

@media (max-width: 600px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Active Nav Link */
nav a.nav-active {
    color: #4a9eff;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 960px;
    height: 540px;
    max-width: 95vw;
    max-height: 95vh;
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.video-modal-close:hover {
    color: #4a9eff;
}

/* Make gameplay items clickable */
.gameplay-item {
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.gameplay-item:hover {
    transform: scale(1.02);
    border-color: rgba(74, 158, 255, 0.5);
}
