/* Header Premium Styles */

/* Top Bar Premium */
.top-bar {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    padding: 0.75rem 0 !important;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-info {
    font-size: 0.8rem;
}

.newsletter-btn .btn {
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-btn .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.social-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Navigation Premium */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1) !important;
    position: relative;
    z-index: 1000;
}

.main-header {
    position: relative;
    z-index: 1000;
}

/* Brand Logo */
.brand-logo {
    transition: all 0.3s ease;
}

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

.logo-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #2E7D32;
    padding: 3px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.brand-logo-img {
    transition: all 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.1);
}

.brand-name {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    line-height: 1.2;
    font-size: 1.1rem;
}

.brand-tagline {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Navigation Links */
.nav-link-custom {
    font-weight: 500;
    color: #495057 !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px;
    margin: 0 0.15rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.navbar-nav {
    position: relative;
    z-index: 1010;
}

.dropdown {
    position: relative;
    z-index: 1010;
}

.nav-link-custom::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #2E7D32, #1B5E20);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-custom:hover {
    color: #2E7D32 !important;
    background: rgba(46, 125, 50, 0.05);
    transform: translateY(-2px);
}

.nav-link-custom:hover::before {
    width: 80%;
}

.nav-link-custom.active {
    color: #2E7D32 !important;
    background: rgba(46, 125, 50, 0.1);
}

.nav-link-custom.active::before {
    width: 80%;
}

/* Pulse Badge */
.pulse-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Standard Dropdown (correction) */
.dropdown-menu {
    min-width: 250px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.3s ease;
    border: 1px solid rgba(46, 125, 50, 0.1);
    position: absolute;
    z-index: 1050;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    margin: 0;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
}

.dropdown-item {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin: 0.15rem 0.25rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.85rem;
}

.dropdown-item:hover {
    background: rgba(46, 125, 50, 0.05);
    border-color: rgba(46, 125, 50, 0.1);
    transform: translateX(3px);
    color: #2E7D32;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

/* Search Bar Premium */
.search-wrapper {
    position: relative;
}

.search-input-group {
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input-group:focus-within {
    border-color: #2E7D32;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
    background: #ffffff;
}

.search-input {
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.search-input:focus {
    box-shadow: none;
    outline: none;
}

.search-btn {
    border: none;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: white;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.search-btn:hover {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .navbar-brand.brand-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .brand-text {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu {
        min-width: auto;
        width: 100%;
    }
    
    .contact-info {
        display: none !important;
    }
    
    .newsletter-btn {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        padding: 0.5rem 0;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-icon i {
        font-size: 1.25rem;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-tagline {
        font-size: 0.65rem;
    }
    
    .nav-link-custom {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem !important;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Toggler */
.navbar-toggler {
    border: 2px solid #2E7D32;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.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='%232E7D32' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Accessibility */
.nav-link-custom:focus,
.dropdown-item:focus,
.search-btn:focus {
    outline: 2px solid #2E7D32;
    outline-offset: 2px;
}

/* Performance */
.main-header {
    will-change: transform;
    transform: translateZ(0);
}

/* Print Styles */
@media print {
    .top-bar,
    .navbar,
    .search-wrapper {
        display: none;
    }
}
