/**
 * assets/css/style.css
 * Estilos personalizados - Portal Sindical
 * Diseño moderno, responsive y accesible
 */

:root {
    /* Colores principales */
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Fondos */
    --dark: #0f172a;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    
    /* Tipografía */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Efectos */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.2s ease-in-out;
}

/* Base */
body {
    font-family: var(--font-family);
    color: var(--gray-700);
    background-color: #f9fafb;
}

/* Gradientes */
.bg-gradient-primary {
    background: linear-gradient(135deg, #4c1d95 0%, #1e1b4b 50%, #0f172a 100%);
}

.bg-dark-transparent {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

/* Navbar */
.navbar {
    transition: var(--transition);
}
.navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.98) !important;
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero-section {
    padding-top: 5rem;
    background-image: 
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1), transparent 50%);
}

/* Estadísticas */
.stat-card {
    text-align: center;
    padding: 1rem;
}
.stat-number {
    font-size: 1.875rem;
    line-height: 2.25rem;
}
.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Feature Cards */
.feature-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Blog Cards */
.blog-card {
    transition: var(--transition);
    overflow: hidden;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.blog-card .card-img-top {
    transition: transform 0.3s ease;
}
.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Blog Post */
.blog-content {
    line-height: 1.8;
}
.blog-content p {
    margin-bottom: 1.25rem;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary), #6d28d9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover Effects */
.hover-shadow {
    transition: var(--transition);
}
.hover-shadow:hover {
    box-shadow: var(--shadow-lg);
}

.transition {
    transition: var(--transition);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-light:hover {
    background-color: white;
    color: var(--dark);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25);
}

/* Utilities */
.text-purple-400 { color: #a78bfa !important; }
.text-purple-600 { color: #7c3aed !important; }
.text-gray-300 { color: var(--gray-300) !important; }
.text-gray-400 { color: var(--gray-400) !important; }
.text-gray-600 { color: var(--gray-600) !important; }
.bg-gray-900 { background-color: var(--gray-900) !important; }
.bg-gray-100 { background-color: var(--gray-100) !important; }

/* Responsive */
@media (max-width: 768px) {
    .display-4 { font-size: 2.5rem !important; }
    .hero-section { padding-top: 6rem; }
    .stat-number { font-size: 1.5rem; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Print Styles */
@media print {
    .navbar, footer, .no-print { display: none !important; }
    .blog-content { color: #000 !important; }
}