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

html, body {
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    background-color: #0a0a0a;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Hero Video Header */
.hero-header {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Social Media Panel */
.social-panel {
    position: fixed;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1100;
}

.social-panel a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    color: #fff;
}

.social-panel a:hover {
    background-color: #ff6600;
}

.social-panel svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.main-nav .logo {
    display: flex;
    align-items: center;
}

.main-nav .logo img {
    height: 40px;
    max-width: 100%;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
    display: block;
    padding: 10px;
}

.main-nav ul li a:hover {
    color: #ff6600;
}

.dropdown {
    position: relative;
}

.dropdown-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.dropdown-wrapper > a::after {
    content: ' ▼';
    font-size: 0.6em;
    margin-left: 5px;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: auto;
    background-color: #222;
    min-width: 220px;
    z-index: 999;
    display: none;
    flex-direction: column;
    border: 1px solid #333;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown-content.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-content li {
    padding: 0;
}

.dropdown-content li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    transition: background 0.2s;
    white-space: nowrap;
}

.dropdown-content li a:hover {
    background-color: #333;
}

/* Hero Content */
.hero-content {
    text-align: center;
    margin-top: auto;
    margin-bottom: 120px;
}

.hero-content img {
    max-width: 90%;
    height: auto;
    max-height: 150px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #ff6600;
    color: white;
    padding: 14px 28px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background-color: #e25500;
}

/* Section Styles */
.section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-section {
    background-color: #111;
}

.dark-section {
    background-color: #222;
}

.fullwidth-highlight {
    background-color: #111;
    padding: 80px 5%;
}

/* Game Canvas */
#gameCanvas {
    width: 100%;
    padding: 0;
}

/* Game Detail */
.game-tile-expanded {
    padding: 40px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.game-tile-expanded h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.game-tile-expanded p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Platform Buttons */
.platform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.platform-button {
    background-color: #222;
    color: #ff6600;
    padding: 10px 16px;
    border-radius: 5px;
    font-weight: 500;
    border: 1px solid #333;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 0.95rem;
}

.platform-button:hover {
    background-color: #333;
}

/* Info Grid */
.game-info-grid {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.game-info-grid .youtube-embed {
    flex: 1;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.game-info-grid .youtube-embed iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}

.game-info-grid .features {
    flex: 1;
    list-style: disc;
    padding-left: 20px;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.gallery img {
    width: calc(33.333% - 10px);
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
}

/* Lightbox Overlay */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

#lightbox-img-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
}

.lightbox-nav span {
    font-size: 48px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.lightbox-nav span:hover {
    color: #ff6600;
}

/* Footer */
footer {
    background-color: #111;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ff6600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e25500;
}

/* Responsive */
@media (max-width: 900px) {
    .game-info-grid {
        flex-direction: column;
    }

    .game-info-grid .youtube-embed,
    .game-info-grid .features {
        width: 100%;
    }

    .platform-buttons {
        flex-direction: column;
    }

    .gallery img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .main-nav .logo img {
        height: 28px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 15px;
    }

    .main-nav ul li a {
        padding: 8px 0;
    }

    .hero-content img {
        max-height: 100px;
    }

    .game-tile-expanded h3 {
        font-size: 2rem;
    }
}
