/* Общие стили для всех страниц ELITE ACADEMY */

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700;900&family=Lato:wght@300;400;700&display=swap');

/* CSS переменные */
:root {
    --primary-black: #000000;
    --primary-gold: #D9B86E;
    --accent-gold: #B8860B;
    --grey: #434343;
    --bg-light: #f8f9fa;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Базовые стили body */
body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--primary-black);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Текстурный эффект */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    z-index: 0;
    pointer-events: none;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulance type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Контейнер */
.container {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
}

/* Общие стили header */
.header {
    padding: 10px 10px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(217, 184, 110, 0.95), rgba(184, 134, 11, 0.95));
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(217, 184, 110, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    flex-shrink: 0;
}

.header-title {
    flex: 1;
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.back-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-button:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.3);
}

.back-arrow {
    font-size: 20px;
    color: white;
    font-weight: bold;
}

/* Нижняя навигация */
.bottom-nav-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.98));
    backdrop-filter: blur(20px);
    padding: 12px 20px 20px;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12), inset 0 2px 2px rgba(255, 255, 255, 0.9);
    border-top: 2px solid rgba(217, 184, 110, 0.15);
}

.nav-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    align-items: center;
    position: relative;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 1;
}

.nav-item:active {
    transform: scale(0.9);
}

.nav-icon {
    font-size: 24px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.nav-label {
    font-size: 10px;
    color: #666;
    opacity: 0.7;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-item.active .nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

.nav-item.active .nav-label {
    color: var(--accent-gold);
    opacity: 1;
    font-weight: 700;
}

/* Центральная кнопка навигации */
.center-button {
    position: absolute;
    left: 50%;
    top: -35px;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
    box-shadow: 0 8px 24px rgba(217, 184, 110, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 4px solid white;
}

.center-button:active {
    transform: translateX(-50%) scale(0.9);
    box-shadow: 0 4px 12px rgba(217, 184, 110, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.center-button-icon {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.diamond-image {
    width: 130px;
    height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 5;
}

.center-button-label {
    position: absolute;
    bottom: -20px;
    font-size: 9px;
    color: #666;
    font-weight: 700;
    white-space: nowrap;
}

/* Общие стили для фиксированного header */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    max-width: 500px;
    margin: 0 auto;
}

/* Общие утилиты */
.section-title {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    margin-top: 20px;
}
