/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-hover: #8b5cf6;
    --secondary-color: #f59e0b;
    --secondary-hover: #fbbf24;
    --background-dark: #0f0f23;
    --background-light: #1a1a3a;
    --background-card: #2d2d5a;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-gold: #f59e0b;
    --text-white: #ffffff;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --text-gold: #fbbf24;
    --shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
    --shadow-gold: 0 8px 32px rgba(245, 158, 11, 0.2);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --glow-gold: 0 0 20px rgba(245, 158, 11, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 50%, #2d2d5a 100%);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background: var(--gradient-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, rgba(26, 26, 58, 0.95) 0%, rgba(45, 45, 90, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.burger-menu {
    display: flex;
    align-items: center;
}

.burger-icon {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin-right: 1rem;
    padding: 8px;
}

.burger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    margin: 2px 0;
    transition: var(--transition);
    border-radius: 2px;
    box-shadow: var(--glow-purple);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

nav a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

nav a:hover::after, nav a.active::after {
    width: 80%;
    box-shadow: var(--glow-purple);
}

.auth-buttons a {
    background: transparent;
    border: 2px solid var(--accent-blue);
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.auth-buttons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.auth-buttons a:hover::before {
    left: 0;
}

.auth-buttons a:hover {
    border-color: var(--primary-color);
    box-shadow: var(--glow-purple);
}

.auth-buttons a.register {
    background: var(--gradient-secondary);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.auth-buttons a.register:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: var(--secondary-hover);
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
}

/* Hero Section with responsive background image */
.hero {
    background: linear-gradient(rgba(15, 15, 35, 0.7), rgba(26, 26, 58, 0.7)), url('bonusbanner1.webp') center/cover no-repeat;
    color: var(--text-white);
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 2rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(245, 158, 11, 0.1) 100%);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--text-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Section */
.content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(45, 45, 90, 0.8) 0%, rgba(26, 26, 58, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

h2 {
    color: var(--text-white);
    margin: 1.5rem 0 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    color: var(--text-gold);
    margin: 1.2rem 0 0.8rem;
    font-size: 1.4rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-light);
}

li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

li strong {
    color: var(--accent-gold);
}

/* Tables */
table {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.2rem 0;
    background: linear-gradient(135deg, rgba(45, 45, 90, 0.9) 0%, rgba(26, 26, 58, 0.9) 100%);
    border-radius: 12px;
    overflow: hidden;
    table-layout: fixed;
    box-shadow: var(--shadow);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

th, td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-white);
    word-break: break-word;
    font-size: 1rem;
}

th {
    background: var(--gradient-primary);
    color: var(--text-white);
    font-weight: 700;
    border-bottom: 2px solid var(--accent-gold);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

tr:last-child td {
    border-bottom: none;
}

tr {
    transition: background 0.2s;
}

tr:hover td {
    background: rgba(99, 102, 241, 0.1);
    box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.1);
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background: var(--gradient-secondary);
    color: #fff !important;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    margin: 1rem 0;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: var(--glow-gold);
}

.cta-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(45, 45, 90, 0.8) 0%, rgba(26, 26, 58, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 50%, rgba(245, 158, 11, 0.05) 100%);
    z-index: 1;
}

.cta-section > * {
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(26, 26, 58, 0.95) 0%, rgba(45, 45, 90, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Close Menu Button */
.close-menu {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.close-menu span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transition: var(--transition);
    box-shadow: var(--glow-purple);
}

.close-menu span:first-child {
    transform: rotate(45deg);
}

.close-menu span:last-child {
    transform: rotate(-45deg);
}

.close-menu:hover span {
    background: var(--gradient-secondary);
    box-shadow: var(--glow-gold);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .burger-icon {
        display: flex;
    }

    .close-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(26, 26, 58, 0.98) 0%, rgba(45, 45, 90, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 4rem 0 2rem;
        transition: var(--transition);
        z-index: 100;
        overflow-y: auto;
        border-right: 1px solid rgba(139, 92, 246, 0.2);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
        font-size: 1.1rem;
    }

    .auth-buttons {
        margin-left: auto;
    }

    .burger-icon.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger-icon.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-icon.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Content adjustments for mobile */
    .content {
        padding: 1.2rem;
        margin: 1rem;
        border-radius: 12px;
    }

    .hero {
        background: linear-gradient(rgba(15, 15, 35, 0.7), rgba(26, 26, 58, 0.7)), url('bonusbannermob1.webp') center/cover no-repeat;
        min-height: 200px;
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    table {
        font-size: 0.98rem;
        margin: 1rem 0 1.5rem 0;
        border-radius: 0.5rem;
    }

    th, td {
        padding: 0.6rem 0.3rem;
    }

    .cta-button {
        width: 100%;
        padding: 1.2rem;
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .auth-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }

    .auth-buttons a {
        width: auto;
        min-width: 100px;
        text-align: center;
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .content {
        padding: 1rem;
        margin: 0.8rem;
    }

    .hero {
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p, li {
        font-size: 0.95rem;
    }

    /* Removed a, button styles for inline links and buttons */
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-dark: #0f0f23;
        --background-light: #1a1a3a;
        --background-card: #2d2d5a;
    }
}

/* Content link styles */
.content a, .content a:visited {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: inherit;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom-color 0.2s;
    word-break: break-word;
}

.content a:hover, .content a:focus {
    color: var(--secondary-hover);
    border-bottom: 2px solid var(--secondary-hover);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* Table cell links */
td a, th a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: inherit;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom-color 0.2s;
}

td a:hover, th a:hover {
    color: var(--secondary-hover);
    border-bottom: 2px solid var(--secondary-hover);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
} 