﻿/* Font Definitions */
@font-face {
    font-family: 'Lexend-Thin';
    src: url('../fonts/Lexend-Thin.ttf');
    font-display: swap;
}

@font-face {
    font-family: 'Lexend-Regular';
    src: url('../fonts/Lexend-Regular.ttf');
    font-display: swap;
}

@font-face {
    font-family: 'Lexend-Bold';
    src: url('../fonts/Lexend-Bold.ttf');
    font-display: swap;
}

@font-face {
    font-family: 'Lexend-Semibold';
    src: url('../fonts/Lexend-SemiBold.ttf');
    font-display: swap;
}

@font-face {
    font-family: 'Lexend-Medium';
    src: url('../fonts/Lexend-Medium.ttf');
    font-display: swap;
}

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

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

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

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a111f;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff86;
}

/* Error page scrollbar variant */
.error-page ::-webkit-scrollbar-thumb:hover {
    background: #ff6b00;
}

/* Input focus effects */
input:focus {
    outline: none;
    border-color: #00ff86 !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 134, 0.1) !important;
}

/* Placeholder styling */
::placeholder {
    color: #666 !important;
    opacity: 1;
}

/* Button hover effect */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/*!* Icon animations *!*/
/*.fa-eye,*/
/*.fa-eye-slash {*/
/*    transition: all 0.2s ease;*/
/*}*/

/*.fa-eye:hover,*/
/*.fa-eye-slash:hover {*/
/*    color: #00ff86 !important;*/
/*    transform: scale(1.1);*/
/*}*/

/* Card entrance animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideUp {
    animation: slideUp 0.6s ease-out;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #00ff86 0%, #00b8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Error gradient text effect */
.gradient-text-error {
    background: linear-gradient(135deg, #ff6b00 0%, #ff4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass-effect {
    background: rgba(10, 17, 31, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Glass morphism effect for error pages */
.glass-effect-error {
    background: rgba(31, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Shimmer loading effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Custom focus ring */
.focus-ring:focus {
    outline: 2px solid #00ff86;
    outline-offset: 2px;
}

/* Error focus ring */
.focus-ring-error:focus {
    outline: 2px solid #ff6b00;
    outline-offset: 2px;
}

/* Pulse animation delay utilities */
.delay-1000 {
    animation-delay: 1s;
}

.delay-2000 {
    animation-delay: 2s;
}

/* Smooth transitions for interactive elements */
button,
input,
a {
    transition: all 0.3s ease;
}

.cf-turnstile {
    width: 100% !important;
}

/* Code block styling for error pages */
pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #ff9a5a;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Inline code styling */
:not(pre) > code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 107, 0, 0.2);
}

/* Warning pulse animation */
@keyframes warning-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-warning-pulse {
    animation: warning-pulse 2s ease-in-out infinite;
}

/* Error shake animation */
@keyframes error-shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.animate-error-shake {
    animation: error-shake 0.5s ease-in-out;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

/* Info card hover effect */
.info-card {
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.1);
}
