/* public/assets/css/layout.css */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Top Bar */
.top-bar {
    background-color: var(--color-bg-footer); /* Dark bg */
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
    font-family: var(--font-body);
    position: relative; /* Ensure it stays on top */
    z-index: 1002;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    display: flex;
    gap: 20px;
}

.top-contact a {
    display: flex;
    align-items: center;
    gap: 8px; /* Increased gap slightly for SVGs */
    opacity: 0.9;
    color: #fff; /* White initially */
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.top-contact a:hover {
    opacity: 1;
    color: var(--color-primary); /* Golden Orange on Hover */
    transform: translateY(-1px);
}

.top-contact a svg {
    fill: currentColor; /* Follow text color on hover */
}

.top-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-social a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.top-social a:hover {
    opacity: 1;
    color: var(--color-colorado-gold);
}

.online-status {
    color: #2ecc71;
    font-weight: bold;
    font-size: 0.75rem;
    margin-right: 15px;
    letter-spacing: 0.5px;
}

/* Main Header - Floating Card Style */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 20px; /* Floating effect: Sticks 20px from top */
    z-index: 1000;
    border-bottom: none;
    transition: all 0.3s ease;
    
    /* Boxed Layout Changes */
    width: 100%;
    max-width: 1100px; /* Reduced slightly from 1200px */
    margin: 20px auto 0; /* Centered with 20px top margin */
    border-radius: 8px; /* Fully rounded corners for floating card */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo img {
    height: 40px; /* Reduced from 70px */
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
}

/* Navigation - Centered & Clean */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
} 

.top-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-social a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.top-social a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.top-social a:hover {
    opacity: 1;
    color: var(--color-primary); /* Use global variable */
    transform: translateY(-2px);
}

.main-nav a {
    color: var(--color-primary); /* #FCAA00 */
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary-dark); /* #DB5C00 */
}

/* Underline Animation (Center Out) */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: var(--color-primary-dark); /* Match active color */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Utilities (Right) */
.header-utilities {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Blog Link (Right) */
.header-blog-link {
    color: var(--color-primary); /* #FCAA00 */
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.header-blog-link:hover {
    color: var(--color-primary-dark);
    background-color: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
}

/* Intermediate Desktop (Compact Desktop) */
@media (max-width: 1200px) {
    .main-nav ul {
        gap: 1rem; /* Reduce gap to fit menu on smaller desktops */
    }
    .main-nav a {
        font-size: 0.9rem; /* Slightly smaller text */
    }
    .site-header {
        max-width: 95%; /* Use more width */
    }
}

/* Mobile Responsiveness & Breakpoints */
@media (max-width: 992px) { /* Trigger Hamburger at typical "Tablet" size */
    .top-bar {
        display: none; 
    }

    .site-header {
        height: 60px; /* Force compact height on mobile */
        padding: 0;
        max-width: 96%; 
        margin: 10px auto; 
    }
    
    .site-header .container {
        display: flex; /* Ensure Flexbox */
        flex-direction: row; /* Horizontal Layout for Logo & Burger */
        flex-wrap: nowrap; /* Prevent wrapping */
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
        height: 100%;
    }

    /* Logo adjustment */
    .logo img {
        height: 35px;
        margin-top: 5px; 
    }

    /* Hamburger Menu Button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--color-primary);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Hamburger Animation to X */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hide Search on Mobile Header */
    .header-utilities {
        display: none; 
    }

    /* Mobile Navigation Drawer */
    .main-nav {
        display: none; 
        position: absolute; 
        top: 60px; /* Directly below header */
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        border-radius: 0 0 8px 8px; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 2.5rem 0 1rem; /* Increased top padding to clear the Close Icon area visually if needed */
        z-index: 1000; /* Ensure it's on top of page content but check relative to X */
    }

    .main-nav.active {
        display: block; 
        animation: slideDown 0.3s ease-out forwards;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    .main-nav a::after {
        display: none; 
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer - Divine 3-Column Layout */
.site-footer {
    background-color: var(--color-bg-footer);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    margin-top: 5rem; /* Space from content */
    border-top: 5px solid var(--color-colorado-gold);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    text-align: left;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: var(--color-colorado-gold);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 202, 50, 0.3);
    padding-bottom: var(--spacing-sm);
    display: inline-block;
}

.site-footer p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

/* Map Styling */
.map-container iframe {
    border-radius: 8px;
    border: 2px solid var(--color-colorado-gold) !important;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.map-container iframe:hover {
    opacity: 1;
}

/* Timings List */
.timings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timings-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.timings-list strong {
    color: var(--color-tree-poppy);
}

.special-pooja {
    font-size: 0.9rem;
    color: var(--color-colorado-gold);
    font-style: italic;
    margin-top: var(--spacing-sm);
    display: block !important;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.social-icon {
    color: var(--color-white);
    text-decoration: none;
    border: 1px solid var(--color-colorado-gold);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--color-colorado-gold);
    color: var(--color-bg-footer);
}

.copyright-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: var(--spacing-lg);
}

.footer-tiny-logo {
    height: 40px;
    width: auto;
    opacity: 0.8;
}

.copyright.small {
    font-size: 0.85rem;
    opacity: 0.5;
    margin: 0;
    padding: 0;
}

/* Cleaned up duplicate media query */
