/* BRP Autoslon Premium Styles - Glassmorphism & Telegram Enhanced */

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: rgba(0, 99, 199, 0.3);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0063c7;
}

/* Transparent Navigation - NO BORDER */
#navbar {
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    border-bottom: none;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: none;
}

/* ===== GLASSMORPHISM COMPONENTS ===== */

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    pointer-events: none;
}

.glass-card-hover:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 99, 199, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 99, 199, 0.2);
}

.glass-image {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.glass-stat {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-stat:hover {
    background: rgba(0, 99, 199, 0.1);
    border-color: rgba(0, 99, 199, 0.3);
}

.glass-icon {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.glass-nav {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ===== ENHANCED GLASS BUTTON ===== */
.glass-button {
    background: rgba(0, 99, 199, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 99, 199, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-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: left 0.6s;
}

.glass-button:hover {
    background: rgba(0, 99, 199, 0.3);
    border-color: rgba(0, 99, 199, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 99, 199, 0.4);
}

.glass-button:hover::before {
    left: 100%;
}

.glass-button:active {
    transform: translateY(0);
}

/* ===== HERO GLASS EFFECTS ===== */
.glass-text {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-text-accent {
    color: #0063c7;
    text-shadow: 0 0 30px rgba(0, 99, 199, 0.5);
}

.subtitle-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.subtitle-container p {
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin: 0;
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Telegram Button */
#floating-telegram {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Local video styles */
video {
    width: 100%;
    height: auto;
    display: block;
}

video:focus {
    outline: none;
}

/* Table enhancements */
table {
    border-collapse: collapse;
}

table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* Notification */
#notification {
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar for table */
.overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #0063c7;
    outline-offset: 2px;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .glass-card {
        padding: 1.5rem 1rem;
    }

    .subtitle-container {
        padding: 1rem;
        margin: 0 1rem;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }

    /* На мобильных скрываем плавающую кнопку, так как есть sticky bar */
    #floating-telegram {
        bottom: 80px;
    }
}

/* Print styles */
@media print {
    #navbar, #modal, button, #floating-telegram {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* Стили для Telegram цвета - теперь синий #0063c7 */
.text-telegram {
    color: #0063c7;
}

.bg-telegram {
    background-color: #0063c7;
}

.border-telegram {
    border-color: #0063c7;
}

/* Улучшенные hover эффекты для карточек */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .glass-button::before {
        display: none;
    }
}
/* Мобильные: скрываем плавающую круглую кнопку, оставляем только sticky bar внизу */
@media (max-width: 768px) {
    #floating-telegram {
        display: none !important;
    }
}