@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    html {
        scroll-behavior: smooth;
    }

    body {
        @apply overflow-x-hidden bg-[#060816] text-white antialiased;
        font-family: 'Inter', sans-serif;

        background-image:
            radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 30%),
            radial-gradient(circle at top right, rgba(168, 85, 247, 0.12), transparent 35%),
            radial-gradient(circle at bottom center, rgba(14, 165, 233, 0.08), transparent 30%);
    }

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: -1;
        opacity: 0.25;
        background-image:
            linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
        background-size: 80px 80px;
        mask-image: radial-gradient(circle at center, black, transparent 80%);
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: 'Sora', sans-serif;
        @apply tracking-tight;
    }

    p {
        @apply leading-relaxed;
    }

    img {
        @apply h-auto max-w-full rounded-3xl;
    }

    section {
        @apply px-4 md:px-6;
    }

    ::selection {
        @apply bg-cyan-400 text-black;
    }

    ::-webkit-scrollbar {
        width: 10px;
    }

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

    ::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.12);
        border-radius: 999px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

@layer components {
    .container-main {
        @apply mx-auto w-full max-w-7xl px-5 sm:px-6 lg:px-8;
    }

    .glass-card {
        @apply rounded-[32px] border border-white/10 bg-white/[0.04] backdrop-blur-2xl;
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .glass-card-strong {
        @apply rounded-[32px] border border-white/10 bg-white/[0.08] backdrop-blur-3xl;
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .casino-button {
        @apply inline-flex items-center justify-center rounded-2xl px-6 py-3 text-sm font-bold transition-all duration-300;
        @apply bg-gradient-to-r from-cyan-400 to-blue-500 text-black;
        @apply hover:scale-[1.03] hover:shadow-[0_0_40px_rgba(34,211,238,0.35)];
    }

    .casino-button-secondary {
        @apply inline-flex items-center justify-center rounded-2xl border border-white/10 bg-white/5 px-6 py-3 text-sm font-semibold text-white backdrop-blur-xl transition-all duration-300;
        @apply hover:bg-white/10 hover:scale-[1.02];
    }

    .section-title {
        @apply text-4xl font-black leading-none md:text-5xl lg:text-6xl;
    }

    .section-subtitle {
        @apply text-sm leading-relaxed text-white/60 md:text-base;
    }

    .badge-glow {
        @apply inline-flex items-center gap-2 rounded-full border border-cyan-400/20 bg-cyan-400/10 px-5 py-2 text-sm font-semibold text-cyan-300 backdrop-blur-xl;
        box-shadow:
            0 0 30px rgba(34, 211, 238, 0.15);
    }

    .menu-link {
        @apply relative text-3xl font-black text-white/80 transition-all duration-300 md:text-5xl;
    }

    .menu-link:hover {
        @apply text-white;
        text-shadow:
            0 0 30px rgba(255,255,255,0.25);
    }

    .footer-title {
        @apply mb-5 text-lg font-bold text-white;
    }

    .footer-link {
        @apply text-white/60 transition-opacity duration-300 hover:opacity-70;
    }

    .hero-glow {
        position: absolute;
        border-radius: 999px;
        filter: blur(120px);
        opacity: 0.35;
        pointer-events: none;
    }

    .hero-glow-blue {
        width: 420px;
        height: 420px;
        background: rgba(59, 130, 246, 0.35);
        top: -120px;
        left: -120px;
    }

    .hero-glow-purple {
        width: 420px;
        height: 420px;
        background: rgba(168, 85, 247, 0.25);
        bottom: -120px;
        right: -120px;
    }

    .casino-card {
        @apply glass-card relative overflow-hidden p-6 transition-all duration-500;
    }

    .casino-card:hover {
        transform: translateY(-4px);
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.45),
            0 0 40px rgba(34, 211, 238, 0.08);
    }

    .casino-card::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background:
            linear-gradient(
                135deg,
                rgba(255,255,255,0.12),
                rgba(255,255,255,0)
            );
        -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

    .text-gradient {
        background: linear-gradient(
            90deg,
            #ffffff 0%,
            #67e8f9 100%
        );

        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}