/* Frontend - Modern Futuristic Theme */
:root {
    --primary: #00f0ff;
    --primary-dark: #00b8c9;
    --accent: #ff006e;
    --accent-dark: #d90059;
    --dark: #0a0e27;
    --darker: #060918;
    --card-bg: #131842;
    --border: #1f2553;
    --text: #e0e7ff;
    --text-dim: #9ca3af;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-glow: rgba(0, 240, 255, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.main-nav {
    background: rgba(19, 24, 66, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 80%;
}

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

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Desktop Dropdown Menu */
.nav-links .has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(19, 24, 66, 0.98);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    margin-top: 5px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-menu a::before {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--border);
    color: var(--primary);
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 100px 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, var(--primary) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, var(--accent) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, #667eea 0%, transparent 40%);
    opacity: 0.15;
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.1); }
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: slideDown 1s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-dim);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    animation: slideUp 1s ease 0.3s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease 0.6s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--darker);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--darker);
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Featured Section */
.featured-section {
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.featured-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.featured-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 16px;
}

.featured-item:hover::before {
    opacity: 0.1;
}

.featured-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px var(--shadow-glow);
}

.featured-content {
    width: 100%;
    height: 300px;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-content img,
.featured-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.game-icon {
    font-size: 80px;
}

.play-button {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--darker);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-glow);
}

.featured-info {
    padding: 24px;
}

.featured-info h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 10px;
}

.featured-info p {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 15px;
}

.asset-type-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--darker);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.gallery-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 15px 40px var(--shadow-glow);
    z-index: 10;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-item img,
.asset-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: var(--darker);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(6, 9, 24, 0.95) 0%, transparent 100%);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 5px;
}

.gallery-overlay p {
    color: var(--text-dim);
    font-size: 13px;
}

.play-text {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--darker);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.section-more {
    text-align: center;
    margin-top: 40px;
}

/* Gallery Page */
.gallery-page {
    min-height: 80vh;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: clamp(32px, 6vw, 56px);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.subtitle {
    color: var(--text-dim);
    font-size: 18px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--darker);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-glow);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
}

.page-info {
    color: var(--text-dim);
}

/* Page Content */
.page-content {
    min-height: 60vh;
    padding: 60px 20px;
}

.page-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
}

.child-pages {
    margin-top: 60px;
}

.child-pages h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 30px;
}

.child-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.child-page-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.child-page-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px var(--shadow-glow);
}

.child-page-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.child-page-card p {
    color: var(--text-dim);
    font-size: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-dim);
}

.empty-state h2 {
    color: var(--primary);
    font-size: 36px;
    margin-bottom: 15px;
}

/* Footer */
.main-footer {
    background: var(--darker);
    border-top: 2px solid var(--border);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-dim);
}

.footer-tagline {
    margin-top: 10px;
    font-style: italic;
    color: var(--text-dim);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 68px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 68px);
        background: rgba(19, 24, 66, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        border-left: 2px solid var(--primary);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a {
        display: block;
        padding: 15px;
        font-size: 16px;
        border-radius: 0;
    }

    .nav-links a::before {
        display: none;
    }

    .nav-links a:hover {
        background: var(--border);
        padding-left: 20px;
    }

    /* Mobile Dropdown Styles */
    .nav-links .dropdown-menu {
        position: static;
        display: none;
        background: var(--darker);
        border: none;
        border-left: 3px solid var(--primary);
        border-radius: 0;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .nav-links .has-dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-links .dropdown-menu li {
        border-bottom: 1px solid var(--border);
    }

    .nav-links .dropdown-menu a {
        padding-left: 30px;
        font-size: 14px;
    }

    .nav-links .dropdown-menu a:hover {
        padding-left: 35px;
    }

    .nav-links .menu-toggle,
    .nav-links .has-submenu {
        position: relative;
    }

    .nav-links .menu-toggle .dropdown-arrow,
    .nav-links .has-submenu .dropdown-arrow {
        position: absolute;
        right: 15px;
        transition: transform 0.3s ease;
    }

    .nav-links .has-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .hero {
        min-height: 60vh;
        padding: 60px 20px;
    }

    section {
        padding: 60px 20px;
    }

    .featured-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 20px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Page Body Content Styling */
.page-body {
    margin-bottom: 40px;
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
    color: var(--primary);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.page-body h1 { font-size: 2em; }
.page-body h2 { font-size: 1.75em; }
.page-body h3 { font-size: 1.5em; }
.page-body h4 { font-size: 1.25em; }

.page-body p {
    margin-bottom: 1em;
}

.page-body ul,
.page-body ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.page-body li {
    margin-bottom: 0.5em;
}

.page-body a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-body a:hover {
    color: var(--accent);
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.page-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--text-dim);
}

.page-body code {
    background: var(--card-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.page-body pre {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1em;
    overflow-x: auto;
    margin: 1em 0;
}

.page-body pre code {
    background: none;
    padding: 0;
}

.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.page-body table th,
.page-body table td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.page-body table th {
    background: var(--card-bg);
    color: var(--primary);
    font-weight: 600;
}

.page-body table tr:hover {
    background: rgba(0, 240, 255, 0.05);
}

.page-body hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 2em 0;
}

/* Responsive Video Embeds (YouTube, Vimeo, etc.) */
.page-body iframe {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5em 0;
    border: 2px solid var(--border);
}

.page-body .ql-video {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5em 0;
    border: 2px solid var(--border);
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}
