/* SKINOZ Design System CSS */

/* Custom Tailwind Configuration */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* CSS Variables for Design System */
:root {
    /* Colors */
    --bg-primary: #0A0A0F;
    --bg-surface: #14141A;
    --text-primary: #EAEAEA;
    --text-secondary: #A0A0A0;
    --accent-primary: #00FF7F;
    --accent-secondary: #4EFFC6;
    --error: #FF4B4B;
    --success: #00FF7F;
    --info: #4DDCFF;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00FF7F 0%, #4EFFC6 100%);
    --gradient-hover: linear-gradient(135deg, #4EFFC6 0%, #00FF7F 100%);
    --gradient-bg: linear-gradient(45deg, #0A0A0F 0%, #1A0A1F 25%, #0F1A0A 50%, #1F0A1A 75%, #0A0A0F 100%);
    
    /* Typography */
    --font-primary: 'Orbitron', 'Poppins', 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 48px;
    --spacing-4xl: 64px;
    
    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-glow: 0 0 16px rgba(0, 255, 127, 0.5);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 0 24px rgba(0, 255, 127, 0.3);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100vh;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 127, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 255, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(77, 220, 255, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, #0A0A0F 0%, #1A0A1F 25%, #0F1A0A 50%, #1F0A1A 75%, #0A0A0F 100%);
    background-size: 400% 400%, 300% 300%, 500% 500%, 200% 200%;
    animation: 
        gradientShift 20s ease infinite,
        glowMove1 15s ease-in-out infinite,
        glowMove2 18s ease-in-out infinite reverse,
        glowMove3 12s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%, 0% 0%, 0% 0%, 0% 50%; }
    25% { background-position: 50% 100%, 100% 0%, 50% 50%, 25% 75%; }
    50% { background-position: 100% 50%, 50% 100%, 100% 0%, 50% 25%; }
    75% { background-position: 50% 0%, 0% 50%, 50% 100%, 75% 50%; }
    100% { background-position: 0% 50%, 0% 0%, 0% 0%, 0% 50%; }
}

@keyframes glowMove1 {
    0%, 100% { 
        background-position: 20% 80%, 80% 20%, 40% 40%, 0% 50%; 
        filter: hue-rotate(0deg);
    }
    33% { 
        background-position: 80% 60%, 30% 70%, 70% 20%, 25% 75%; 
        filter: hue-rotate(60deg);
    }
    66% { 
        background-position: 60% 20%, 70% 80%, 20% 60%, 75% 25%; 
        filter: hue-rotate(120deg);
    }
}

@keyframes glowMove2 {
    0%, 100% { 
        background-position: 80% 20%, 20% 80%, 60% 60%, 50% 0%; 
        filter: hue-rotate(0deg) brightness(1);
    }
    50% { 
        background-position: 40% 90%, 90% 30%, 10% 10%, 100% 50%; 
        filter: hue-rotate(180deg) brightness(1.2);
    }
}

@keyframes glowMove3 {
    0%, 100% { 
        background-position: 40% 40%, 60% 60%, 80% 20%, 0% 50%; 
        filter: hue-rotate(0deg);
    }
    25% { 
        background-position: 70% 10%, 20% 90%, 50% 50%, 25% 75%; 
        filter: hue-rotate(90deg);
    }
    50% { 
        background-position: 10% 70%, 90% 20%, 30% 80%, 50% 25%; 
        filter: hue-rotate(180deg);
    }
    75% { 
        background-position: 60% 80%, 40% 10%, 80% 30%, 75% 50%; 
        filter: hue-rotate(270deg);
    }
}

/* Typography Classes */
.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.2;
    /* text-shadow: 
        0 0 10px var(--accent-primary),
        0 0 20px var(--accent-primary),
        0 0 30px var(--accent-primary),
        0 0 40px var(--accent-primary); */
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* animation: logoGlow 3s ease-in-out infinite alternate; */
}

@keyframes logoGlow {
    from {
        text-shadow: 
            0 0 10px var(--accent-primary),
            0 0 20px var(--accent-primary),
            0 0 30px var(--accent-primary);
    }
    to {
        text-shadow: 
            0 0 15px var(--accent-primary),
            0 0 25px var(--accent-primary),
            0 0 35px var(--accent-primary),
            0 0 45px var(--accent-primary);
    }
}

.description-text {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Skins Section */
.skins-section {
    height: 250px;
    overflow: hidden;
}

.skins-swiper {
    height: 100%;
    width: 100%;
}

.skins-swiper .swiper-wrapper {
    transition-timing-function: linear;
    /* Убираем CSS анимацию - она конфликтует со Swiper */
}

/* Удаляем keyframes - больше не нужны */

.skin-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs);
    width: 250px; /* Фиксированная ширина слайда */
    flex-shrink: 0; /* Запрещаем сжатие слайда */
}

.skin-card {
    width: 240px;
    height: 240px;
    /* background: var(--bg-surface); */
    border-radius: var(--radius-lg);
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    /* box-shadow: var(--shadow-card); */
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.skin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 127, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skin-card:hover::before {
    opacity: 1;
}

.skin-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Картинка помещается целиком без обрезки */
    transition: transform 0.3s ease;
}

.skin-card:hover .skin-image {
    transform: scale(1.05);
}

/* CTA Button */
.cta-button {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-hover);
    transition: left 0.3s ease;
    z-index: 1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button span,
.cta-button i {
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        var(--shadow-glow),
        0 8px 25px rgba(0, 255, 127, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Layout Sections */
.logo-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.description-section {
    padding: var(--spacing-lg) var(--spacing-xl);
}

.cta-section {
    padding: 0 var(--spacing-xl) var(--spacing-2xl);
}

/* Additional Utility Classes */
.bg-surface {
    background-color: var(--bg-surface);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-accent-primary {
    color: var(--accent-primary);
}

.text-accent-secondary {
    color: var(--accent-secondary);
}

.text-error {
    color: var(--error);
}

.text-info {
    color: var(--info);
}

.border-error {
    border-color: var(--error) !important;
}

/* Form Styles */
input[type="url"], input[type="text"], input[type="email"] {
    font-family: var(--font-secondary);
}

input[type="url"]:focus, input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 127, 0.2);
}

/* Loading Animation */
.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* Toast Customization */
.toastify {
    font-family: var(--font-secondary) !important;
}

/* Responsive Design */
@media (max-width: 480px) {
    .logo-text {
        font-size: 2.75rem;
    }
    
    /* Убираем адаптивные размеры карточек - они теперь всегда одинаковые */
    
    .description-text {
        font-size: 0.9rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: var(--spacing-md) var(--spacing-lg);
    }
}
