/* Variables */
:root {
    --primary-color: #8b5cf6;
    --secondary-color: #a78bfa;
    --ronin-color: #dc2626;
    --ronin-dark: #991b1b;
    --sceau-color: #7c3aed;
    --sceau-dark: #5b21b6;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --bg-dark: #0f0f0f;
    --bg-darker: #0a0a0a;
    --bg-card: #1a1a1a;
    --border-color: #2a2a2a;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: #e5e7eb;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
}

.brand-icon {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #9ca3af;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.3;
    object-fit: cover;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.15), transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #9ca3af;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Buttons */
.btn-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
}

.btn-ronin {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
}

.btn-ronin:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.4);
}

.btn-sceau {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: white;
}

.btn-sceau:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.4);
}

.btn-icon {
    font-size: 1.25rem;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--bg-darker);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: #fff;
}

/* Game Showcase */
.games-section {
    background: var(--bg-dark);
}

.game-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.game-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(139, 92, 246, 0.05));
    pointer-events: none;
}

.ronin-theme::before {
    background: linear-gradient(135deg, transparent, rgba(220, 38, 38, 0.05));
}

.sceau-theme::before {
    background: linear-gradient(135deg, transparent, rgba(124, 58, 237, 0.05));
}

.game-media {
    position: relative;
}

.game-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

/* Content Card */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}

.content-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
}

.placeholder-content {
    text-align: center;
}

.placeholder-content p {
    margin-top: 1rem;
    color: #6b7280;
    font-weight: 600;
}

.game-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #a78bfa;
    font-weight: 500;
}

.ronin-theme .tag {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: #fca5a5;
}

.sceau-theme .tag {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
    color: #c4b5fd;
}

.game-info {
    position: relative;
}

.game-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.game-status-badge.coming-soon {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.game-status-badge.playable {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.game-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.game-tagline {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.game-description {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.game-features {
    margin-bottom: 2rem;
}

.game-features h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2rem;
}

.feature strong {
    color: #fff;
    display: block;
    margin-bottom: 0.25rem;
}

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

.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.game-actions {
    display: flex;
    gap: 1rem;
}

.btn-game {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary-ronin {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
}

.btn-primary-ronin:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.btn-primary-sceau {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: white;
}

.btn-primary-sceau:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.btn-play {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-wishlist {
    background: rgba(255, 255, 255, 0.05);
    color: #6b7280;
    border: 1px solid var(--border-color);
    cursor: not-allowed;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    padding: 1.5rem;
    text-align: center;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    font-weight: 700;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td {
    padding: 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    color: #d1d5db;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #fff;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.1), transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(236, 72, 153, 0.1), transparent 50%);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

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

.cta-section p {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: #6b7280;
}

/* Game Specific Styles */
.ronin-hero {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.sceau-hero {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.game-hero {
    position: relative;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .game-showcase {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .game-stats {
        grid-template-columns: 1fr;
    }

    .game-actions {
        flex-direction: column;
    }

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

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

    /* Character galleries responsive */
    .section-dark .container > div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .section .container > div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}
