/* 
 * Premium Header Styles for Verslolygis
 * Uses modern CSS variables, glassmorphism, and micro-animations.
 */

:root {
    --v-color-primary: #b50e35; /* The burgundy from the design */
    --v-color-text: #2d3748;
    --v-color-border: #e2e8f0;
    --v-color-bg: rgba(255, 255, 255, 0.9);
    
    --v-font-logo: 'Playfair Display', serif;
    --v-font-nav: 'Inter', 'Plus Jakarta Sans', sans-serif;
    
    --v-header-height: 80px;
    --v-transition-speed: 0.3s;
}

/* Base Header */
.verslolygis-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--v-header-height);
    background: var(--v-color-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    transition: box-shadow var(--v-transition-speed) ease;
}

/* Static vs Sticky Positioning */
.verslolygis-header.is-static {
    position: relative;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* WP Admin Bar Fix */
body.admin-bar .verslolygis-header.is-sticky {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .verslolygis-header.is-sticky {
        top: 46px;
    }
}

.verslolygis-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.v-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.v-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo */
.v-logo a {
    font-family: var(--v-font-logo);
    font-size: 1.75rem;
    color: var(--v-color-primary);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Navigation */
.v-nav {
    display: flex;
    align-items: center;
}

.v-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.v-menu li {
    position: relative;
}

.v-menu a {
    font-family: var(--v-font-nav);
    font-size: 0.95rem;
    color: var(--v-color-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--v-transition-speed) ease;
}

.v-menu a:hover {
    color: var(--v-color-primary);
}

/* Micro-interaction: Expanding underline on hover */
.v-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--v-color-primary);
    transition: width var(--v-transition-speed) ease;
}

.v-menu a:hover::after {
    width: 100%;
}

/* Sub-menus */
.v-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--v-transition-speed) ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.v-menu .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.v-menu .sub-menu li {
    padding: 0;
}

.v-menu .sub-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--v-color-text);
    font-size: 0.9rem;
}

.v-menu .sub-menu a:hover {
    background: rgba(181, 14, 53, 0.05);
    color: var(--v-color-primary);
}

.v-menu .sub-menu a::after {
    display: none;
}

/* Actions (Button + Lang) */
.v-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* CTA Button */
.v-btn {
    font-family: var(--v-font-nav);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    transition: all var(--v-transition-speed) ease;
    cursor: pointer;
}

.v-btn-outline {
    color: var(--v-color-cta-bg);
    background: transparent;
    border: 1.5px solid var(--v-color-cta-bg);
}

.v-btn-outline:hover {
    background: var(--v-color-cta-bg);
    color: var(--v-color-cta-text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* Language Switcher */
.v-lang-switcher {
    font-family: var(--v-font-nav);
    font-size: 0.85rem;
    font-weight: 600;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.v-lang-switcher .active {
    color: var(--v-color-text);
}

.v-lang-switcher .sep {
    font-weight: 400;
    color: #cbd5e0;
}

/* Mobile Toggle - Hidden by default */
.v-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.v-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--v-color-text);
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 992px) {
    .v-nav {
        display: none;
    }
    .v-mobile-toggle {
        display: flex;
    }
    /* Hide CTA button on mobile main header */
    .v-actions .v-btn {
        display: none;
    }
}

/* -------------------------------------
 * Mobile Off-Canvas Sidebar
 * ------------------------------------- */
.v-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v-mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.v-mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-sizing: border-box;
}

.v-mobile-sidebar.is-open {
    right: 0;
}

.v-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.v-sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.v-sidebar-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #333;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.v-sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

.v-menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
}

.v-menu-mobile li {
    margin-bottom: 15px;
}

.v-menu-mobile a {
    color: #2d3748;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
}

.v-menu-mobile .sub-menu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
}

.v-menu-mobile .sub-menu a {
    font-size: 1.05rem;
    font-weight: 400;
    color: #4a5568;
    margin-bottom: 10px;
}

.v-sidebar-footer {
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
}

.v-sidebar-btn {
    display: block;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.v-sidebar-contact p {
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.v-sidebar-contact a {
    color: var(--v-color-text, #333);
    text-decoration: none;
}
