/* ============================================
   BASE STYLES
   Базовые стили: reset, body, container, preloader
   ============================================ */

/* Base reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--color-bg-primary) !important;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    color-scheme: dark;
}

/* Settings page override */
body.settings-page {
    overflow: visible;
    height: auto;
    min-height: 100vh;
}

/* Subscribe page override */
body.subscribe-page {
    overflow: visible !important;
    height: 100vh !important;
    min-height: 100vh !important;
    background: var(--color-bg-primary) !important;
}

.subscribe-page {
    overflow: visible !important;
    height: 100vh !important;
    min-height: 100vh !important;
}

@media (max-width: 800px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }
}

/* Remove underline from all links */
a {
    text-decoration: none;
    color: inherit;
}

a:hover,
a:focus,
a:visited,
a:active {
    text-decoration: none;
}

/* Container */
.container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    box-sizing: border-box;
    transition: opacity 0.4s ease;
}

.preloader-active .container {
    opacity: 0;
    pointer-events: none;
}

/* Preloader */
.navorina-preloader-inner {
    padding: var(--spacing-xl) var(--spacing-3xl);
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
}

.navorina-preloader-logo {
    width: 81px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-family: var(--font-serif);
    font-style: normal;
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-xl);
    line-height: var(--line-height-tight);
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.navorina-preloader-letter {
    display: inline-block;
    opacity: 0;
    transform: translate(-12px, 6px) scale(0.92);
    color: inherit;
}

.navorina-preloader-letter.entering {
    animation: preloaderLetterIn 0.38s ease forwards;
}

.navorina-preloader-letter.exiting {
    animation: preloaderLetterOut 0.38s ease forwards;
}

@keyframes preloaderLetterIn {
    0% {
        opacity: 0;
        transform: translate(-16px, 6px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes preloaderLetterOut {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(16px, -6px) scale(0.9);
    }
}

/* Hide preloader */
.hidden {
    display: none !important;
}

.navorina-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A0A0A;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.navorina-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

