/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main Header Styles */
.main-header {
    background: #fff; /* White background */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* Brand/Logo Styles with Purple Gradient */
.nav-brand {
    flex: 0 0 auto;
}

.nav-brand .logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #8B5FBF, #6A3093); /* Purple gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    white-space: nowrap;
}

/* Navigation Links - Light Grey */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 2.5rem;
    background: #f8f9fa; /* Light grey background */
    padding: 0.5rem 2rem;
    border-radius: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #666; /* Medium grey text */
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-links a:hover {
    background: linear-gradient(135deg, #8B5FBF, #6A3093); /* Purple gradient on hover */
    color: white;
}

/* Navigation Actions (Right side) */
.nav-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

/* Auth Buttons - Purple Styles */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    color: #8B5FBF; /* Purple text */
    border-color: #8B5FBF; /* Purple border */
}

.btn-outline:hover {
    background: #8B5FBF; /* Solid purple on hover */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 95, 191, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #8B5FBF, #6A3093); /* Purple gradient */
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7A4FA8, #5A2D7A); /* Darker purple gradient */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 95, 191, 0.4);
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: #333; /* Dark text */
    border: 1px solid #e0e0e0;
}

.user-dropdown-btn:hover {
    background: #f8f9fa; /* Light grey on hover */
    border-color: #8B5FBF; /* Purple border on hover */
}

.user-dropdown-btn i {
    color: #666; /* Grey icons */
    transition: all 0.3s ease;
}

.user-dropdown-btn:hover i {
    color: #8B5FBF; /* Purple icons on hover */
}

.user-name {
    color: #333; /* Dark text */
    font-weight: 500;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333; /* Dark text */
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #8B5FBF, #6A3093); /* Purple gradient */
    color: white;
}

.dropdown-item i {
    color: #666; /* Grey icons */
    width: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.dropdown-item:hover i {
    color: white; /* White icons on hover */
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0.5rem 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333; /* Dark icon */
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: #8B5FBF; /* Purple on hover */
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333; /* Dark icon */
    padding: 0.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    color: #8B5FBF; /* Purple on hover */
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.mobile-nav-link {
    text-decoration: none;
    color: #333; /* Dark text */
    font-size: 1.2rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f8f9fa; /* Light grey background */
}

.mobile-nav-link:hover {
    background: linear-gradient(135deg, #8B5FBF, #6A3093); /* Purple gradient */
    color: white;
    transform: translateX(10px);
}

.mobile-user-info {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.mobile-user-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #333; /* Dark text */
    padding: 0 1.5rem;
}

.mobile-user-header i {
    color: #8B5FBF; /* Purple icon */
}

.mobile-user-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-user-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #666; /* Grey text */
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.mobile-user-link:hover {
    background: linear-gradient(135deg, #8B5FBF, #6A3093); /* Purple gradient */
    color: white;
    transform: translateX(10px);
}

.mobile-user-link i {
    color: #666; /* Grey icons */
    transition: all 0.3s ease;
}

.mobile-user-link:hover i {
    color: white; /* White icons on hover */
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
}

.mobile-auth-btn {
    text-align: center;
    padding: 1rem;
    border-radius: 25px;
    font-weight: 500;
}

.mobile-auth-btn:first-child {
    background: transparent;
    color: #8B5FBF;
    border: 2px solid #8B5FBF;
}

.mobile-auth-btn:last-child {
    background: linear-gradient(135deg, #8B5FBF, #6A3093);
    color: white;
    border: 2px solid transparent;
}

/* Main content spacing */
main {
    margin-top: 80px;
    flex: 1;
    width: 100%;
}

/* Footer Styles - Light Grey Background with Proper Column Layout */
.main-footer {
    background: #f8f9fa; /* Light grey background */
    color: #333; /* Dark text for contrast */
    padding: 3rem 0 1rem;
    margin-top: auto;
    width: 100%;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Adjusted columns to keep last two columns together */
    gap: 3rem; /* Increased gap for better spacing */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    align-items: start;
}

/* First column - Brand info */
.footer-section:first-child {
    grid-column: 1;
}

/* Second and third columns - Company and Support */
.footer-section:nth-child(2),
.footer-section:nth-child(3) {
    grid-column: auto;
}

/* Last column - Contact Info - positioned next to Support */
.footer-section:last-child {
    grid-column: 4;
}

.footer-section h3 {
    background: linear-gradient(135deg, #8B5FBF, #6A3093); /* Purple gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-section h4 {
    color: #2c3e50; /* Dark blue-grey for subheadings */
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    color: #666; /* Medium grey for text */
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    text-decoration: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.footer-section ul li a {
    color: #666; /* Medium grey for links */
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-section ul li a:hover {
    background: linear-gradient(135deg, #8B5FBF, #6A3093); /* Purple gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-left: 0.5rem;
}

.footer-section .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-section .social-links a {
    color: #666; /* Medium grey for social icons */
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: #e9ecef;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-section .social-links a:hover {
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 95, 191, 0.3);
}

.footer-section i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
    color: #666; /* Purple icons */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #dee2e6;
    color: #666; /* Medium grey text */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
        gap: 2rem;
    }
    
    .footer-section:last-child {
        grid-column: span 1;
    }
    
    .nav-links {
        gap: 1.5rem;
        padding: 0.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .navbar {
        padding: 1rem;
        justify-content: space-between;
    }
    
    .nav-brand {
        flex: 0 0 auto;
    }
    
    .menu-toggle {
        flex: 0 0 auto;
    }
    
    .nav-brand .logo {
        font-size: 1.5rem;
    }
    
    main {
        margin-top: 70px;
    }
    
    .footer-content {
        grid-template-columns: 1fr; /* 1 column on mobile */
        text-align: center;
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .footer-section .social-links {
        justify-content: center;
    }
    
    .footer-section ul li a:hover {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem;
    }
    
    .nav-brand .logo {
        font-size: 1.3rem;
    }
    
    .mobile-menu-overlay {
        padding: 1.5rem;
    }
    
    .footer-content {
        padding: 0 0.5rem;
    }
}