/* Shared Header Styles - Desktop Focused */
/* Mobile styles are in mobile_responsive_redesign.css */

:root {
    --primary: #1e40af;
    --secondary: #f59e0b;
    --accent: #10b981;
    --dark: #1f2937;
    --light: #f8fafc;
    --gray: #6b7280;
}

/* Header - Desktop */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: white;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center;
    padding: 0 0 0 10px;
    gap: 30px !important;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-small {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-small:hover {
    transform: scale(1.05);
}

/* Search Container - Desktop */
.header .search-container,
body .header .search-container,
.header-content .search-container,
body .header-content .search-container {
    width: 500px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    justify-self: end !important;
    margin-left: auto !important;
    max-width: 500px !important;
    min-width: 500px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    height: auto !important;
}

@media (max-width: 1600px) {
    .header .search-container,
    body .header .search-container,
    .header-content .search-container,
    body .header-content .search-container {
        width: 450px !important;
        max-width: 450px !important;
        min-width: 450px !important;
    }
}

@media (max-width: 1400px) {
    .header .search-container,
    body .header .search-container,
    .header-content .search-container,
    body .header-content .search-container {
        width: 400px !important;
        max-width: 400px !important;
        min-width: 400px !important;
    }
}

@media (max-width: 1200px) {
    .header .search-container,
    body .header .search-container,
    .header-content .search-container,
    body .header-content .search-container {
        width: 360px !important;
        max-width: 360px !important;
        min-width: 360px !important;
    }
}

@media (max-width: 992px) {
    .header .search-container,
    body .header .search-container,
    .header-content .search-container,
    body .header-content .search-container {
        width: 320px !important;
        max-width: 320px !important;
        min-width: 320px !important;
    }
}

/* Search Box - Desktop */
.search-box,
.header .search-box,
body .header .search-box,
.header-content .search-box,
body .header-content .search-box {
    background: #ffffff !important;
    background-color: #ffffff !important;
    -webkit-background-color: #ffffff !important;
    -moz-background-color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 50px !important;
    overflow: hidden !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    transition: box-shadow 0.3s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.search-box:focus-within {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.search-input {
    flex: 1;
    border: none;
    padding: 0 18px;
    font-size: 0.95rem;
    background: transparent;
    outline: none;
    color: #1f2937;
    font-family: 'Inter', sans-serif;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.search-btn:hover {
    background: #1e3a8a;
}

.search-btn:active {
    background: #1e3a8a;
    transform: scale(0.98);
}

.search-btn i {
    font-size: 1rem;
}

/* Mobile Menu Toggle - Hidden on Desktop */
.mobile-menu-toggle,
#mobileMenuToggleBtn {
    display: none; /* Hidden by default, mobile_responsive_redesign.css will show on mobile */
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.mobile-menu {
    display: none;
}

/* Header Navigation (Desktop) */
.header-nav {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px !important;
    padding-left: 20px !important;
    min-width: fit-content !important;
    flex-shrink: 0 !important;
    max-width: none !important;
}

.nav-buttons {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem !important;
    position: relative;
    margin: 0 7px !important;
}

.nav-btn::before {
    content: attr(data-label);
    position: absolute;
    top: -23px !important;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem !important;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 5px !important;
    border-radius: 4px;
    pointer-events: none;
    z-index: 1000;
}

.nav-btn:hover::before {
    opacity: 1;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-btn.logout-btn {
    background: rgba(220, 53, 69, 0.8);
    border-color: rgba(220, 53, 69, 0.9);
}

.nav-btn.logout-btn:hover {
    background: rgba(220, 53, 69, 1);
}

.nav-btn.login-btn,
.nav-btn.register-btn {
    width: auto;
    padding: 7px 14px !important;
    border-radius: 18px !important;
    font-size: 0.85rem !important;
    font-weight: 500;
}

.nav-btn.login-btn {
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn.register-btn {
    background: var(--primary);
    border-color: var(--primary);
}

.nav-btn.register-btn:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
}

/* Navigation Badges */
.nav-badge {
    position: absolute;
    top: -7px !important;
    right: -7px !important;
    min-width: 16px !important;
    height: 16px !important;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 50%;
    font-size: 0.6rem !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.vault-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: pulse-green 2s infinite;
}

.watchlist-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    animation: pulse-orange 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5); }
    100% { transform: scale(1); box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3); }
}

@keyframes pulse-orange {
    0% { transform: scale(1); box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5); }
    100% { transform: scale(1); box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3); }
}

.nav-btn:hover .nav-badge {
    transform: scale(1.2);
    animation: none;
}

/* Disabled Navigation Buttons */
.disabled-nav-btn {
    opacity: 0.4;
    cursor: not-allowed;
}

.disabled-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: none;
    box-shadow: none;
}

/* Mobile Nav Badges */
.mobile-nav-btn .nav-badge {
    position: static;
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.mobile-nav-btn .vault-badge {
    background: linear-gradient(135deg, #10b981, #059669);
}

.mobile-nav-btn .watchlist-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Import Mobile Responsive Redesign - Must load after this file */
/* Note: For better mobile browser compatibility, also include as direct <link> tag */
@import url('mobile_responsive_redesign.css?v=2.0');
