/* style.css - Fleep Casino с фирменными цветами */
:root {
    /* Основные цвета из ТЗ */
    --primary-dark: #141415;       /* Самый темный фон */
    --secondary-dark: #1D1E20;     /* Основной темный */
    --accent-red: #F3372B;         /* Основной акцентный красный */
    
    /* Дополнительные цвета на основе основных */
    --card-bg: #1D1E20;
    --accent-gold: #FFD166;        /* Золотой для призов */
    --accent-silver: #C0C0C0;
    --accent-bronze: #CD7F32;
    --accent-teal: #06D6A0;        /* Зеленый для успешных действий */
    --accent-blue: #118AB2;        /* Синий для информации */
    --accent-purple: #7209B7;      /* Фиолетовый для особых элементов */
    
    /* Системные цвета */
    --success: #06D6A0;
    --danger: #EF476F;
    --warning: #FFD166;
    --info: #118AB2;
    
    /* Текст */
    --text-light: #FFFFFF;
    --text-gray: #8B8D90;
    --text-dark: #1A1A1A;
    --text-red: #F3372B;
    
    /* Эффекты */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-red: 0 0 15px rgba(243, 55, 43, 0.4);
    --glow-red: 0 0 20px rgba(243, 55, 43, 0.6);
    --glow-gold: 0 0 20px rgba(255, 209, 102, 0.6);
}

/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== ТИПОГРАФИЯ ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { 
    font-size: 3.5rem; 
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(243, 55, 43, 0.5);
}

h1 .highlight {
    color: var(--accent-red);
    text-shadow: 0 0 15px rgba(243, 55, 43, 0.7);
}

h2 { 
    font-size: 2.8rem; 
    color: var(--text-light);
}

h3 { 
    font-size: 2.2rem; 
    color: var(--accent-red);
}

h4 { 
    font-size: 1.8rem; 
    color: var(--text-light);
}

h5 { 
    font-size: 1.4rem; 
    color: var(--text-light);
}

h6 { 
    font-size: 1.1rem; 
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(243, 55, 43, 0.5);
}

.text-gradient {
    background: linear-gradient(45deg, var(--accent-red), #FF6B6B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== НАВИГАЦИЯ FLEEP CASINO ===== */
.navbar-casino {
    background: rgba(20, 20, 21, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(243, 55, 43, 0.3);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--accent-red);
}

.navbar-brand i {
    font-size: 2.2rem;
    color: var(--accent-red);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-red), #FF6B6B);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-red);
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover i {
    transform: rotate(15deg);
}

.nav-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.nav-link.active {
    background: linear-gradient(45deg, var(--accent-red), #FF6B6B);
    color: var(--text-light);
    box-shadow: var(--shadow-red);
    transform: translateY(-2px);
}

.nav-link.active i {
    color: var(--text-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* Выпадающее меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(29, 30, 32, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(243, 55, 43, 0.3);
    border-radius: 10px;
    padding: 15px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.dropdown-item:hover {
    background: linear-gradient(45deg, var(--accent-red), #FF6B6B);
    color: var(--text-light);
    transform: translateX(5px);
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* ===== КАРТОЧКИ ===== */
.card-casino {
    background: var(--card-bg);
    border: 1px solid rgba(243, 55, 43, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-casino::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(243, 55, 43, 0.1), transparent);
    transition: left 0.6s ease;
}

.card-casino:hover::before {
    left: 100%;
}

.card-casino:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-red);
    border-color: var(--accent-red);
}

/* Статистика карточка */
.stats-card {
    text-align: center;
    padding: 40px 30px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(243, 55, 43, 0.5);
}

.stat-label {
    color: var(--text-gray);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Карточка шага */
.step-card {
    text-align: center;
    padding: 40px 30px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--accent-red), #FF6B6B);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 25px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-red);
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: rotate(360deg) scale(1.1);
    box-shadow: var(--glow-red);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
}

.step-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Карточка приза */
.prize-card {
    text-align: center;
    padding: 50px 30px;
    position: relative;
    overflow: visible;
}

.prize-card.first {
    border: 3px solid var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 209, 102, 0.4);
}

.prize-card.second {
    border: 3px solid var(--accent-silver);
}

.prize-card.third {
    border: 3px solid var(--accent-bronze);
}

.prize-medal {
    font-size: 5rem;
    margin-bottom: 25px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.prize-card.first .prize-medal {
    color: var(--accent-gold);
}

.prize-card.second .prize-medal {
    color: var(--accent-silver);
}

.prize-card.third .prize-medal {
    color: var(--accent-bronze);
}

.prize-rank {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-gray);
    margin-bottom: 15px;
    font-weight: 600;
}

.prize-amount {
    font-size: 3.2rem;
    font-weight: 900;
    margin: 20px 0;
    color: var(--accent-gold);
}

.prize-card.second .prize-amount {
    color: var(--accent-silver);
}

.prize-card.third .prize-amount {
    color: var(--accent-bronze);
}

.prize-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-top: 15px;
}

/* ===== КНОПКИ ===== */
.btn-casino {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-casino::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: left 0.6s ease;
}

.btn-casino:hover::before {
    left: 100%;
}

.btn-casino:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-red), #FF6B6B);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(243, 55, 43, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(243, 55, 43, 0.6);
}

.btn-success {
    background: linear-gradient(45deg, var(--accent-teal), #06D6A0);
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(6, 214, 160, 0.4);
}

.btn-telegram {
    background: linear-gradient(45deg, #0088cc, #00aced);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-gold {
    background: linear-gradient(45deg, var(--accent-gold), #FF9500);
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(255, 209, 102, 0.4);
}

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

.btn-outline:hover {
    background: linear-gradient(45deg, var(--accent-red), #FF6B6B);
    color: var(--text-light);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 20px 45px;
    font-size: 1.3rem;
    border-radius: 20px;
}

/* ===== СЕКЦИИ ===== */
.section-casino {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--accent-red);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Герой секция */
.hero-section {
    padding: 200px 0 150px;
    background: linear-gradient(135deg, rgba(20, 20, 21, 0.9) 0%, rgba(29, 30, 32, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.countdown-container {
    display: inline-block;
    margin: 40px 0;
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-red);
    background: rgba(0, 0, 0, 0.4);
    padding: 25px 50px;
    border-radius: 20px;
    border: 3px solid rgba(243, 55, 43, 0.3);
    text-shadow: 0 0 10px rgba(243, 55, 43, 0.5);
    box-shadow: 0 0 15px rgba(243, 55, 43, 0.4);
    letter-spacing: 2px;
}

.countdown-label {
    color: var(--text-gray);
    margin-top: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Как участвовать секция */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Призы секция */
.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* ===== ПРОМО БЛОКИ ===== */
.promo-section {
    background: rgba(29, 30, 32, 0.7);
    border-radius: 25px;
    padding: 40px;
    margin: 60px 0;
    border: 2px solid rgba(243, 55, 43, 0.2);
}

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

.promo-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.promo-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-red);
}

.promo-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    color: var(--accent-red);
}

.promo-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
}

.promo-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.promo-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(243, 55, 43, 0.1);
    color: var(--accent-red);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--accent-red);
}

/* ===== КВЕСТЫ ===== */
.quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.quest-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(243, 55, 43, 0.3);
}

.quest-card.featured {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 209, 102, 0.4);
}

.quest-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quest-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
}

.quest-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    flex: 1;
}

.quest-progress {
    margin: 25px 0;
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, var(--accent-red), #FF6B6B);
    border-radius: 6px;
    transition: width 1s ease;
}

.quest-reward {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* ===== ФУТЕР ===== */
.footer-casino {
    background: var(--primary-dark);
    border-top: 1px solid rgba(243, 55, 43, 0.3);
    padding: 80px 0 30px;
    margin-top: 100px;
}

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

.footer-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--accent-red);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(45deg, var(--accent-red), #FF6B6B);
    transform: translateY(-5px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-fadeIn {
    animation: fadeInUp 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .container-casino {
        max-width: 1140px;
    }
    
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.5rem; }
    .hero-title { font-size: 3.8rem; }
}

@media (max-width: 992px) {
    .container-casino {
        max-width: 960px;
    }
    
    .navbar-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-top: 1px solid rgba(243, 55, 43, 0.3);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title { font-size: 3.2rem; }
    .countdown-timer { font-size: 2.8rem; }
    .stat-number { font-size: 3rem; }
}

@media (max-width: 768px) {
    .container-casino {
        padding: 0 15px;
    }
    
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.5rem; }
    
    .countdown-timer {
        font-size: 2.2rem;
        padding: 20px 30px;
    }
    
    .stats-card, .step-card, .prize-card {
        padding: 25px;
    }
    
    .prize-amount {
        font-size: 2.5rem;
    }
    
    .btn-casino {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    
    .countdown-timer {
        font-size: 1.8rem;
        padding: 15px 25px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .prize-medal {
        font-size: 4rem;
    }
    
    .prize-amount {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--accent-red), #FF6B6B);
    border-radius: 6px;
    border: 3px solid var(--primary-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #FF6B6B, var(--accent-red));
}