/*
Theme Name: Vjugina Theme
Author: Voronin Studio
Author URI: mailto:s@voronin.ee
Version: 1.1
Text Domain: vjugina
*/

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0d0d0d;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.vjugina-content {
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #c9a84c;
    opacity: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

hr {
    border: none;
    border-top: 1px solid #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.3;
    color: #c9a84c;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 13px; }

@media (max-width: 768px) {
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
    h3 { font-size: 16px; }
    h4 { font-size: 14px; }
    h5 { font-size: 13px; }
}

/* ============================================================
   HEADER
   ============================================================ */

#vjugina-header {
    border-bottom: 1px solid #1e1e1e;
    background: #0d0d0d;
    position: sticky;
    top: 0;
    z-index: 100;
}

.vjugina-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.vjugina-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Desktop nav */
.vjugina-nav-desktop {
    margin-left: auto;
}

.vjugina-nav-desktop .vjugina-nav-menu,
.vjugina-nav-desktop ul {
    display: flex;
    gap: 24px;
    list-style: none;
}

.vjugina-nav-desktop li a {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vjugina-nav-desktop li.current-menu-item > a,
.vjugina-nav-desktop li.current_page_item > a {
    border-bottom: 1px solid currentColor;
}

/* Mobile toggle button */
.vjugina-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.vjugina-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #e0e0e0;
    transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav */
.vjugina-nav-mobile {
    border-top: 1px solid #1a1a1a;
    padding: 12px 20px 16px;
}

.vjugina-nav-mobile .vjugina-nav-menu-mobile,
.vjugina-nav-mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vjugina-nav-mobile li a {
    font-size: 15px;
}

/* ============================================================
   CONTENT
   ============================================================ */

.vjugina-content {
    min-height: 60vh;
}

.vjugina-page,
.vjugina-single,
.vjugina-movie,
.vjugina-index,
.vjugina-404 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.vjugina-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    min-height: 88vh;
}

.vjugina-home h1 {
    padding: 20px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777;
}

/* Скрываем слайдер до инициализации Slick */
.top-slider:not(.slick-initialized) {
    overflow: hidden;
    height: 120px;
    display: flex;
}

.top-slider:not(.slick-initialized) .top-slider-element ~ .top-slider-element {
    display: none;
}

.vjugina-page-title,
.vjugina-single-title,
.vjugina-movie-title {
    font-size: 34px;
    font-weight: 400;
    margin-bottom: 28px;
    letter-spacing: 0.01em;
}

.vjugina-page-body,
.vjugina-single-body,
.vjugina-movie-body {
    font-size: 16px;
    line-height: 1.75;
}

.vjugina-page-body p,
.vjugina-single-body p,
.vjugina-movie-body p {
    margin-bottom: 16px;
}

.vjugina-single-thumbnail,
.vjugina-movie-thumbnail {
    margin-bottom: 28px;
}

.vjugina-movie-meta {
    margin-top: 32px;
    border-top: 1px solid #1e1e1e;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #999;
}

.vjugina-movie-meta-label {
    font-weight: 500;
    color: #666;
}

.vjugina-movie-meta-label::after {
    content: ': ';
}

/* ============================================================
   ARCHIVE
   ============================================================ */

archives hr,
awards hr,
films hr {
    margin-bottom: 30px;
}

archives archive arch_title {
    color: #c9a84c;
}

films film_title h3 {
    color: #c9a84c;
    margin-bottom: 12px;
}

.film-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

films film:hover film_title h3,
archives archive:hover arch_title {
    opacity: 0.6;
}

/* ============================================================
   INTERVIEWS
   ============================================================ */

.vjugina-interviews {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
}

.vjugina-interview-item {
    border-top: 1px solid #1e1e1e;
    padding-top: 16px;
}

.vjugina-interview-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 8px;
}

.vjugina-interview-title a:hover {
    color: #c9a84c;
    opacity: 1;
}

.vjugina-interview-excerpt {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */

#vjugina-footer {
    border-top: 1px solid #1e1e1e;
    margin-top: 60px;
}

.vjugina-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.vjugina-footer-copy {
    font-size: 12px;
    letter-spacing: 0.05em;
    color: #e0e0e0;
}

.vjugina-social {
    display: flex;
    gap: 16px;
    list-style: none;
}

.vjugina-social a {
    font-size: 20px;
    color: #666;
    transition: color 0.2s;
}

.vjugina-social a[href*="imdb"] {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 20px;
}

.vjugina-social a:hover {
    color: #c9a84c;
    opacity: 1;
}

/* ============================================================
   WORDPRESS ADMIN BAR OFFSET
   ============================================================ */

.admin-bar #vjugina-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar #vjugina-header {
        top: 46px;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .vjugina-nav-desktop {
        display: none;
    }

    .vjugina-mobile-toggle {
        display: flex;
    }

    .vjugina-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Typography */
    body {
        font-size: 14px;
    }

    .vjugina-logo {
        font-size: 15px;
    }

    .vjugina-home h1 {
        font-size: 11px;
    }

    .vjugina-page-body,
    .vjugina-single-body,
    .vjugina-movie-body {
        font-size: 14px;
    }

    .vjugina-page-title,
    .vjugina-single-title,
    .vjugina-movie-title {
        font-size: 26px;
    }

    /* Content padding */
    .vjugina-page,
    .vjugina-single,
    .vjugina-movie,
    .vjugina-home,
    .vjugina-404 {
        padding: 20px 16px;
    }

    /* Filmography */
    films film {
        flex-direction: column;
    }

    films film film_image {
        width: 100%;
        margin-right: 0;
    }

    /* Awards */
    awards award {
        flex-direction: column;
    }

    awards award film_image {
        width: 100%;
        margin-right: 0;
    }

    /* Archive */
    archives archive {
        flex-direction: column;
    }

    archives archive arch_image {
        width: 100%;
        margin-right: 0;
    }

    /* Interviews grid */
    .vjugina-interviews {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .vjugina-footer-copy {
        font-size: 11px;
    }
}
