/* 
    Food Security Nations (FSN) - Premium Design System
    Tailored HSL Colors, Dark Modes, Glassmorphism, and Premium UI Accents
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #030712; /* Deep dark tailwind gray-950 */
    color: #E5E7EB;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.15), /* Top bright edge */
        inset 1px 0 1px rgba(255, 255, 255, 0.05); /* Left bright edge */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.glass-panel-hover:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 1px 0 1px rgba(255, 255, 255, 0.1);
}

/* Specific component for the boxes (Dark Glass with Specular Highlight) */
.glass-card-clean {
    background: linear-gradient(135deg, rgba(5, 11, 20, 0.85) 0%, rgba(3, 7, 18, 0.95) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.15), /* Top bright edge */
        inset 1px 0 1px rgba(255, 255, 255, 0.05); /* Left bright edge */
}

.glass-card-clean::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glass-card-clean:hover::before {
    opacity: 1;
}

.glass-card-clean:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-6px);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        inset 1px 0 1px rgba(255, 255, 255, 0.15);
}

.icon-glow {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

/* Typography Enhancements */
.text-gradient-gold {
    background: linear-gradient(135deg, #FFF3B0 0%, #D4AF37 50%, #AA8C2C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-text {
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Background Effects */
.bg-glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

.blob-gold {
    background: rgba(212, 175, 55, 0.08);
}

.blob-teal {
    background: rgba(0, 168, 150, 0.08);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #030712;
}
::-webkit-scrollbar-thumb {
    background: #1F2937;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #B59325 100%);
    color: #030712;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.85rem 2.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}
.btn-primary:hover {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E5E7EB;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.85rem 2.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-outline:hover {
    border-color: #D4AF37;
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.04);
    transform: translateY(-2px);
}

/* Header Scrolled State */
#header.scrolled {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Image wrappers for dark theme */
.img-darken {
    position: relative;
}
.img-darken::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #030712, transparent 60%);
    pointer-events: none;
}

/* Premium Form Inputs styling */
.form-input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    padding: 0.85rem 1.25rem;
    color: #FFFFFF;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    border-color: #D4AF37;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

/* Grid & Layout Utilities */
.grid-glow-card {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.02), transparent 70%);
}

.glow-red {
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.text-gradient-red {
    background: linear-gradient(135deg, #FFAAAA 0%, #EF4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* RTL Support Rules */
html[dir="rtl"] [data-lucide="chevron-right"],
html[dir="rtl"] [data-lucide="arrow-right"],
html[dir="rtl"] .animate-bounce-right {
    transform: scaleX(-1);
}

@keyframes bounceLeft {
    0%, 100% { transform: translateX(0) scaleX(-1); }
    50% { transform: translateX(-4px) scaleX(-1); }
}

html[dir="rtl"] .animate-bounce-right {
    animation: bounceLeft 1s infinite;
}

/* Árabe é escrita cursiva: letter-spacing quebra a ligação entre letras.
   Neutraliza todas as utilities tracking-* na versão RTL. */
html[dir="rtl"] [class*="tracking-"] {
    letter-spacing: 0 !important;
}

