@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Oxanium', sans-serif;
    background-color: #1A1826;
    color: #FFFFFF;
}

/* styles.css */
.cut-corners {
    clip-path: polygon(10% 0%,
            /* Top-left cut */
            90% 0%,
            /* Top-right cut */
            100% 10%,
            /* Top-right corner */
            100% 90%,
            /* Bottom-right corner */
            90% 100%,
            /* Bottom-right cut */
            10% 100%,
            /* Bottom-left cut */
            0% 90%,
            /* Bottom-left corner */
            0% 10%
            /* Top-left corner */
        );
}

.top-corners {
    clip-path: polygon(93% 0, 100% 8%, 100% 100%, 0 100%, 0 8%, 7% 0);
}

.except-bottom-left {
    clip-path: polygon(93% 0, 100% 7%, 100% 93%, 93% 100%, 0 100%, 0 7%, 7% 0);
}

.except-bottom-right {
    clip-path: polygon(9% 0, 93% 0, 100% 7%, 100% 100%, 7% 100%, 0 93%, 0 7%);

}

.top-right-corner {
    clip-path: polygon(94% 0, 100% 24%, 100% 100%, 0 100%, 0 0);
}

/* ===== ANIMATION SYSTEM ===== */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-90deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

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

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-slide-in-up {
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-rotate-in {
    animation: rotateIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-glow {
    animation: glow 3s ease-in-out infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-typing {
    overflow: hidden;
    border-right: 2px solid;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink .75s step-end infinite;
}

.animate-shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.animate-count-up {
    animation: countUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Animation Delays */
.animation-delay-100 { animation-delay: 100ms; }
.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-300 { animation-delay: 300ms; }
.animation-delay-400 { animation-delay: 400ms; }
.animation-delay-500 { animation-delay: 500ms; }
.animation-delay-600 { animation-delay: 600ms; }
.animation-delay-700 { animation-delay: 700ms; }
.animation-delay-800 { animation-delay: 800ms; }
.animation-delay-900 { animation-delay: 900ms; }
.animation-delay-1000 { animation-delay: 1000ms; }
.animation-delay-1100 { animation-delay: 1100ms; }
.animation-delay-1200 { animation-delay: 1200ms; }
.animation-delay-1400 { animation-delay: 1400ms; }
.animation-delay-1600 { animation-delay: 1600ms; }
.animation-delay-1800 { animation-delay: 1800ms; }
.animation-delay-2000 { animation-delay: 2000ms; }

/* Initial State Classes (for scroll-triggered animations) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.animate-on-scroll-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll-scale {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Enhanced Button Animations */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-enhanced::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.5s;
}

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

.btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-enhanced:active {
    transform: translateY(0);
}

/* Card Hover Effects */
.card-hover-effect {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.card-hover-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.card-hover-effect:hover::before {
    transform: scale(1);
}

.card-hover-effect:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* Parallax Effect */
.parallax {
    transform: translateZ(0);
    transition: transform 0.1s ease-out;
}

/* Stagger Animation Container */
.stagger-container > * {
    animation-fill-mode: both;
}

.stagger-container > *:nth-child(1) { animation-delay: 0ms; }
.stagger-container > *:nth-child(2) { animation-delay: 100ms; }
.stagger-container > *:nth-child(3) { animation-delay: 200ms; }
.stagger-container > *:nth-child(4) { animation-delay: 300ms; }
.stagger-container > *:nth-child(5) { animation-delay: 400ms; }
.stagger-container > *:nth-child(6) { animation-delay: 500ms; }

/* Smooth Transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ultra-smooth {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gaming-specific effects */
.status-indicator {
    position: relative;
    display: inline-block;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    animation: pulse 2s infinite;
}

.status-active::after {
    background: rgba(34, 197, 94, 0.3);
}

.status-inactive::after {
    background: rgba(239, 68, 68, 0.3);
}

/* Essential Utility Classes */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ultra-smooth {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Card Hover Effects */
.card-hover-effect:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.patch-card:hover img {
    transform: scale(1.05);
}

/* Gaming-specific visual enhancements */
.hover:drop-shadow-glow:hover {
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

.text-glow {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.gaming-border {
    border: 2px solid transparent;
    background: linear-gradient(45deg, #1a1a2e, #16213e) padding-box,
                linear-gradient(45deg, #a855f7, #ec4899, #06b6d4) border-box;
}

/* Cyberpunk-style animations */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    10% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(90deg);
    }
    20% {
        transform: translate(2px, 2px);
        filter: hue-rotate(180deg);
    }
    30% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(270deg);
    }
    40% {
        transform: translate(2px, -2px);
        filter: hue-rotate(360deg);
    }
    50% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(90deg);
    }
    60% {
        transform: translate(2px, 2px);
        filter: hue-rotate(180deg);
    }
    70% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(2px, -2px);
        filter: hue-rotate(360deg);
    }
    90% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(90deg);
    }
}

.glitch-effect:hover {
    animation: glitch 0.3s ease-in-out;
}

/* Success state animations */
.success-flash {
    animation: successFlash 0.6s ease-in-out;
}

@keyframes successFlash {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(34, 197, 94, 0.2); }
}

/* Error state animations */
.error-shake {
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { 
        transform: translateX(0);
        border-color: currentColor; 
    }
    25% { 
        transform: translateX(-5px);
        border-color: rgba(239, 68, 68, 0.5);
    }
    75% { 
        transform: translateX(5px);
        border-color: rgba(239, 68, 68, 0.5);
    }
}

/* Improved performance for animations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Stagger Animation Container */
.stagger-container > * {
    animation-fill-mode: backwards;
}

.stagger-container > *:nth-child(1) { animation-delay: 0ms; }
.stagger-container > *:nth-child(2) { animation-delay: 200ms; }
.stagger-container > *:nth-child(3) { animation-delay: 400ms; }
.stagger-container > *:nth-child(4) { animation-delay: 600ms; }
.stagger-container > *:nth-child(5) { animation-delay: 800ms; }
.stagger-container > *:nth-child(6) { animation-delay: 1000ms; }

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        filter: brightness(0.9) contrast(1.1);
    }
}


.bottom-left-corner {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 75% 100%, 5% 100%, 0 76%)
}

.gradient-border {
    border: 2px solid transparent;
    border-image-source: radial-gradient(80.38% 222.5% at -13.75% -12.36%, #A2A2A2 0%, rgba(191, 193, 193, 0) 100%),
        radial-gradient(80.69% 208.78% at 108.28% 112.58%, #41668C 0%, rgba(135, 38, 183, 0) 100%);
    border-image-slice: 1;
}

.gradient-bg {
    background: radial-gradient(80.38% 222.5% at -13.75% -12.36%, #A2A2A2 0%, rgba(191, 193, 193, 0) 100%),
        radial-gradient(80.69% 208.78% at 108.28% 112.58%, #41668C 0%, rgba(135, 38, 183, 0) 100%);
}

input[type="email"],
input[type="password"] {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-button:hover {
    color: #9ca3af;
}

.submit-button {
    background-color: #476685;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #3a5574;
}

.bottom-left-corner {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 75% 100%, 5% 100%, 0 76%)
}