/*
 * Custom Styles for Header and Footer
 * Using unique class names to avoid conflicts.
 */

/* General Body Padding */
/* Adds padding to the top of the body to prevent the fixed header from overlapping content. */
body {
    padding-top: 80px; /* Adjust this value to match the height of the header */
}


/* --- Main Header Styles --- */
.unique-site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
    padding: 1rem;
    position: fixed; /* Makes the header stick to the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40; /* Ensures header is above most content but below modals */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.unique-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px; /* Corresponds to container mx-auto */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* Adjust based on your container's padding */
    padding-right: 1rem;
}

/* Logo Styles */
.unique-logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* 12px */
    text-decoration: none;
    color: #1f2937; /* gray-800 */
    transition: all 0.2s ease-in-out;
}

.unique-logo-area img, .unique-logo-area svg {
    width: 40px;
    height: 40px;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0; /* Prevents logo from shrinking */
}

/* NEW: Wrapper for logo text and slogan */
.unique-logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* NEW: Style for the main logo name */
.unique-logo-name {
    font-weight: 600;
    font-size: 1.25rem; /* 20px */
}

/* NEW: Style for the slogan */
.unique-logo-slogan {
    font-size: 0.75rem; /* 12px */
    color: #6b7280; /* gray-500 */
    font-weight: 400;
}


/* --- Navigation Styles --- */
.unique-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem; /* 24px */
}

.unique-main-nav a {
    text-decoration: none;
    color: #4b5563; /* gray-600 */
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.unique-main-nav a:hover {
    color: #4f46e5; /* indigo-600 */
}

/* --- Mobile Menu Button (Hamburger) --- */
#unique-mobile-menu-btn {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* Above the nav links */
}

#unique-mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #374151; /* gray-700 */
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}


/* --- Responsive Styles for Navigation --- */
@media (max-width: 768px) {
    #unique-mobile-menu-btn {
        display: block; /* Show the hamburger button on mobile */
    }

    .unique-logo-area img, .unique-logo-area svg {
        width: 32px;
        height: 32px;
    }

    .unique-logo-name {
        font-size: 1.1rem; /* Slightly smaller text on mobile */
    }

    /* Hide the slogan on mobile */
    .unique-logo-slogan {
        display: none;
    }

    .unique-main-nav ul {
        display: none; /* Hide the nav links by default */
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .unique-main-nav ul.unique-nav-open {
        display: flex; /* Show the nav links when the menu is open */
    }

    .unique-main-nav li {
        width: 100%;
        text-align: center;
    }

    .unique-main-nav a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    /* Animate hamburger to an 'X' */
    #unique-mobile-menu-btn.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #unique-mobile-menu-btn.is-active span:nth-child(2) {
        opacity: 0;
    }
    #unique-mobile-menu-btn.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* --- Main Footer Styles --- */
.unique-site-footer {
    background-color: #1f2937; /* gray-800 */
    color: #d1d5db; /* gray-300 */
    padding: 2rem 1rem;
    margin-top: 3rem; /* 48px */
}

.unique-footer-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.unique-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem; /* 24px */
    margin-bottom: 1rem;
}

.unique-footer-links a {
    color: #d1d5db; /* gray-300 */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.unique-footer-links a:hover {
    color: #ffffff;
}

.unique-footer-copyright {
    font-size: 0.875rem; /* 14px */
    color: #9ca3af; /* gray-400 */
}
