/* Custom CSS for 1xBet Landing Page - Dark Blue Theme */

/* 1xBet Official Colors */
:root {
    --primary-dark: #1a2332;
    --secondary-dark: #0f4c75;
    --accent-blue: #0066cc;
    --dark-bg: #000000;
    --card-bg: #0f4c75;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --border-color: #374151;
}



/* 3D Logo Styles - Visible and Optimized */
.logo-3d {
    height: 50px !important;
    width: auto !important;
    max-width: 200px;
    object-fit: contain;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    
    /* Убираем все фильтры которые могут скрывать логотип */
    filter: none !important;
    mix-blend-mode: normal !important;
    
    /* Smooth transitions */
    transition: all 0.3s ease;
}

/* Контейнер логотипа */
.logo-container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    min-width: 120px;
}

.logo-3d:hover {
    transform: scale(1.05);
    filter: 
        contrast(1.3) 
        brightness(1.15) 
        saturate(1.15);
    drop-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Logo Container */
.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 8px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Enhanced logo container for better black background removal */
.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(
            ellipse at center, 
            rgba(26, 35, 50, 0.1) 0%, 
            rgba(15, 76, 117, 0.05) 50%, 
            transparent 80%
        );
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-container:hover::before {
    opacity: 1;
}

/* Footer logo specific styles */
.logo-footer {
    height: 35px;
    max-width: 160px;
}

/* Styles for processed logos */
.logo-3d.bg-removed {
    /* Логотип с удалённым фоном через canvas */
    filter: 
        contrast(1.1) 
        brightness(1.05) 
        saturate(1.1) 
        drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.logo-3d.bg-removed:hover {
    filter: 
        contrast(1.2) 
        brightness(1.1) 
        saturate(1.15) 
        drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* CSS fallback for logo background removal */
.logo-3d.css-bg-removed {
    /* Используем CSS для удаления тёмного фона */
    mix-blend-mode: screen;
    filter: 
        contrast(1.3) 
        brightness(1.2) 
        saturate(1.15) 
        drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.logo-3d.css-bg-removed:hover {
    filter: 
        contrast(1.4) 
        brightness(1.25) 
        saturate(1.2) 
        drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Responsive design */
@media (max-width: 768px) {
    .logo-3d {
        height: 35px;
        max-width: 150px;
    }
    
    .logo-footer {
        height: 30px;
        max-width: 130px;
    }
}

@media (max-width: 480px) {
    .logo-3d {
        height: 30px;
        max-width: 120px;
    }
    
    .logo-footer {
        height: 28px;
        max-width: 110px;
    }
}

/* Flag Emojis Styles */
.flag-emoji {
    font-size: 1.2em;
    margin-right: 0.5rem;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

/* Mirror Links Country Flags Enhancement */
.mirror-country-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mirror-country-name span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Main Title Styles */
.main-title {
    background: linear-gradient(135deg, #ffffff, #e0e7ff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.main-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #1f4fd0, #00d4aa);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Hero Description Enhancement */
.hero-description {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    margin: 0 auto;
}

/* Global Styles */
* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-left {
    animation: slide-in-left 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slide-in-right 0.6s ease-out;
}

/* Pulse Animation for CTA Buttons */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 79, 208, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(31, 79, 208, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(31, 79, 208, 0);
    }
}

.btn-pulse {
    animation: pulse-glow 2s infinite;
}

/* Navigation Styles */
.nav-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Hero Section Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #1f4fd0 0%, #3b82f6 50%, #ff6b35 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #1f4fd0, #3b82f6);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(31, 79, 208, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff6b35, #f97316);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #f97316, #ea580c);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, #00d4aa, #10b981);
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 170, 0.4);
}

/* Registration Method Selection */
.registration-method {
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--card-bg) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.registration-method:hover {
    border-color: var(--accent-blue) !important;
    background-color: var(--primary-dark) !important;
}

.registration-method.active {
    border-color: var(--accent-blue) !important;
    background-color: var(--secondary-dark) !important;
}

.registration-method.active .w-6.h-6 {
    border-color: var(--accent-blue) !important;
}

.registration-method.active .w-3.h-3 {
    background-color: var(--accent-blue) !important;
    display: block !important;
}

/* Force dark theme for all registration elements */
.registration-method * {
    color: var(--text-primary) !important;
}

.registration-method h4,
.registration-method p {
    color: var(--text-primary) !important;
}

/* FAQ Accordion Styles */
.faq-item {
    transition: all 0.3s ease;
    background-color: var(--secondary-dark);
    color: var(--text-primary);
}

.faq-trigger {
    color: var(--text-primary);
}

.faq-trigger:hover {
    background-color: var(--primary-dark);
}

.faq-content {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.faq-content.show {
    max-height: 500px;
    display: block !important;
}

.faq-trigger.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 300px;
    display: block !important;
}

/* Bonus Cards Shine Effect */
.bonus-card {
    position: relative;
    overflow: hidden;
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

.bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

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

/* Ensure all text in bonus cards is visible */
.bonus-card * {
    color: var(--text-primary) !important;
}

.bonus-card h4,
.bonus-card p,
.bonus-card li,
.bonus-card span,
.bonus-card div {
    color: var(--text-primary) !important;
}

/* Stats Counter Animation */
@keyframes countUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.count-animation {
    animation: countUp 0.5s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #1f4fd0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mirror Link Status Indicator */
.status-indicator {
    position: relative;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: inherit;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Form Focus States */
input:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: transparent;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .hero-gradient {
        padding: 2rem 0;
    }
    
    .card-hover:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-accent:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #0f172a;
        color: #f8fafc;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary,
    .btn-accent {
        border: 2px solid #000;
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Visible for Better Accessibility */
.focus-visible:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Text Selection */
::selection {
    background-color: #3b82f6;
    color: white;
}

::-moz-selection {
    background-color: #3b82f6;
    color: white;
}

/* Image Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Custom Progress Bar */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #1f4fd0, #00d4aa);
    border-radius: 2px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #10b981;
}

.notification.error {
    background-color: #ef4444;
}

.notification.warning {
    background-color: #f59e0b;
}

.notification.info {
    background-color: #3b82f6;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #374151;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Grid System Improvements */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #1f4fd0, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1f4fd0, #3b82f6);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #ff6b35, #f97316);
}

.bg-gradient-accent {
    background: linear-gradient(135deg, #00d4aa, #10b981);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.shadow-glow-secondary {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.shadow-glow-accent {
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}