/* ============================================
   SKINOZ Landing Page - Custom Styles
   ============================================ */

/* CSS Variables - Design System */
:root {
    /* Цвета */
    --bg-primary: #0A0A0F;
    --bg-secondary: #14141A;
    --text-primary: #EAEAEA;
    --text-secondary: #A0A0A0;
    --accent-primary: #00FF7F;
    --accent-secondary: #4EFFC6;
    --error: #FF4B4B;
    --info: #4DDCFF;
    
    /* Типографика */
    --font-orbitron: 'Orbitron', 'Poppins', 'Segoe UI', Roboto, sans-serif;
    --font-poppins: '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-card: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 16px rgba(0, 255, 127, 0.5);
    --shadow-glow-hover: 0 0 24px rgba(0, 255, 127, 0.3);
}

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-poppins);
    background: linear-gradient(-45deg, #000000, #1a0a3e, #0a1f2e, #1e2a4a, #000000);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

/* Декоративные ножи CS2 */
.knife-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.knife {
    position: absolute;
    width: 130px;
    height: 130px;
    opacity: 0.15;
    filter: drop-shadow(0 0 20px rgba(0, 255, 127, 0.3));
}

.knife-1 {
    top: 8%;
    left: 5%;
    animation: floatKnife1 15s ease-in-out infinite;
}

.knife-2 {
    top: 15%;
    right: 10%;
    animation: floatKnife2 18s ease-in-out infinite;
}

.knife-3 {
    bottom: 20%;
    left: 8%;
    animation: floatKnife3 20s ease-in-out infinite;
}

.knife-4 {
    top: 50%;
    right: 5%;
    animation: floatKnife1 17s ease-in-out infinite;
}

.knife-5 {
    bottom: 10%;
    right: 12%;
    animation: floatKnife2 16s ease-in-out infinite;
}

.knife-6 {
    top: 35%;
    left: 3%;
    animation: floatKnife3 19s ease-in-out infinite;
}

.knife-7 {
    bottom: 45%;
    right: 15%;
    animation: floatKnife1 21s ease-in-out infinite;
}

.knife-8 {
    top: 70%;
    left: 15%;
    animation: floatKnife2 14s ease-in-out infinite;
}

/* Анимации плавания ножей */
@keyframes floatKnife1 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

@keyframes floatKnife2 {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(40px) rotate(5deg);
    }
}

@keyframes floatKnife3 {
    0%, 100% {
        transform: translateY(0) rotate(5deg);
    }
    50% {
        transform: translateY(-25px) rotate(-10deg);
    }
}

/* Типографика */
h1 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
}

/* Glitch эффект для лого */
.glitch {
    position: relative;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
    background: none;
    -webkit-text-fill-color: initial;
}

.glitch::before {
    left: 4px;
    text-shadow: -3px 0 var(--accent-primary);
    color: var(--accent-primary);
    animation: glitch-1 2s infinite linear alternate-reverse;
    z-index: -1;
}

.glitch::after {
    left: -4px;
    text-shadow: 3px 0 rgba(0, 0, 255, 0.8);
    color: rgba(0, 0, 255, 0.8);
    animation: glitch-2 3s infinite linear alternate-reverse;
    z-index: -1;
}

/* Keyframes для glitch эффекта */
@keyframes glitch-1 {
    0%   { clip: rect(10px, 9999px, 80px, 0); }
    20%  { clip: rect(50px, 9999px, 120px, 0); }
    40%  { clip: rect(20px, 9999px, 60px, 0); }
    60%  { clip: rect(70px, 9999px, 100px, 0); }
    80%  { clip: rect(30px, 9999px, 90px, 0); }
    100% { clip: rect(10px, 9999px, 80px, 0); }
}

@keyframes glitch-2 {
    0%   { clip: rect(30px, 9999px, 100px, 0); }
    20%  { clip: rect(10px, 9999px, 60px, 0); }
    40%  { clip: rect(50px, 9999px, 90px, 0); }
    60%  { clip: rect(20px, 9999px, 70px, 0); }
    80%  { clip: rect(60px, 9999px, 120px, 0); }
    100% { clip: rect(30px, 9999px, 100px, 0); }
}

/* Анимация градиентного фона */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Анимация пульсации для кнопки */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 16px rgba(0, 255, 127, 0.5);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 24px rgba(0, 255, 127, 0.7);
    }
}

/* Анимация пульсации при hover */
@keyframes pulseHover {
    0%, 100% {
        transform: translateY(-2px) scale(1);
        box-shadow: 0 0 28px rgba(0, 255, 127, 0.8);
    }
    50% {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 0 32px rgba(0, 255, 127, 0.9);
    }
}

/* CTA Button стили */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--bg-primary);
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    animation: pulse 2s ease-in-out infinite;
}

.cta-button:hover {
    box-shadow: 0 0 32px rgba(0, 255, 127, 0.9);
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
}

.cta-button:active {
    transform: scale(0.98);
}

/* Иконка Telegram в кнопке */
.telegram-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Модальные окна */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 50;
    padding: 16px;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    max-width: 42rem;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-card);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--accent-primary);
}

.modal h2 {
    font-family: var(--font-orbitron);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.modal p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.modal p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Стили для новых секций лендинга
   ============================================ */

/* Статистика доверия */
.stats-section {
    animation: fadeInUp 0.8s ease-out;
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 127, 0.4);
    box-shadow: 0 8px 24px rgba(0, 255, 127, 0.2);
}

/* Игровые режимы */
.mode-card {
    transition: all 0.3s ease;
}

.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 255, 127, 0.2);
}

.icon-wrapper {
    transition: all 0.3s ease;
}

.mode-card:hover .icon-wrapper {
    transform: scale(1.1);
    background-color: rgba(0, 255, 127, 0.3);
}

/* Шаги "Как это работает" */
.step-card {
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    box-shadow: 0 4px 16px rgba(0, 255, 127, 0.4);
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 255, 127, 0.6);
}

/* Лента недавних побед */
.win-item {
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease-out;
}

.win-item:hover {
    transform: translateX(5px);
    border-color: rgba(0, 255, 127, 0.3);
    box-shadow: 0 4px 16px rgba(0, 255, 127, 0.15);
}

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

/* Отзывы */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 127, 0.4);
    box-shadow: 0 8px 24px rgba(0, 255, 127, 0.2);
}

.rating i {
    transition: all 0.2s ease;
}

.testimonial-card:hover .rating i {
    transform: scale(1.1);
}

/* FAQ секция */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(0, 255, 127, 0.05);
}

.faq-item.active {
    border-color: rgba(0, 255, 127, 0.4);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 !important;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem 1.5rem !important;
}

/* Футер */
.footer-section {
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95), transparent);
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 255, 127, 0.3);
}

.payment-badge {
    transition: all 0.3s ease;
}

.payment-badge:hover {
    transform: translateY(-2px);
}

/* Анимации появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .mode-card {
        padding: 24px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .footer-section .grid {
        grid-template-columns: 1fr;
    }
}
