/* 
   NGO Management System - Custom CSS Overrides
   (Core Tailwind CSS is loaded dynamically via CDN in header)
*/

body { 
    font-family: 'Outfit', sans-serif; 
}
[x-cloak] { 
    display: none !important; 
}
html { 
    scroll-behavior: smooth; 
}

/* Glassmorphism Header */
.glass-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    position: relative;
}
.glass-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(31,77,58,0), rgba(245,158,11,0.8) 50%, rgba(31,77,58,0));
}
.nav-link { 
    position: relative; 
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -4px; left: 50%;
    transform: translateX(-50%);
    background-color: #0D5C34;
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { 
    width: 100%; 
}

/* Page Loader */
.loader-container {
    display: flex; 
    justify-content: center; 
    align-items: center;
    height: 100vh; 
    width: 100%;
    background-color: #ffffff;
    position: fixed; 
    top: 0; 
    left: 0; 
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
.loader-circle {
    width: 60px; 
    height: 60px; 
    border-radius: 50%;
    display: inline-block; 
    position: relative;
    border: 3px solid;
    border-color: #0D5C34 #0D5C34 transparent transparent;
    animation: rotation 1s linear infinite;
}
.loader-circle::after, .loader-circle::before {
    content: ''; 
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0; 
    margin: auto;
    border: 3px solid; 
    border-radius: 50%;
    width: 50px; 
    height: 50px;
    border-color: transparent transparent #FBB03B #FBB03B;
    animation: rotationBack 0.5s linear infinite;
}
.loader-circle::before {
    width: 40px; 
    height: 40px;
    border-color: #0D5C34 #0D5C34 transparent transparent;
    animation: rotation 1.5s linear infinite;
}

@keyframes rotation { 
    0%{transform:rotate(0deg)} 
    100%{transform:rotate(360deg)} 
}
@keyframes rotationBack { 
    0%{transform:rotate(0deg)} 
    100%{transform:rotate(-360deg)} 
}
@keyframes marquee { 
    0%{transform:translateX(0%)} 
    100%{transform:translateX(-50%)} 
}

.animate-marquee { 
    animation: marquee 30s linear infinite; 
}

@keyframes scroll-left { 
    0%{transform:translateX(0)} 
    100%{transform:translateX(-50%)} 
}

.animate-scroll-left { 
    animation: scroll-left 10s linear infinite; 
}
.sponsor-container:hover .animate-scroll-left { 
    animation-play-state: paused; 
}

/* ── Google Translate Override UI ─────────────────── */
.goog-te-banner-frame,
.skiptranslate > iframe { 
    display: none !important; 
}
body { 
    top: 0 !important; 
}
.goog-logo-link,
.goog-te-gadget > span,
.goog-te-gadget img { 
    display: none !important; 
}
.goog-te-gadget { 
    font-size: 0 !important; 
}
#gt-hidden-engine { 
    display: none !important; 
}

/* ── Custom Language Picker ────────────────────────────────────── */
.lang-picker-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* Desktop Picker Button */
.lang-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.lang-picker-btn:hover { 
    background: rgba(255,255,255,0.28); 
}
.lang-picker-btn .lang-flag { 
    font-size: 1rem; 
}
.lang-picker-btn .lang-caret {
    font-size: 0.55rem;
    opacity: 0.8;
    transition: transform 0.2s;
}
.lang-picker-wrapper.open .lang-caret { 
    transform: rotate(180deg); 
}

/* Dropdown Panel */
.lang-picker-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 9999;
    min-width: 175px;
}
.lang-picker-wrapper.open .lang-picker-dropdown { 
    display: block; 
}

.lang-picker-dropdown .lang-header {
    padding: 8px 12px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    border-bottom: 1px solid #f3f4f6;
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.lang-option:hover  { 
    background: #f5f8f6; 
    color: #0D5C34; 
}
.lang-option.active { 
    background: #e3ece7; 
    color: #0D5C34; 
    font-weight: 600; 
}
.lang-option .lf { 
    font-size: 1.1rem; 
    flex-shrink: 0; 
}
.lang-option .ln { 
    flex: 1; 
}
.lang-option .lsub { 
    font-size: 0.7rem; 
    color: #9ca3af; 
}
.lang-option.active .lsub { 
    color: #6f9a80; 
}

/* Mobile Variant */
.lang-picker-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.15s;
}
.lang-chip:hover  { 
    background: #e3ece7; 
    border-color: #a7c0b0; 
    color: #0D5C34; 
}
.lang-chip.active { 
    background: #0D5C34; 
    border-color: #0D5C34; 
    color: #fff; 
}
