/* Professional Casino Website Styles */

/* Custom CSS Variables */
:root {
    --brand-dark: #0A0B0E;
    --brand-darker: #060708;
    --brand-slate: #1A1D21;
    --brand-gray: #2D3138;
    --brand-light-gray: #404651;
    --brand-accent: #00D4AA;
    --brand-accent-hover: #00B8A9;
    --brand-gold: #F7B32B;
    --brand-gold-hover: #E6A429;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-accent), var(--brand-gold));
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--brand-accent-hover), var(--brand-gold-hover));
}

/* Text selection styling */
::selection {
    background: rgba(0, 212, 170, 0.2);
    color: white;
}

/* Typography refinements */
.font-inter {
    font-feature-settings: 'cv01', 'cv02', 'cv03', 'cv04';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sophisticated animations */
@keyframes subtle-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes gentle-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

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

@keyframes border-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 212, 170, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 212, 170, 0.6);
    }
}

/* Hero background subtle animation */
.bg-hero-pattern {
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* Professional button enhancements */
.btn-professional {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-professional::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;
}

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

/* Enhanced card hover effects */
.card-professional {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.card-professional:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Professional form styling */
.form-professional input:focus {
    box-shadow:
        0 0 0 2px rgba(0, 212, 170, 0.1),
        0 0 0 4px rgba(0, 212, 170, 0.2);
}

/* Subtle background patterns */
.pattern-dots {
    background-image: radial-gradient(
        circle at 1px 1px,
        rgba(255, 255, 255, 0.05) 1px,
        transparent 0
    );
    background-size: 20px 20px;
}

.pattern-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Professional loading animations */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--brand-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Professional tooltip styling */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-slate);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Professional focus management */
.focus-visible:focus {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-full {
        width: 100%;
    }

    .mobile-text-center {
        text-align: center;
    }

    .mobile-padding {
        padding: 1rem;
    }
}

/* Professional micro-interactions */
.interactive-element {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-element:hover {
    transform: translateY(-1px);
}

.interactive-element:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

/* Sophisticated glass effects */
.glass-card {
    background: rgba(26, 29, 33, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Professional gradient text effects */
.gradient-text-accent {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --brand-dark: #000;
        --brand-slate: #222;
        --brand-gray: #444;
    }
}

/* Professional shadow system */
.shadow-soft {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shadow-medium {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shadow-strong {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.shadow-brand {
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

/* Professional border system */
.border-subtle {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.border-brand {
    border: 1px solid var(--brand-accent);
}

.border-gradient {
    border: 1px solid transparent;
    background: linear-gradient(var(--brand-slate), var(--brand-slate)) padding-box,
                linear-gradient(135deg, var(--brand-accent), var(--brand-gold)) border-box;
}

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

    body {
        background: white !important;
        color: black !important;
    }

    .text-white {
        color: black !important;
    }
}

/* High DPI optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .crisp-edges {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}