/**
 * Header Suspended (G1 Style)
 * Estilo minimalista com fundo colorido e menu lateral
 */

/* ============================================
   HEADER BAR
   ============================================ */
.header-suspended {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-suspended-bar {
    background: var(--evte-primary, #0056b3);
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.header-suspended-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Menu Toggle */
.suspended-menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.suspended-menu-toggle:hover {
    opacity: 0.8;
}

.suspended-menu-toggle svg {
    stroke: #fff;
    width: 22px;
    height: 22px;
}

.suspended-menu-toggle .menu-label {
    display: inline;
}

/* Logo Center */
.suspended-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.suspended-logo .site-logo {
    margin: 0;
    line-height: 1;
}

.suspended-logo .site-logo a {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.suspended-logo .site-logo img {
    max-height: 36px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes logo white */
}

/* Search Toggle */
.suspended-search-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    transition: background 0.2s;
    min-width: 140px;
    justify-content: center;
}

.suspended-search-toggle:hover {
    background: rgba(0, 0, 0, 0.3);
}

.suspended-search-toggle svg {
    stroke: #fff;
    width: 18px;
    height: 18px;
}

.suspended-search-toggle .search-label {
    display: inline;
}

/* ============================================
   MENU PANEL (Slide from Left)
   ============================================ */
.suspended-menu-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 10001;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.15);
}

.suspended-menu-panel.active {
    left: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--evte-primary, #0056b3);
    color: #fff;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.panel-close:hover {
    opacity: 0.8;
}

.panel-close svg {
    stroke: #fff;
}

/* Menu Items */
.panel-nav {
    padding: 0;
}

.panel-nav ul,
.suspended-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
}

.panel-nav li,
.suspended-menu li {
    border-bottom: 1px solid #eee;
    width: 100% !important;
    display: block !important;
    float: none !important;
}

.panel-nav li:last-child,
.suspended-menu li:last-child {
    border-bottom: none;
}

.panel-nav > ul > li > a,
.suspended-menu > li > a {
    display: block !important;
    padding: 16px 20px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-nav > ul > li > a:hover,
.suspended-menu > li > a:hover {
    background: #f8f9fa;
    color: var(--evte-primary, #0056b3);
}

.panel-nav > ul > li.current-menu-item > a,
.suspended-menu > li.current-menu-item > a {
    color: var(--evte-primary, #0056b3);
    font-weight: 600;
}

/* Submenu */
.panel-nav li ul,
.suspended-menu li ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f8f9fa;
    display: none !important;
}

.panel-nav li.submenu-open ul,
.suspended-menu li.submenu-open ul {
    display: block !important;
}

.panel-nav li ul li a,
.suspended-menu li ul li a {
    display: block !important;
    padding: 12px 20px 12px 35px;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.2s, color 0.2s;
}

.panel-nav li ul li:last-child a,
.suspended-menu li ul li:last-child a {
    border-bottom: none;
}

.panel-nav li ul li a:hover,
.suspended-menu li ul li a:hover {
    background: #eee;
    color: var(--evte-primary, #0056b3);
}

/* ============================================
   SEARCH PANEL (Slide from Right)
   ============================================ */
.suspended-search-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: auto;
    background: #fff;
    z-index: 10001;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
}

.suspended-search-panel.active {
    right: 0;
}

.suspended-search-form {
    display: flex;
    padding: 20px;
    gap: 10px;
}

.suspended-search-form input[type="search"] {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

.suspended-search-form input[type="search"]:focus {
    border-color: var(--evte-primary, #0056b3);
}

.suspended-search-form input[type="search"]::placeholder {
    color: #999;
}

.suspended-search-form button {
    background: var(--evte-primary, #0056b3);
    border: none;
    padding: 15px 20px;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.suspended-search-form button:hover {
    background: #003d80;
}

.suspended-search-form button svg {
    stroke: #fff;
}

/* ============================================
   OVERLAY
   ============================================ */
.suspended-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.suspended-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-suspended-bar .container {
        min-height: 50px;
    }
    
    .suspended-menu-toggle .menu-label,
    .suspended-search-toggle .search-label {
        display: none;
    }
    
    .suspended-logo .site-logo a {
        font-size: 22px;
    }
    
    .suspended-logo .site-logo img {
        max-height: 28px;
    }
    
    /* No mobile, search toggle is just an icon (like G1) */
    .suspended-search-toggle {
        background: none;
        padding: 10px;
        min-width: auto;
    }
    
    .suspended-search-toggle:hover {
        background: none;
        opacity: 0.8;
    }
    
    .suspended-menu-panel {
        width: 280px;
        left: -280px;
    }
    
    .suspended-search-panel {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .suspended-logo .site-logo a {
        font-size: 18px;
    }
    
    .suspended-logo .site-logo img {
        max-height: 24px;
    }
}

/* ============================================
   BODY LOCK (when panels are open)
   ============================================ */
body.panel-open {
    overflow: hidden;
}

