/* ====================================
   SURVIES.FR - ІНФОГРАФІКА СТИЛЬ
   Агрегатор казино та букмекерів
   ==================================== */

:root {
    /* Кольорова палітра ІНФОГРАФІКА */
    --primary-color: #2563eb; /* Синій */
    --secondary-color: #f97316; /* Помаранчевий */
    --success-color: #10b981; /* Зелений */
    --accent-color: #8b5cf6; /* Фіолетовий */
    
    --background-light: #ffffff;
    --background-dark: #0f172a;
    --background-secondary: #1e293b;
    --background-card: #f8fafc;
    
    --text-light: #f1f5f9;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    
    --border-color: #e2e8f0;
    --glow-color: rgba(37, 99, 235, 0.3);
    
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    --header-height: 70px;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    scroll-behavior: smooth;
}

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

/* КОНТЕЙНЕР */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* ====================================
   HEADER - ФІКСОВАНИЙ
   ==================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-menu a:hover::after {
    width: 80%;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

/* BURGER MENU */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding-top: 120px;
    padding-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================================
   BUTTONS
   ==================================== */

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
}

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

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

/* ====================================
   FEATURES SECTION
   ==================================== */

.features-section {
    padding: var(--spacing-xl) 0;
    background: var(--background-light);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--background-card);
    padding: var(--spacing-lg);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ====================================
   CASINOS/BOOKMAKERS CARDS
   ==================================== */

.casinos-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--background-light) 0%, var(--background-card) 100%);
}

.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.casino-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.casino-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.casino-header {
    background: linear-gradient(135deg, var(--background-dark), var(--background-secondary));
    padding: var(--spacing-lg);
    text-align: center;
    position: relative;
}

.casino-rank {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), #ea580c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.2rem;
}

.casino-logo {
    width: 150px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.casino-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1.2);
}

.casino-body {
    padding: var(--spacing-lg);
}

.casino-bonus {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    font-size: 1.1rem;
}

.casino-features {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.casino-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.casino-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.casino-cta {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.casino-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
}

/* ====================================
   FAQ SECTION
   ==================================== */

.faq-section {
    padding: var(--spacing-xl) 0;
    background: var(--background-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--primary-color);
}

.faq-question {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--background-card);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 var(--spacing-lg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: var(--spacing-md) var(--spacing-lg);
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ====================================
   ARTICLES PREVIEW
   ==================================== */

.articles-preview {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--background-card) 0%, var(--background-light) 100%);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.article-category {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.article-content {
    padding: var(--spacing-lg);
}

.article-card h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: var(--spacing-sm);
}

/* ====================================
   DISCLAIMER
   ==================================== */

.disclaimer-section {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: var(--spacing-lg) 0;
    border-top: 3px solid #ef4444;
    border-bottom: 3px solid #ef4444;
}

.disclaimer-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer-content p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.disclaimer-content a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* ====================================
   FOOTER
   ==================================== */

.footer {
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

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

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

.compliance-logos {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.age-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.age-restriction {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.2rem;
}

.compliance-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--spacing-md);
    align-items: center;
}

.compliance-logo {
    height: 35px !important;
    width: auto !important;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* PNG логотипи з фоном */
.compliance-logo[src*=".png"] {
    background: rgba(255,255,255,0.95);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* SVG логотипи без фону */
.compliance-logo[src*=".svg"] {
    filter: brightness(1.5) contrast(1.2);
}

.compliance-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--background-secondary);
    padding-top: var(--spacing-md);
    text-align: center;
    color: var(--text-gray);
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* ====================================
   POPUPS
   ==================================== */

.age-popup,
.cookie-banner {
    position: fixed;
    z-index: 10000;
    display: none;
}

.age-popup {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-popup-content {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    border: 3px solid var(--primary-color);
}

.age-popup h2 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-size: 2rem;
}

.age-popup p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
}

.age-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.cookie-banner {
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
}

.cookie-banner p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .nav-menu {
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
        flex-direction: column;
        padding: var(--spacing-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        border-bottom: 3px solid var(--primary-color);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

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

    .mobile-menu-toggle.active .burger-line:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }

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

    .mobile-menu-toggle.active .burger-line:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }

    .hero {
        padding-top: 100px;
    }

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

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

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

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: 100%;
    }

    .compliance-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

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

    .age-popup-content {
        margin: var(--spacing-md);
        padding: var(--spacing-lg);
    }

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

