/* ==========================================
   CUSTOM STYLES - Casinozer Theme
   ========================================== */

:root {
    --background: 220 16% 8%;
    --foreground: 0 0% 98%;
    --card: 220 14% 12%;
    --card-foreground: 0 0% 98%;
    --primary: 168 100% 50%;
    --primary-foreground: 220 16% 8%;
    --secondary: 220 14% 18%;
    --secondary-foreground: 0 0% 98%;
    --muted: 220 14% 18%;
    --muted-foreground: 220 9% 60%;
    --accent: 168 100% 50%;
    --border: 220 13% 20%;
    --success: 168 100% 50%;
    --warning: 38 92% 50%;
    --destructive: 0 62% 50%;
    --radius: 0.5rem;
}

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

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Links */
a {
    color: hsl(var(--primary));
    transition: color 0.3s ease;
}

a:hover {
    color: hsl(var(--primary) / 0.8);
}

/* ========================================== */
/* CTA BUTTON STYLES */
/* ========================================== */

.cta-button-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.cta-button-primary:hover {
    box-shadow: 0 10px 30px hsla(var(--primary), 0.4);
    transform: scale(1.02);
}

.cta-button-secondary {
    border: 2px solid hsl(var(--primary));
    color: hsl(var(--foreground));
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    background: transparent;
    position: relative;
}

.cta-button-secondary:hover {
    background: hsla(var(--primary), 0.1);
}

/* ========================================== */
/* TECH CORNER ACCENTS */
/* ========================================== */

.tech-corners::before,
.tech-corners::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid hsl(var(--primary));
    z-index: 10;
}

.tech-corners::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.tech-corners::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/* ========================================== */
/* SCROLL ANIMATIONS */
/* ========================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.animate-on-scroll[style*="animation-delay"] {
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* ========================================== */
/* FLOATING CTA */
/* ========================================== */

.floating-cta {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 94%;
    max-width: 512px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========================================== */
/* FORM STYLES */
/* ========================================== */

input,
textarea,
select {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    border-radius: var(--radius);
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(var(--primary), 0.1);
}

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

@media (max-width: 768px) {
    .floating-cta {
        bottom: 1rem;
        width: 94%;
    }

    .cta-button-primary,
    .cta-button-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ========================================== */
/* TAILWIND CUSTOM UTILITIES */
/* ========================================== */

@layer utilities {
    .text-balance {
        text-wrap: balance;
    }

    .bg-background {
        @apply bg-[hsl(var(--background))];
    }

    .text-foreground {
        @apply text-[hsl(var(--foreground))];
    }

    .text-muted-foreground {
        @apply text-[hsl(var(--muted-foreground))];
    }

    .text-primary {
        @apply text-[hsl(var(--primary))];
    }

    .text-secondary {
        @apply text-[hsl(var(--secondary))];
    }

    .bg-card {
        @apply bg-[hsl(var(--card))];
    }

    .border-border {
        @apply border-[hsl(var(--border))];
    }

    .bg-primary {
        @apply bg-[hsl(var(--primary))];
    }

    .text-primary-foreground {
        @apply text-[hsl(var(--primary-foreground))];
    }
}

/* ========================================== */
/* ANIMATION UTILITIES */
/* ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

/* ========================================== */
/* CONTAINER QUERY SUPPORT */
/* ========================================== */

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}
