/* Apple-inspired navbar styling - shared across all pages */

/* Bootstrap body padding adjustment */
body {
    padding-top: 44px; /* Account for fixed navbar */
}

/* Apple-style navbar */
.navbar {
    z-index: 9999;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color, #d2d2d7);
    height: 44px;
    padding: 0;
}

[data-theme="dark"] .navbar {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: saturate(180%) blur(20px);
}

/* Hamburger styling for light theme */
.navbar-toggler {
    border: 1px solid var(--border-color, #d2d2d7) !important;
    padding: 4px 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2829, 29, 31, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28245, 245, 247, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Apple-style text */
.navbar-brand, .nav-link {
    color: var(--text-primary, #1d1d1f) !important;
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition, all 0.3s ease);
}

.navbar-brand:hover, .nav-link:hover {
    color: var(--accent-blue, #0071e3) !important;
}

/* Logo and brand alignment */
.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

/* Language picker styling */
.language-picker-integrated {
    position: relative;
    display: flex;
    align-items: center;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Language picker dropdown */
.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    min-width: 160px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 4px;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background: #f8f9fa;
}

/* Desktop alignment fix */
@media (min-width: 992px) {
    .d-flex.align-items-center {
        align-items: center !important;
    }
    
    .language-picker-integrated {
        margin-left: 1rem;
    }
}