/* 
 * Dropama Design System - Header
 * ------------------------------
 * Styles for the main site header, navigation, and logo.
 * Nav is ALWAYS an off-canvas drawer (hamburger menu).
 */

header {
    background-color: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 54px;
    flex: 0 0 auto;
}

.logo-mark {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 900;
    font-size: 24px;
    color: var(--dark);
    letter-spacing: 0;
}

.logo-accent {
    color: #ff4a16;
}

.logo-tagline {
    font-size: 10px;
    color: var(--gray);
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Header row: Logo left, Hamburger right */
.header-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 
 * Hamburger Button — always visible
 */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
}

.mobile-menu-btn.is-menu-open {
    visibility: hidden;
    pointer-events: none;
}

/* 
 * Navigation — Off-Canvas Drawer
 * Always positioned off-screen, slides in on .active
 */
nav {
    position: fixed;
    top: 0;
    right: -320px;
    left: auto;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1200;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    transition: right 0.3s ease;
    display: block;
    border-top: none;
    overflow-y: auto;
}

nav.active {
    right: 0;
}

/* Drawer Header */
nav .pds-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav .pds-sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}

nav .pds-sidebar-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav List — vertical, full-width */
nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    width: 100%;
}

nav form {
    display: block;
    margin: 0;
}

nav li {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
    display: block;
}

/* Nav Links — full-width rows */
nav a,
.nav-link-custom {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    width: 100%;
    background: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s, color 0.2s;
}

nav a:hover,
.nav-link-custom:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

/* No underline animation in drawer */
nav a::after,
.nav-link-custom::after {
    display: none;
}

/* Icon styling inside nav links */
nav i,
.nav-link-custom i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    color: var(--secondary);
}

.user-actions {
    display: flex;
    gap: 15px;
}

@media (max-width: 576px) {
    .logo-container {
        gap: 4px;
    }

    .logo {
        width: 64px;
        height: 46px;
    }

    .logo-main {
        font-size: 21px;
    }

    .logo-tagline {
        font-size: 9px;
    }
}
