/*
Theme Name: SLA Human Rights
Author: Your Name
Description: Custom WordPress Theme for SLA Human Rights
Version: 1.2
*/

/* --- 1. Base Styles --- */
body { 
    font-family: 'Poppins', sans-serif; 
    background-color: #ffffff; 
    color: #333; 
    scroll-behavior: smooth; 
}

/* --- 2. Brand Colors & Utility --- */
.text-teal-brand { color: #007A5E; }
.bg-teal-brand { background-color: #007A5E; }
.text-red-brand { color: #E12B2B; }
.bg-red-brand { background-color: #E12B2B; }
.bg-dark-green { background-color: #014131; }

/* --- 3. UI Elements --- */
.title-line { width: 50px; height: 3px; background-color: #E12B2B; margin: 8px auto 0; }

.join-cta-shape {
    background-color: #014131;
    border-bottom-left-radius: 50% 12%;
    border-bottom-right-radius: 50% 12%;
}

.custom-input {
    width: 100%; padding: 10px 12px; border: 1px solid #E5E7EB; border-radius: 8px; font-size: 13px; outline: none; background-color: #f9fafb;
}
.custom-input:focus { border-color: #007A5E; background-color: #fff; }

/* --- 4. Footer Styles --- */
.footer-link li { position: relative; padding-left: 20px; list-style: none; font-size: 13px; margin-bottom: 12px; transition: 0.3s; cursor: pointer; }
.footer-link li:hover { color: #fff; transform: translateX(5px); }
.footer-link li::before {
    content: "•"; color: #E12B2B; font-weight: bold; position: absolute; left: 0; font-size: 18px; top: -3px;
}

/* --- 5. Navigation & Sticky Logic --- */
nav#site-navigation {
    position: sticky !important;
    top: 0 !important;
    width: 100%;
    z-index: 9999 !important; /* Always stays on top */
    padding-top: 10px;
    padding-bottom: 10px;
    transition: all 0.4s ease-in-out;
}

/* Slim effect when scrolling */
nav#site-navigation.is-scrolled {
    background-color: rgba(0, 0, 0, 0.9) !important; 
    padding-top: 5px !important;    
    padding-bottom: 5px !important; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* --- 6. Live Shimmer Effect (Donate Button) --- */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: live-shimmer 3s infinite;
}

@keyframes live-shimmer {
    0% { left: -100%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

/* --- 7. Mobile Menu Drawer --- */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.95);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

#mobile-menu.open {
    transform: translateX(0);
}
/* --- 1. Fixed Navigation (100% Sticky & Top) --- */
nav#site-navigation {
    position: fixed !important; /* Forces it to stay at the top */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999 !important; /* Ensure it's above everything */
}

/* Slim on scroll effect */
nav#site-navigation.is-scrolled {
    background-color: rgba(15, 23, 42, 0.95) !important; /* Solid dark transparent */
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* --- 2. Shimmer Animation (Donate Button) --- */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}
.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(25deg);
    animation: live-shimmer 3s infinite;
}
@keyframes live-shimmer {
    0% { left: -100%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

/* --- 3. Compact Mobile Menu (Side Drawer) --- */
/* --- 1. Desktop Dropdown Setup --- */
.desktop-menu ul li { position: relative; }

/* Sub-menu hidden by default */
.desktop-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e293b;
    min-width: 180px;
    display: none; /* Important: Hides dropdowns */
    padding: 10px 0;
    border-top: 2px solid #E12B2B;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    flex-direction: column;
    space-x: 0;
}

.desktop-menu ul.sub-menu li { width: 100%; }
.desktop-menu ul.sub-menu li a {
    padding: 8px 20px;
    font-size: 9px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Hover Effect to show dropdown */
.desktop-menu ul li:hover > ul.sub-menu {
    display: flex;
    animation: menuFadeIn 0.3s ease;
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 2. Mobile Drawer Dropdown --- */
.mobile-nav-wrapper ul.sub-menu {
    display: none; /* Hide in mobile too */
    padding-left: 15px;
    margin-top: 10px;
    background: rgba(255,255,255,0.03);
    border-left: 1px solid #E12B2B;
}

.mobile-nav-wrapper li.menu-item-has-children.active > ul.sub-menu {
    display: block; /* Show when active class added via JS */
}

/* Dropdown Arrow Indicator */
.menu-item-has-children > a::after {
    content: '▼';
    font-size: 7px;
    margin-left: 8px;
    transition: 0.3s;
    display: inline-block;
}

/* Shimmer Live Reflection */
.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(25deg);
    animation: live-shimmer 3s infinite;
}

@keyframes live-shimmer {
    0% { left: -100%; }
    30% { left: 150%; }
    100% { left: 150%; }
}