@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;800&family=Young+Serif&display=swap');

:root {
    --body-bg: #0f0f0f;
    --card-bg: #000000;
    --element-bg: #161616;
    --border-color: #222222;
    --cherry-red: #D2042D;
    --cherry-glow: rgba(210, 4, 45, 0.4);
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-dim: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

img, a {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

a { text-decoration: none; color: var(--text-main); transition: all 0.3s ease; }
a:hover { color: var(--cherry-red); }

h1, h2, h3 { font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.5px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
section { padding: 80px 0; border-bottom: 1px solid var(--border-color); }

.top-menu { background-color: var(--cherry-red); padding: 10px 0; font-size: 0.8rem; font-weight: 700; text-align: right; letter-spacing: 0.5px; }
.top-menu a { color: var(--text-main); transition: opacity 0.3s ease; }
.top-menu a:hover { color: var(--text-main); opacity: 0.7; }
.top-menu a.logout-btn:hover { background-color: var(--card-bg) !important; color: var(--text-main) !important; opacity: 1; }

.main-header { background-color: var(--element-bg); padding: 20px 0; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }

.logo { 
    font-family: 'Young Serif', serif; 
    font-size: 48px; 
    font-weight: 400; 
    color: var(--cherry-red); 
    line-height: 1;
}
.logo:hover { color: var(--text-main); } 

.mobile-menu-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 1.8rem; cursor: pointer; transition: color 0.3s ease; }
.mobile-menu-toggle:hover { color: var(--cherry-red); }

.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { 
    position: relative; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 1px; 
    color: var(--text-muted); 
    padding-bottom: 5px; 
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--cherry-red);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.nav-links a:hover { color: var(--text-main); }
.nav-links a:hover::after { width: 100%; }

.hero { background: linear-gradient(rgba(15, 15, 15, 0.5), rgba(15, 15, 15, 0.65)), url('../images/pryvat-hero.webp') center/cover; text-align: center; padding: 120px 0; }
.hero h1 { font-size: 4rem; color: var(--cherry-red); letter-spacing: -1px; margin-bottom: 10px; font-family: 'Young Serif', serif; font-weight: 400; }
.hero p { font-size: 1.2rem; color: var(--text-muted); font-weight: 300; }

.filters-bar { background-color: var(--element-bg); padding: 20px; border-radius: 12px; display: flex; gap: 15px; margin-top: -40px; position: relative; z-index: 10; border: 1px solid var(--border-color); box-shadow: 0 15px 40px rgba(0,0,0,0.8); }
.filters-bar input, .filters-bar select, .btn { padding: 15px 20px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--card-bg); color: var(--text-main); flex: 1; font-family: inherit; font-size: 0.95rem; transition: border-color 0.3s ease; }
.filters-bar input:focus, .filters-bar select:focus { outline: none; border-color: var(--cherry-red); }

.btn { 
    background-color: var(--cherry-red); 
    color: var(--text-main); 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    border: 1px solid transparent; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.9rem; 
}
.btn:hover { 
    background-color: var(--text-main); 
    color: var(--card-bg); 
    border-color: var(--text-main);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 35px; margin-top: 40px; }
.card { background-color: var(--card-bg); border-radius: 16px; overflow: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.card:hover { transform: translateY(-8px); border-color: var(--cherry-red); box-shadow: 0 20px 40px var(--cherry-glow); }
.card-image { width: 100%; height: 400px; background-size: cover; background-position: center; position: relative; box-shadow: inset 0 -60px 40px -20px var(--card-bg); }

.badge { position: absolute; top: 20px; right: 20px; background-color: var(--text-main); color: var(--card-bg); padding: 6px 14px; border-radius: 30px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2); }

.card-body { padding: 0 25px 30px 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.6rem; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: 5px; }
.card-age { font-size: 1.1rem; color: var(--cherry-red); font-weight: 700; }
.card-location { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.card-tagline { font-size: 1rem; margin-bottom: 25px; color: var(--text-muted); flex-grow: 1; }
.card-interests { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.interest-tag { background: transparent; border: 1px solid rgba(210, 4, 45, 0.3); color: var(--cherry-red); padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; }

.editorial-wrap { padding-top: 60px; padding-bottom: 100px; }
.editorial-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 40px; }
.editorial-header h1 { font-size: 3.5rem; margin: 0; line-height: 1.1; color: var(--text-main); font-family: 'Young Serif', serif; font-weight: 400; }
.editorial-meta { color: var(--text-muted); font-size: 1rem; margin-top: 15px; display: flex; gap: 20px; align-items: center; font-weight: 500; }
.editorial-meta .status { color: var(--cherry-red); font-weight: 800; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px; border: 1px solid var(--cherry-red); padding: 5px 10px; border-radius: 4px; }

.editorial-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.editorial-gallery .gal-wrapper { position: relative; width: 100%; aspect-ratio: 3/4; border-radius: 8px; border: 1px solid var(--border-color); transition: transform 0.4s ease, border-color 0.4s ease; cursor: pointer; overflow: hidden; }
.editorial-gallery .gal-wrapper:hover { transform: translateY(-5px); border-color: var(--cherry-red); }
.gal-image { width: 100%; height: 100%; background-size: cover; background-position: center; }

.protected-media { position: relative; width: 100%; height: 100%; }
.protected-media::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 10; background: transparent; }
.blur-gate { filter: blur(15px) grayscale(50%); opacity: 0.6; transform: scale(1.1); }

.editorial-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; }
.editorial-section-title { font-size: 1rem; color: var(--text-main); text-transform: uppercase; letter-spacing: 3px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 25px; font-weight: 800; }
.editorial-quote { font-size: 1.6rem; color: var(--text-main); margin-bottom: 30px; border-left: 4px solid var(--cherry-red); padding-left: 20px; line-height: 1.4; }
.editorial-about p { font-size: 1.1rem; color: var(--text-muted); font-weight: 300; margin-bottom: 20px; line-height: 1.8; }

.editorial-media-box { background: var(--element-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 25px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.editorial-media-box video, .editorial-media-box iframe { width: 100%; height: 350px; border-radius: 8px; border: none; object-fit: cover; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* --- MESSAGE MODAL STYLES --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--element-bg); border: 1px solid var(--border-color);
    border-radius: 12px; width: 100%; max-width: 500px; padding: 40px;
    position: relative; transform: translateY(20px); transition: all 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
    position: absolute; top: 20px; right: 20px; background: none; border: none;
    color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: color 0.3s;
}
.modal-close:hover { color: var(--cherry-red); }

.feedback-wrapper { position: relative; height: 150px; max-width: 800px; margin: 0 auto; }
.testimonial { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; visibility: hidden; transition: opacity 1s ease-in-out, visibility 1s ease-in-out; text-align: center; }
.testimonial.active { opacity: 1; visibility: visible; z-index: 2; }
.testimonial p { font-size: 1.4rem; color: var(--text-muted); margin-bottom: 20px; font-weight: 300; }
.testimonial h4 { color: var(--cherry-red); text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; }

.main-footer { background-color: var(--element-bg); border-top: 1px solid var(--border-color); padding: 80px 0 30px 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-col h3 { color: var(--text-main); margin-bottom: 25px; font-size: 1.1rem; }
.footer-col p, .footer-col ul li a { color: var(--text-muted); font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--cherry-red); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--border-color); color: var(--text-dim); font-size: 0.85rem; }

@media (max-width: 768px) {
    /* MOBILE HEADER OVERHAUL */
    .mobile-menu-toggle { display: block; }
    
    .nav-links { 
        width: 100%; 
        flex-direction: column; 
        gap: 0; /* Changed from 20px to 0 for seamless borders */
        background: var(--element-bg); 
        padding: 0; 
        max-height: 0; 
        overflow: hidden; 
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease; 
        margin-top: 0; 
    }
    
    .nav-links.active { 
        max-height: 450px; 
        opacity: 1; 
        padding: 0; 
        margin-top: 15px; 
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color); 
    }

    /* THE NEW MOBILE SEPARATORS */
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 18px 20px;
        width: 100%;
        text-align: center;
    }

    /* Hide the desktop hover underline on mobile blocks */
    .nav-links a::after {
        display: none;
    }

    .hero { padding: 80px 0; }
    .hero h1 { font-size: 2.5rem; }
    .filters-bar { flex-direction: column; margin-top: 20px; }
    .card-grid { grid-template-columns: 1fr; }
    .editorial-wrap { padding-top: 40px; padding-bottom: 60px; }
    .editorial-header { flex-direction: column; align-items: flex-start; gap: 15px; border-bottom: none; margin-bottom: 20px; }
    .editorial-header h1 { font-size: 2.2rem; }
    .editorial-meta { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 10px; }
    .editorial-header > div:last-child { width: 100%; margin-top: 10px; }
    .editorial-header .btn { width: 100%; }
    .editorial-gallery { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; } 
    .editorial-body { grid-template-columns: 1fr; gap: 40px; }
    .editorial-media-box { padding: 15px; }
    .editorial-media-box video, .editorial-media-box iframe { height: 250px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .feedback-wrapper { height: 220px; }
    .modal-content { padding: 25px; margin: 20px; }
}