/* ==========================================================================
   RED VIXEN TANYA - MODERN GLASSMORPHIC DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES & TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --color-bg-base: #180914;
    --color-rose-light: #fbcfe8;
    --color-rose-mid: #f472b6;
    --color-rose-deep: #be123c;
    --color-rose-dark: #881337;
    --color-text-dark: #2d1325;
    --color-text-light: #fff5f8;
    --color-text-muted: #e2b6c7;
    
    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.42);
    --glass-bg-hover: rgba(255, 255, 255, 0.65);
    --glass-card-bg: rgba(255, 240, 246, 0.28);
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-border-glow: rgba(251, 207, 232, 0.85);
    --glass-shadow: 0 12px 40px rgba(136, 19, 55, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    
    /* Typography */
    --font-cursive: 'Great Vibes', 'Alex Brush', cursive;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-light);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   3. BACKGROUND ARTWORK & PARTICLES
   -------------------------------------------------------------------------- */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.bg-art-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.bg-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 9, 20, 0.5);
}

.bg-glow-orb {
    display: none; /* Временно отключено */
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

.glow-1 {
    display: none; /* Временно отключено */
    top: 15%;
    left: 20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #f472b6, #be123c);
}

.glow-2 {
    display: none; /* Временно отключено */
    bottom: 10%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #fbcfe8, #9d174d);
    animation-delay: -4s;
}

.glow-3 {
    display: none; /* Временно отключено */
    top: 60%;
    left: 45%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #fda4af, #881337);
    animation-delay: -8s;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9) translate(0, 0); opacity: 0.45; }
    50% { transform: scale(1.15) translate(20px, -20px); opacity: 0.65; }
    100% { transform: scale(1) translate(-15px, 15px); opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   4. MAIN CONTAINER & HERO LAYOUT
   -------------------------------------------------------------------------- */
.main-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    padding: 3rem 1.5rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

/* Hero Title Header */
.hero-header {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.hero-title {
    font-family: var(--font-cursive);
    font-size: clamp(3.2rem, 8vw, 4.8rem);
    line-height: 1.1;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(136, 19, 55, 0.4), 0 0 40px rgba(251, 207, 232, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    letter-spacing: 0.5px;
}

.title-line-1 {
    display: block;
}

.title-line-2 {
    display: block;
    margin-top: -0.15em;
}

/* --------------------------------------------------------------------------
   5. GLASSMORPHIC PILL BUTTONS NAVIGATION
   -------------------------------------------------------------------------- */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.glass-pill-btn {
    position: relative;
    width: 100%;
    height: 56px;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    box-shadow: 0 8px 30px rgba(136, 19, 55, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: #2D2529;
    font-family: 'Lato', var(--font-sans);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-pill-btn:hover,
.glass-pill-btn:focus-visible {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(244, 114, 182, 0.28), inset 0 0 12px rgba(255, 255, 255, 0.9);
}

.glass-pill-btn:active {
    transform: translateY(0);
}

.glass-pill-btn.active-warning {
    background: #FFFFFF;
    color: #2D2529;
    border: 2px solid rgba(220, 150, 170, 0.8);
    box-shadow: 0 10px 30px rgba(220, 150, 170, 0.35);
    height: auto;
    min-height: 56px;
    padding: 0.65rem 1rem;
}

.glass-pill-btn.active-warning:hover {
    background: #FFFFFF;
    border-color: rgba(220, 150, 170, 1);
    transform: translateY(-1px);
}

.btn-text {
    position: relative;
    z-index: 2;
    display: block;
    color: #2D2529;
    font-family: 'Lato', var(--font-sans);
    font-weight: 300;
    font-size: 1.15rem;
}

.btn-sparkle {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
    transition: 0.75s ease;
}

.glass-pill-btn:hover .btn-sparkle {
    left: 140%;
}

/* --------------------------------------------------------------------------
   6. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    margin-top: auto;
    padding-bottom: 0.5rem;
}

.footer-link-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

.footer-link-btn:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(251, 207, 232, 0.8);
}

/* --------------------------------------------------------------------------
   7. MODALS & GLASS OVERLAYS
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background: rgba(12, 2, 9, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.25rem 2rem;
    border-radius: 24px;
    background: rgba(36, 12, 28, 0.75);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1.5px solid rgba(251, 207, 232, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: var(--color-text-light);
    transform: scale(1);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.hidden .modal-card {
    transform: scale(0.92);
}

.modal-large {
    max-width: 720px;
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background: rgba(244, 114, 182, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.modal-subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-rose-light);
    margin-bottom: 0.25rem;
}

.modal-title {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
}

.modal-title-cursive {
    font-family: var(--font-cursive);
    font-size: 3rem;
    font-weight: 400;
    color: #ffffff;
    margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   8. AGE VERIFICATION MODAL STYLES
   -------------------------------------------------------------------------- */
.age-card {
    text-align: center;
}

.age-badge {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-rose-deep), var(--color-rose-dark));
    border: 2px solid var(--color-rose-light);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.4);
}

.modal-description {
    font-size: 0.975rem;
    color: var(--color-text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.age-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.btn-primary-glow {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f472b6, #be123c);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(190, 18, 60, 0.4);
    transition: var(--transition-smooth);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(244, 114, 182, 0.6);
    background: linear-gradient(135deg, #fbcfe8, #e11d48);
}

.btn-secondary-outline {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.age-footnote {
    margin-top: 1.25rem;
    font-size: 0.775rem;
    color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   9. VISUAL DIARY MODAL STYLES
   -------------------------------------------------------------------------- */
.diary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.diary-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.diary-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 207, 232, 0.5);
    box-shadow: 0 10px 25px rgba(244, 114, 182, 0.2);
}

.diary-img-frame {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.diary-svg-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.diary-card:hover .diary-svg-art {
    transform: scale(1.06);
}

.diary-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(12, 2, 9, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--color-rose-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.diary-card-body {
    padding: 1.15rem;
    text-align: left;
}

.diary-card-body h3 {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.diary-date {
    display: block;
    font-size: 0.775rem;
    color: var(--color-rose-light);
    margin-bottom: 0.6rem;
}

.diary-card-body p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. PRIVATE STORIES MODAL STYLES
   -------------------------------------------------------------------------- */
.ambient-audio-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.audio-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(251, 207, 232, 0.3);
    border-radius: 9999px;
    padding: 6px 16px;
    color: var(--color-rose-light);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.audio-toggle-btn:hover,
.audio-toggle-btn.playing {
    background: rgba(244, 114, 182, 0.25);
    border-color: var(--color-rose-light);
    color: #ffffff;
}

.story-reader {
    margin-top: 1.25rem;
}

.story-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
}

.story-tab {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.story-tab.active {
    background: rgba(244, 114, 182, 0.2);
    color: #ffffff;
    font-weight: 500;
}

.story-chapter {
    text-align: left;
    padding: 0.5rem 0;
}

.story-chapter.hidden {
    display: none;
}

.chapter-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--color-rose-light);
    margin-bottom: 1rem;
    font-weight: 400;
}

.story-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.8;
    color: #fce7f3;
    margin-bottom: 1.15rem;
}

.story-quote {
    border-left: 3px solid var(--color-rose-mid);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-rose-light);
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   11. TANYA'S LIFESTYLE MODAL STYLES
   -------------------------------------------------------------------------- */
.lifestyle-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lifestyle-bio-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
}

.avatar-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #fbcfe8, #be123c);
    flex-shrink: 0;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #2d1024;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initials {
    font-family: var(--font-cursive);
    font-size: 1.6rem;
    color: var(--color-rose-light);
}

.bio-info h3 {
    font-size: 1.2rem;
    color: #ffffff;
}

.bio-tagline {
    font-size: 0.85rem;
    color: var(--color-rose-light);
    margin-bottom: 0.35rem;
}

.bio-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    text-align: left;
}

.lifestyle-section {
    background: rgba(255, 255, 255, 0.04);
    padding: 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lifestyle-section h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.85rem;
}

.lifestyle-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lifestyle-list li {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.socials-hub h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

.social-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.social-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 10px 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: rgba(244, 114, 182, 0.3);
    border-color: var(--color-rose-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 114, 182, 0.3);
}

/* --------------------------------------------------------------------------
   12. TERMS & PRIVACY STYLES
   -------------------------------------------------------------------------- */
.terms-content {
    text-align: left;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.terms-content h3 {
    font-size: 1rem;
    color: #ffffff;
    margin: 1rem 0 0.35rem 0;
}

.terms-content h3:first-child {
    margin-top: 0;
}

.modal-footer {
    margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   13. MEDIA QUERIES & RESPONSIVE SCALING
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .main-wrapper {
        padding: 2rem 1rem 1.5rem 1.5rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .glass-pill-btn {
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
    }

    .modal-card {
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
    }

    .modal-title-cursive {
        font-size: 2.4rem;
    }
}
