/*
Theme Name: Lagniappe Gov
Template: twentytwentythree
Version: 1.0
Description: Tema moderno gubernamental inspirado en NY.gov con contenido IDI Foundation
*/

:root {
    --primary-blue: #1a4480;
    --dark-blue: #0d2b4d;
    --accent-gold: #c9a227;
    --light-gray: #f5f5f5;
    --text-dark: #1b1b1b;
    --link-blue: #005ea2;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Header Gubernamental */
.gov-header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gov-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.gov-header .tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Navegación Principal */
.main-nav {
    background: var(--primary-blue);
    border-top: 3px solid var(--accent-gold);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: block;
    font-weight: 600;
    transition: background 0.3s;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-section h2 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-section .subtitle {
    font-size: 1.3rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary-blue);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

/* News Section */
.news-section {
    background: var(--light-gray);
    padding: 3rem 2rem;
}

.news-section h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
}

.news-item .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* Quick Links */
.quick-links {
    background: var(--primary-blue);
    color: white;
    padding: 2rem;
    text-align: center;
}

.quick-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.quick-links-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.quick-links a {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.quick-links a:hover {
    background: var(--accent-gold);
    color: var(--dark-blue);
}

/* Footer */
.gov-footer {
    background: var(--dark-blue);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* Buttons */
.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--dark-blue);
}

.btn-accent {
    background: var(--accent-gold);
    color: var(--dark-blue);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .feature-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SCROLL INDICATOR (Legacy - for fallback)
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

/* ============================================
   MODERN ANIMATIONS & EFFECTS - Added 2025
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Gradient Background */
.animated-gradient {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(102, 126, 234, 0); }
}

.pulse-btn {
    animation: pulse 2s infinite;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Image Zoom Effect */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.6s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Button Glow */
.btn-glow {
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

/* Underline Sweep */
.underline-sweep {
    position: relative;
    display: inline-block;
}

.underline-sweep::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ed8936;
    transition: width 0.4s ease;
}

.underline-sweep:hover::after {
    width: 100%;
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Bounce */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Magnetic Button */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic-btn:hover {
    transform: scale(1.05);
}

/* Scroll Reveal Initial State */
[data-animate] {
    opacity: 0;
}

[data-animate="fade-in-up"] {
    transform: translateY(30px);
}

[data-animate="scale-in"] {
    transform: scale(0.9);
}

[data-animate="slide-from-left"] {
    transform: translateX(-50px);
}

[data-animate="slide-from-right"] {
    transform: translateX(50px);
}

[data-animate].animate,
[data-animate].visible {
    opacity: 1;
    transform: translate(0) scale(1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
}

.lang-btn.active {
    background: rgba(255,255,255,0.2);
    border-color: transparent;
}

/* Stats Counter */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Program Cards Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Hero Section Modern */
.hero-modern {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-modern h1 {
        font-size: 2rem !important;
    }
    
    .hero-modern .subtitle {
        font-size: 1.1rem !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

/* Selection Color */
::selection {
    background: #667eea;
    color: white;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ed8936;
    outline-offset: 2px;
}
