/* Shared Components CSS - Header and Footer */
/* This file provides consistent styling for header/footer across all pages */

/* Header Base Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand a {
    display: inline-block;
    text-decoration: none;
}

.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    transition: all 0.3s ease;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #10b981;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.dropdown-item i {
    font-size: 18px;
    color: #10b981;
    width: 20px;
    text-align: center;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-title {
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.dropdown-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

.cta-button {
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #0066ff 100%);
    color: #0a0a0f;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.nav-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.nav-btn-secondary:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Footer Base Styles */
.footer {
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-section ul li a {
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid;
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-content p {
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.social-link:hover {
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        gap: 16px;
        align-items: center; /* Center align menu items */
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-container {
        padding: 12px 20px;
    }

    /* Mobile Dropdown Styles */
    .nav-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: auto; /* Shrink to content for centering */
        justify-content: center; /* Center text and icon */
        gap: 6px;
        padding: 12px 0;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        border-radius: 8px;
        margin-top: 8px;
        padding: 8px;
        min-width: auto;
        box-shadow: none;
        display: none; /* Hide by default on mobile */
    }

    /* Show dropdown when active */
    .dropdown-menu.active {
        display: block;
    }

    /* Rotate chevron icon when dropdown is active */
    .dropdown-toggle.active i {
        transform: rotate(180deg);
    }

    .dropdown-item {
        padding: 10px 12px;
        margin-bottom: 2px;
    }

    .dropdown-item:hover {
        transform: none;
    }

    .logo {
        height: 46px;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Ensure hover styles don't reposition dropdowns on mobile */
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:hover .dropdown-menu.active {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 15px;
    }

    .nav-menu {
        padding: 15px;
    }

    .footer {
        padding: 40px 0 15px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
.nav-link:focus,
.cta-button:focus,
.nav-toggle:focus,
.footer-section ul li a:focus,
.social-link:focus {
    outline: 2px solid;
    outline-offset: 2px;
} 