/* Rise of Merlin - Main Stylesheet */
/* Dark blue magical theme with floating dragons and owls */

/* CSS Variables */
:root {
    --primary-dark: #0a0e27;
    --secondary-dark: #121a3d;
    --accent-blue: #1e3a8a;
    --accent-purple: #7c3aed;
    --accent-gold: #fbbf24;
    --accent-cyan: #06b6d4;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(124, 58, 237, 0.3);
    --glow-purple: 0 0 20px rgba(124, 58, 237, 0.5);
    --glow-gold: 0 0 20px rgba(251, 191, 36, 0.5);
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, #0f172a 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Magical Background Particles */
.magic-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Floating Dragon Animation */
.floating-dragon {
    position: fixed;
    width: 150px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    animation: float-dragon 25s infinite ease-in-out;
}

.floating-dragon.dragon-1 {
    top: 10%;
    left: -150px;
    animation-delay: 0s;
}

.floating-dragon.dragon-2 {
    top: 60%;
    right: -150px;
    animation-delay: 12s;
    animation-direction: reverse;
}

@keyframes float-dragon {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(-5deg);
    }
    25% {
        transform: translateX(calc(100vw + 300px)) translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateX(calc(100vw + 300px)) translateY(30px) rotate(-5deg);
    }
    75% {
        transform: translateX(0) translateY(-20px) rotate(5deg);
    }
}

/* Floating Owl Animation */
.floating-owl {
    position: fixed;
    width: 80px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0.12;
    animation: float-owl 20s infinite ease-in-out;
}

.floating-owl.owl-1 {
    top: 30%;
    right: 5%;
    animation-delay: 0s;
}

.floating-owl.owl-2 {
    top: 70%;
    left: 5%;
    animation-delay: 10s;
}

@keyframes float-owl {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-40px) rotate(3deg);
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple));
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.3) 0%, var(--primary-dark) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(124, 58, 237, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Winning Ticker */
.winning-ticker {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 15px 30px;
    margin-bottom: 40px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.ticker-label {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

.ticker-amount {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: var(--text-primary);
    box-shadow: var(--glow-purple);
}

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

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

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

/* Pulsing Button Animation */
.btn-pulse {
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(124, 58, 237, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
.section {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Table of Contents */
.toc {
    background: rgba(18, 26, 61, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 50px;
    backdrop-filter: blur(10px);
}

.toc-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-list a:hover {
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent-gold);
}

.toc-list a::before {
    content: '✦';
    color: var(--accent-purple);
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(18, 26, 61, 0.6);
    border-radius: 15px;
    overflow: hidden;
}

.info-table th,
.info-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.info-table th {
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent-gold);
    font-weight: 600;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover {
    background: rgba(124, 58, 237, 0.1);
}

/* Symbol Table */
.symbol-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.symbol-table th,
.symbol-table td {
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.symbol-table th {
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent-gold);
    font-weight: 600;
}

.symbol-table td {
    background: rgba(18, 26, 61, 0.6);
}

.symbol-table img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.5));
}

.symbol-name {
    font-weight: 600;
    color: var(--accent-gold);
    margin-top: 10px;
}

.symbol-value {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Content Blocks */
.content-block {
    background: rgba(18, 26, 61, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.content-block h2 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-block h2::before {
    content: '◆';
    color: var(--accent-purple);
}

.content-block h3 {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    margin: 30px 0 15px;
}

.content-block p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-block ul,
.content-block ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-block li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.8;
}

.content-block strong {
    color: var(--accent-gold);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-purple);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Steps List */
.steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.steps-list li {
    position: relative;
    padding-left: 60px;
    margin-bottom: 25px;
    counter-increment: step;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
}

/* FAQ Section */
.faq-item {
    background: rgba(18, 26, 61, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(124, 58, 237, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-purple);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(30, 58, 138, 0.2));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin: 60px 0;
}

.cta-title {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.cta-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: rgba(10, 14, 39, 0.98);
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 30px;
    position: relative;
    z-index: 2;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--accent-gold);
}

/* Responsible Gaming Banner */
.responsible-gaming {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.age-badge {
    width: 50px;
    height: 50px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.responsible-gaming p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.responsible-gaming a {
    color: var(--accent-cyan);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
}

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

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 14, 39, 0.98);
        flex-direction: column;
        padding: 40px 20px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .content-block {
        padding: 25px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .floating-dragon,
    .floating-owl {
        display: none;
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--glow-purple);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

.scroll-top::before {
    content: '↑';
    color: var(--text-primary);
    font-size: 1.5rem;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .floating-dragon,
    .floating-owl,
    .magic-particles,
    .scroll-top {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}
