/* ============================================
   DWARIUM — styles1.css (чиста версія)
   Поетапний редизайн, етап 1-3
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF7000;
    --primary-hover: #e66500;
    --gold: #d4a437;
    --gold-bright: #ffd966;
    --text-color: #bac6d2;
    --text-secondary: #8a9cad;
    --shadow-color: rgba(0, 0, 0, 0.7);
    --dark-bg: #0a1118;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--dark-bg);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ============================================
   FALLBACK BACKGROUND (паралакс лежить в index1.php)
   ============================================ */
.video-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1118 0%, #18222b 50%, #23323d 100%);
}

#background-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
}

/* ============================================
   HEADER — темна смуга з лого та меню
   ============================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    position: relative;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10, 17, 24, 0.95) 0%, rgba(10, 17, 24, 0.75) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 112, 0, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.6) 50%,
        transparent 100%);
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.03);
}

.header-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 112, 0, 0.3));
    transition: filter 0.3s ease;
}

.header-logo:hover .header-logo-img {
    filter: drop-shadow(0 0 18px rgba(255, 112, 0, 0.6));
}

/* ============================================
   NAVIGATION MENU
   ============================================ */
.menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 2.5rem);
}

.menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 1vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 1px 1px 3px var(--shadow-color);
    white-space: nowrap;
}

.menu a:hover,
.menu a.active {
    color: var(--primary-color);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu a:hover::after,
.menu a.active::after {
    width: 80%;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    z-index: 20;
}

/* ============================================
   MAIN — основний контент
   ============================================ */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 5% min(2rem, 4vh);
    width: 100%;
}

.bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: min(2.5rem, 5vh);
    gap: 18px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   HERO CTA — слоган + кнопки + онлайн
   ============================================ */
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    width: 100%;
}

.hero-cta > * {
    align-self: center;
}

/* Слоган — темна пігулка з золотою облямівкою */
.hero-slogan {
    display: inline-block;
    font-family: 'Cinzel', 'Montserrat', serif;
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 6px;
    color: #ffe9c8;
    text-transform: uppercase;
    text-align: center;
    margin: 0 auto;
    padding: 10px 28px;
    background: rgba(8, 12, 18, 0.72);
    border-radius: 999px;
    border: 1px solid rgba(255, 180, 80, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-shadow:
        0 0 16px rgba(255, 140, 50, 0.65),
        0 2px 5px rgba(0, 0, 0, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.4;
}

/* Кнопки CTA */
.hero-cta .auth-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    margin: 0;
}

.hero-cta .btn {
    width: 300px;
    height: 78px;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    position: relative;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    transition: all 0.25s ease;
    box-shadow: none;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-cta .register-btn {
    background-image: url('../images/btn-red.png');
    color: #fff4dc;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(255, 180, 80, 0.5);
}

.hero-cta .register-btn:hover {
    filter: brightness(1.15) drop-shadow(0 0 18px rgba(255, 100, 40, 0.55));
    transform: translateY(-2px);
}

.hero-cta .login-btn {
    background-image: url('../images/btn-dark.png');
    color: #d4dae3;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(180, 200, 220, 0.25);
}

.hero-cta .login-btn:hover {
    filter: brightness(1.25) drop-shadow(0 0 14px rgba(150, 170, 200, 0.4));
    transform: translateY(-2px);
    color: #fff;
}

/* ============================================
   ОНЛАЙН ЛІЧИЛЬНИК — компактна "пігулка"
   ============================================ */
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(10, 17, 24, 0.85) 0%, rgba(24, 34, 43, 0.85) 100%);
    border: 1px solid rgba(86, 36, 1, 0.95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    color: rgba(186, 198, 210, 0.92);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    width: auto;
    margin: 0;
    align-self: center;
}

.online-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #3cff7a;
    box-shadow: 0 0 10px rgba(60, 255, 122, 0.65);
    animation: onlinePulse 1.2s infinite ease-in-out;
    flex-shrink: 0;
}

.online-num {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.online-badge.offline .online-dot {
    background: #ff3c3c;
    box-shadow: 0 0 10px rgba(255, 60, 60, 0.6);
    animation: none;
}

.online-badge.offline .online-num {
    color: rgba(186, 198, 210, 0.7);
}

@keyframes onlinePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

/* Прибираємо стилі li (раптом залишилися старі) */
.hero-cta li,
.menu-online {
    list-style: none;
    width: auto;
    display: inline-flex;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin: 0;
}

.social-icon {
    color: rgba(186, 198, 210, 0.75);
    font-size: 1.6rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.social-icon i {
    filter: drop-shadow(0 0 5px rgba(255, 112, 0, 0.3));
}

/* Copyright */
.copyright {
    color: rgba(186, 198, 210, 0.85);
    font-size: clamp(0.75rem, 0.95vw, 0.9rem);
    text-shadow:
        0 0 8px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.95);
    margin-top: 4px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* ============================================
   MEDIA QUERIES — все в одному місці
   ============================================ */
@media (min-width: 1921px) {
    .menu a { font-size: 1.1rem; }
    .hero-slogan { font-size: 1.4rem; letter-spacing: 8px; }
    .hero-cta .btn { width: 340px; height: 86px; font-size: 1.2rem; }
}

@media (max-width: 1024px) {
    header { padding: 12px 24px; }
    .menu { gap: 1rem; }
    .hero-cta .btn { width: 260px; height: 68px; font-size: 1rem; }
    .hero-cta { gap: 22px; }
}

@media (max-width: 768px) {
    header {
        padding: 10px 16px;
        justify-content: space-between;
    }
    .header-logo-img { height: 44px; }
    .mobile-menu-toggle { display: block; }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(10, 17, 24, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.2rem;
        transition: right 0.3s ease;
        z-index: 15;
    }

    .menu.active { right: 0; }
    .menu a { font-size: 1.1rem; padding: 0.7rem 1.5rem; }

    .hero-cta { gap: 18px; }
    .hero-slogan { font-size: 0.9rem; letter-spacing: 3px; }
    .hero-cta .auth-buttons { flex-direction: column; gap: 14px; }
    .hero-cta .btn {
        width: min(280px, 80vw);
        height: 64px;
        font-size: 0.95rem;
        letter-spacing: 2px;
    }
    .social-icons { gap: 1.5rem; }
}

@media (max-width: 480px) {
    .header-logo-img { height: 36px; }
    .social-icons { gap: 1.3rem; }
    .social-icon { font-size: 1.4rem; }
    .hero-slogan { font-size: 0.8rem; letter-spacing: 2px; padding: 8px 18px; }
}

/* Затемнення низу фону — щоб контент читався */
.parallax-scene::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0.35) 70%,
        rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}
