/* START OF FILE css/layout.css */

/* Header */
header {
    background-color: var(--transparent-dark-bg); /* Semi-transparent black */
    padding: 0;
    border-bottom: none; /* Remove border */
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    box-shadow: none; /* Remove shadow */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

header .logo {
    font-size: 1.7rem; /* text-2xl */
    font-weight: 700;
    color: var(--text-light);
    padding: 0;
}
header .logo:hover {
    color: var(--primary-color); /* Yellow hover */
    text-decoration: none;
}

/* Main Navigation */
header nav#main-nav {
    display: flex;
}
header nav ul {
    list-style: none;
    display: flex;
    gap: 20px; /* Like space-x-4/5 */
}
header nav ul li {
    margin-left: 0; /* Use gap instead */
}
header nav ul li a {
    color: var(--text-light);
    /* font-size: 0.95em; */ /* Old size */
    font-size: 1.25em;    /* New larger size */
    font-weight: 400; /* Regular weight */
    padding: 5px 0;
    position: relative;
}
header nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none; /* Simple underline on hover */
}
header nav ul li a.active {
     font-weight: 600; /* Make active link bolder */
     color: var(--primary-color);
}

/* User Actions */
header .user-actions {
     display: flex;
     align-items: center;
     gap: 15px;
}
header .user-actions .nav-icon {
    color: var(--text-light);
    /* font-size: 1.1em; */ /* Old size */
    font-size: 1.25em;   /* New larger size */
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
}
header .user-actions .nav-icon:hover,
header .user-actions .nav-icon.active {
    /* No background change on hover, maybe slight color shift? */
    color: var(--primary-color);
    background: none;
    text-decoration: none;
}
header .user-actions .icon-text {
    display: none; /* Keep hidden for icon-only display */
}

header .user-actions .cart-count-bubble {
    position: absolute;
    top: 0px; /* Adjust position */
    right: 0px; /* Adjust position */
    background-color: var(--primary-color);
    color: var(--text-dark);
    border-radius: 50%;
    width: 18px; /* Slightly larger bubble */
    height: 18px;/* Slightly larger bubble */
    font-size: 0.7em; /* Adjust font size inside bubble */
    font-weight: bold;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1px solid var(--white); /* Optional: small white border */
}

header #user-info {
    display: none; /* Hidden by default */
    align-items: center;
    gap: 10px;
}
header #user-info .user-email-display {
     font-size: 0.85em;
     color: #d1d5db; /* Lighter gray (Tailwind gray-300) */
     display: none; /* Hidden on small screens */
}
header #user-info button { /* Logout button */
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    /* font-size: 1.1em; */ /* Old size */
    font-size: 1.25em;   /* New larger size (match other icons) */
    padding: 8px;
    border-radius: 50%;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}
header #user-info button:hover {
    background: none;
    color: var(--error-color); /* Red for logout */
}

/* Hamburger Menu */
#hamburger-menu {
    display: none; /* Hidden by default (desktop) */
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.6em;
    cursor: pointer;
    padding: 5px;
    z-index: 1100; /* Ensure it's clickable over mobile nav */
}


/* Main Content Sections */
main {
    padding: 24px 0; /* Reduced vertical padding */
}

section {
    padding: 32px 0; /* ~py-8 */
}


/* Footer */
footer {
    background-color: var(--transparent-dark-bg); /* Semi-transparent black */
    color: #d1d5db; /* Lighter gray text (Tailwind gray-300) */
    padding: 24px 16px; /* ~py-6 px-4 */
    margin-top: 48px; /* ~mt-6 */
    border-top: none; /* Remove border */
    font-size: 0.875rem; /* ~text-sm */
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns mobile */
    gap: 16px; /* ~gap-4 */
    margin-bottom: 24px; /* Space before bottom */
}
.footer-col h3, .footer-col h4 { /* Footer Headings */
    font-size: 1rem; /* Base size */
    color: var(--text-light); /* White */
    margin-bottom: 12px;
    font-weight: 600; /* Semi-bold */
}
.footer-col p {
    margin-bottom: 10px;
    line-height: 1.6;
}
.footer-col ul {
    list-style: none;
    padding-left: 0; /* Ensure no indent */
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #d1d5db; /* Lighter gray */
    font-size: 0.875rem;
}
.footer-col ul li a:hover {
    color: var(--primary-color); /* Yellow hover */
    text-decoration: none;
    padding-left: 0; /* Remove indent */
}
.social-links {
    margin-top: 16px;
    display: flex;
    gap: 16px; /* ~space-x-4 */
}
.social-links a {
    color: #d1d5db;
    font-size: 1.1em; /* Adjust size if needed */
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--primary-color); /* Yellow hover */
    transform: none; /* Remove scale */
}
/* You might need to style the social images if using <img> instead of <i> */
.social-links img {
    width: 20px; /* ~w-5 */
    height: 20px;
    filter: brightness(0) invert(1); /* Make icons white if they are black SVGs/PNGs */
}
.social-links a:hover img {
    filter: none; /* Revert filter or apply yellow color if possible */
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color-subtle); /* Subtle border */
    font-size: 0.8em;
    color: var(--text-muted); /* Medium gray (Tailwind gray-400) */
}

/* Minimal Footer (used on login) */
.minimal-footer {
    background-color: var(--transparent-dark-bg);
    border-top: 1px solid var(--border-color-subtle);
    color: var(--text-muted);
    text-align: center;
    padding: 20px 0;
    margin-top: 0;
    font-size: 0.9em;
}
.minimal-header {
     background-color: var(--transparent-dark-bg);
    padding: 15px 0;
    border-bottom: none;
     height: auto; /* Allow height to be determined by content */
}
.minimal-header .logo {
    font-size: 1.5rem;
    color: var(--text-light);
}

header #user-info .user-email-display {
    display: none !important; /* Hide the email span always */
}


/* Responsive Layout Adjustments */
@media (max-width: 992px) {
    /* Mobile Nav background */
    header nav#main-nav {
        background-color: var(--bg-gradient-end); /* Use darker part of gradient */
        box-shadow: 0 5px 10px var(--shadow-color);
        border-top: 1px solid var(--border-color-subtle);
        max-height: 0; /* Start hidden */
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        position: absolute;
        top: var(--header-height); /* Position below header */
        left: 0;
        width: 100%;
        flex-direction: column;
        padding: 0; /* Remove padding, handled by links */
    }
    header nav#main-nav.active {
        display: flex; /* Make it visible */
        max-height: 500px; /* Allow it to expand */
        padding: 10px 0;
    }
    header nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    header nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    header nav ul li a {
        padding: 12px 20px;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--border-color-subtle);
        font-weight: 500;
        /* CHANGE HERE: Ensure mobile nav links are large enough */
        font-size: 1.1rem; /* Increased from potentially smaller implicit size */
    }
     header nav ul li a:hover { text-decoration: none; background-color: rgba(255,255,255, 0.05);}
     header nav ul li a.active { background-color: rgba(250, 204, 21, 0.1); } /* Subtle yellow bg for active */
     header nav ul li:last-child a { border-bottom: none; }

    #hamburger-menu { display: block; /* Show hamburger */ }

    /* Stack footer items on smaller tablets */
     .footer-columns {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns for now */
        text-align: center; /* Center content */
    }
     .footer-col ul { padding-left: 0; }
     .social-links { justify-content: center; } /* Center social links */
}


@media (min-width: 768px) { /* Apply footer grid change on medium screens */
     .footer-columns {
        grid-template-columns: repeat(4, 1fr); /* 4 columns desktop */
        text-align: left; /* Left align content */
     }
     .social-links { justify-content: flex-start; } /* Align left */
     header #user-info .user-email-display { display: inline-block;} /* Show email on larger screens */
}


@media (max-width: 768px) {
      /* Adjustments for smaller tablets / larger phones */
       .footer-columns { text-align: center; } /* Ensure centered on < 768 */
       .footer-col ul { padding-left: 0;}
       .social-links { justify-content: center;}
}

@media (max-width: 480px) {
    /* Stack footer columns on very small screens */
    .footer-columns { grid-template-columns: 1fr; }

    /* Header user info on smallest screens */
    header .user-actions .nav-icon {
        padding: 5px; /* Smaller padding */
    }
     header #user-info button { padding: 5px; }
     header .user-actions { gap: 10px; }
}

@media (max-width: 480px) {
    /* Stack footer columns on very small screens */
    .footer-columns { grid-template-columns: 1fr; }

    /* Header user info on smallest screens */
    header .user-actions .nav-icon {
        padding: 5px; /* Smaller padding */
    }
     header #user-info button { padding: 5px; }
     header .user-actions { gap: 10px; }
}

/* END OF FILE css/layout.css */