/* admin/modules/core/templates/landing.css - Стили для лендинга */

/* === Основной контейнер лендинга === */
.landing-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.landing-container {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    transition: transform 0.1s ease;
    position: relative;
    z-index: 2;
}

.landing-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* === Логотип и заголовки === */
.landing-logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

.landing-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* === Блок фичей === */
.landing-features {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    gap: 20px;
}

.landing-feature {
    flex: 1;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.landing-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    background: var(--hover-bg);
}

.landing-feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.landing-feature-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent-blue);
    font-size: var(--font-size-base);
}

.landing-feature-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

/* === CTA кнопка === */
.landing-cta-button {
    background: var(--primary-gradient);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.landing-cta-button::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 ease;
}

.landing-cta-button:hover::before {
    left: 100%;
}

.landing-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.4);
    filter: brightness(1.1);
}

.landing-cta-button:active {
    transform: translateY(0);
}

/* === Переключатель темы === */
.landing-theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.landing-theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.landing-theme-toggle .theme-icon {
    transition: transform 0.3s ease;
}

/* === Анимации === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 51, 102, 0.8);
    }
}

/* === Адаптивность === */
@media (max-width: 768px) {
    .landing-container {
        margin: 20px;
        padding: 30px 20px;
        max-width: none;
    }
    
    .landing-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .landing-logo {
        font-size: 2rem;
    }
    
    .landing-subtitle {
        font-size: 1rem;
    }
    
    .landing-cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding: 25px 15px;
    }
    
    .landing-logo {
        font-size: 1.8rem;
    }
    
    .landing-subtitle {
        font-size: 0.9rem;
    }
    
    .landing-feature {
        padding: 15px;
    }
    
    .landing-feature-icon {
        font-size: 1.5rem;
    }
}

/* === Улучшения для светлой темы === */
body.light-theme .landing-container {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.light-theme .landing-container:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

body.light-theme .landing-feature:hover {
    box-shadow: 0 10px 30px rgba(0, 153, 204, 0.15);
}

body.light-theme .landing-cta-button:hover {
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.2);
}

/* === Дополнительные эффекты === */
.landing-container-interactive {
    transition: transform 0.1s ease;
}

/* Эффект пульсации для CTA кнопки */
.landing-cta-button {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 51, 102, 0);
    }
}

/* Останавливаем пульсацию при наведении */
.landing-cta-button:hover {
    animation: none;
}

/* === Дополнительные визуальные эффекты === */
.landing-feature {
    position: relative;
    overflow: hidden;
}

.landing-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.landing-feature:hover::before {
    left: 100%;
}

/* === Градиентные границы для фичей === */
.landing-feature {
    background: var(--glass-bg);
    position: relative;
}

.landing-feature::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 1px;
    background: linear-gradient(45deg, transparent, var(--accent-blue), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.landing-feature:hover::after {
    opacity: 1;
}