/* ---
   Дизайн-система "Booster AI" v3.0 - Final
   Разработано: пайтон
--- */

/* --- 1. Переменные --- */
:root {
    --sidebar-width: 280px;
    --brand-color: #818cf8;
    --brand-color-dark: #6366f1;
    --brand-gradient: linear-gradient(90deg, var(--brand-color) 0%, var(--brand-color-dark) 100%);
    --mascot-color: #f472b6;
    --sidebar-bg: rgba(255, 255, 255, 0.75);
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-color: #1f2937;
    --text-muted-color: #6b7280;
    --border-color: rgba(209, 213, 219, 0.5);
    --hover-bg: rgba(99, 102, 241, 0.1);
    --active-link-bg: var(--brand-gradient);
    --active-link-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
    --header-text-color: #111827;
    --result-card-bg: rgba(243, 244, 246, 0.85);
    --transition-speed: 0.3s;
}

body.dark-mode {
    --sidebar-bg: rgba(30, 41, 59, 0.75);
    --card-bg: rgba(51, 65, 85, 0.7);
    --text-color: #f3f4f6;
    --text-muted-color: #9ca3af;
    --border-color: rgba(75, 85, 99, 0.5);
    --hover-bg: rgba(139, 92, 246, 0.2);
    --header-text-color: #f9fafb;
    --result-card-bg: rgba(31, 41, 55, 0.85);
}

/* --- 2. Анимации --- */
@keyframes aurora-gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float-animation { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes blink-animation { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); transform-origin: center; } }
@keyframes wave-animation { 0% { transform: rotate(0deg); } 50% { transform: rotate(15deg); } 100% { transform: rotate(0deg); } }

/* --- 3. Глобальные стили --- */
body { font-family: 'Montserrat', sans-serif; color: var(--text-color); background-color: #eef2f9; }
body.dark-mode { background-color: #111827; }

.aurora-background { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; 
    background: linear-gradient(45deg, #fde68a, #fca5a5, #a78bfa, #93c5fd); 
    background-size: 400% 400%; 
    animation: aurora-gradient 18s ease infinite; opacity: 0.25; 
}
body.dark-mode .aurora-background { opacity: 0.15; }

/* --- 4. Макет: Sidebar и Основной контент --- */
.sidebar { 
    width: var(--sidebar-width); height: 100vh; position: fixed; top: 0; left: 0; 
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); 
    background: var(--sidebar-bg); border-right: 1px solid var(--border-color); 
    transition: left var(--transition-speed) ease-in-out; 
    display: flex; flex-direction: column; z-index: 1040;
}
.sidebar-header, .sidebar-footer { padding: 1.5rem; flex-shrink: 0; }
.sidebar-nav { padding: 0 1.5rem; flex-grow: 1; overflow-y: auto; }

.main-content { 
    margin-left: var(--sidebar-width); padding: 2.5rem; 
    width: calc(100% - var(--sidebar-width)); 
    transition: margin-left var(--transition-speed) ease-in-out; 
    height: 100vh; overflow-y: auto; 
}

/* --- 5. Компоненты --- */
.card, .modal-content { 
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); 
    border: 1px solid var(--border-color); background-color: var(--card-bg) !important; 
    color: var(--text-color); border-radius: 16px; margin-bottom: 1.5rem; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out; 
}
.card.tilt-effect:hover { 
    transform: translateY(-5px) scale(1.01); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); 
    border-color: var(--brand-color); 
}

.btn-primary { 
    background: var(--brand-gradient); border: none; border-radius: 50px; color: white; 
    font-weight: 600; transition: all var(--transition-speed) ease; 
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2); padding: 0.75rem 2rem;
}
.btn-primary.tilt-effect:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 7px 20px rgba(99, 102, 241, 0.4); 
}

.sidebar .nav-link { 
    color: var(--text-color); font-weight: 600; border-radius: 8px; margin-bottom: 0.75rem; 
    padding: 0.85rem 1.25rem; font-size: 1rem; 
    transition: all var(--transition-speed) ease; 
    display: flex; align-items: center; gap: 0.75rem;
    opacity: 0; animation: fadeIn 0.5s ease forwards;
}
.sidebar .nav-link:hover { background-color: var(--hover-bg); transform: translateX(5px); }
.sidebar .nav-link.active { background: var(--active-link-bg); color: white; box-shadow: var(--active-link-shadow); }
.sidebar-header .brand-title { 
    background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
    background-clip: text; text-fill-color: transparent; font-weight: 700 !important; font-size: 1.5rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--header-text-color);
    line-height: 1.2;
}
.page-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted-color);
    max-width: 650px;
}

/* --- 6. Стили для главной страницы --- */
.hero-section {
    min-height: calc(90vh - 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.product-visualizer .card {
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
body.dark-mode .product-visualizer .card { box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.product-visualizer video { width: 100%; border-radius: 10px; }

.social-proof-section .marketplace-logo {
    opacity: 0.6;
    transition: opacity var(--transition-speed) ease;
}
.social-proof-section .marketplace-logo:hover { opacity: 1; }
body.dark-mode .social-proof-section .marketplace-logo { filter: invert(1) brightness(1.5); }

.features-section .feature-row { margin-bottom: 6rem; }
.features-section .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    color: var(--brand-color);
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 7. Бустер (Ассистент) --- */
.booster-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 1020; }
.booster-helper { cursor: pointer; animation: float-animation 6s ease-in-out infinite; }
.booster-helper:hover { animation-play-state: paused; }
.booster-helper .booster-icon { width: 100px; height: 100px; display: block; }
.booster-icon #eyes { animation: blink-animation 4s infinite 1s; }
.booster-helper:hover #waving-arm { transform-origin: 25px 25px; animation: wave-animation 1s ease-in-out; }

/* --- 8. Адаптивность --- */
.mobile-toggle-btn { 
    position: fixed; top: 1.5rem; left: 1.5rem; z-index: 1031; display: none; 
    background: var(--sidebar-bg); backdrop-filter: blur(15px); color: var(--text-color); 
    border-radius: 50%; width: 52px; height: 52px; 
    align-items: center; justify-content: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 1px solid var(--border-color); 
}
.overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.6); z-index: 1029; 
    display: none; opacity: 0; 
    transition: opacity var(--transition-speed) ease-in-out; 
}
.sidebar.active + .overlay { display: block; opacity: 1; }

@media (max-width: 992px) {
    .sidebar { left: calc(-1 * var(--sidebar-width)); }
    .sidebar.active { left: 0; box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
    .main-content { margin-left: 0; width: 100%; padding: 1.5rem 1rem; }
    .mobile-toggle-btn { display: flex; }
    .page-title { font-size: 2.25rem; }
}
@media (max-width: 576px) {
    :root { --sidebar-width: 85vw; }
}