/* FGJEM Theme CSS - Portal de Personas Desaparecidas */
:root {
    /* Color palette */
    --primary: #0B1F3B;
    --primary-dark: #07162A;
    --secondary: #243447;
    --action-blue: #1F6FEB;
    --action-hover: #1A5CC4;
    --amber: #F59E0B;
    --amber-dark: #B45309;
    --background: #F5F7FA;
    --surface: #FFFFFF;
    --border: #D6DCE5;
    --text-primary: #111827;
    --text-muted: #4B5563;
    --success: #15803D;
    --warning: #F59E0B;
    --error: #B91C1C;
    --info: #2563EB;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Public Sans', sans-serif;
}

/* Base Styles */
body.fgjem-theme {
    font-family: var(--font-primary);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
.fgjem-header {
    background-color: var(--surface);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 10px rgba(11, 31, 59, 0.08);
}

.fgjem-logo .logo-icon {
    background-color: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.fgjem-title {
    color: var(--primary);
    font-weight: 700;
}

.fgjem-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.fgjem-navbar {
    background-color: var(--primary);
}

.fgjem-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.fgjem-navbar .navbar-nav .nav-link:hover,
.fgjem-navbar .navbar-nav .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.fgjem-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Hero Section */
.fgjem-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.fgjem-hero .hero-badge .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
}

.bg-amber {
    background-color: var(--amber) !important;
    color: var(--primary) !important;
}

.hero-stats {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Alert Cards */
.alert-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    border: none;
    transition: transform 0.3s ease;
}

.alert-card:hover {
    transform: translateY(-5px);
}

.alert-amber {
    border-top: 4px solid var(--amber);
}

.alert-danger {
    border-top: 4px solid var(--error);
}

.alert-success {
    border-top: 4px solid var(--success);
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
}

.alert-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.alert-amber .alert-badge {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--amber-dark);
}

.alert-danger .alert-badge {
    background-color: rgba(185, 28, 28, 0.1);
    color: var(--error);
}

.alert-success .alert-badge {
    background-color: rgba(21, 128, 61, 0.1);
    color: var(--success);
}

.alert-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.alert-body {
    padding: 1rem;
    background-color: var(--surface);
}

.btn-amber {
    background-color: var(--amber);
    color: var(--primary);
    border: none;
    font-weight: 500;
}

.btn-amber:hover {
    background-color: var(--amber-dark);
    color: white;
}

/* Campaign Cards */
.campaign-card {
    background-color: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

.campaign-card:hover {
    transform: translateY(-5px);
}

.campaign-img {
    height: 200px;
    overflow: hidden;
}

.campaign-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-placeholder {
    height: 100%;
    background-color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
    font-size: 3rem;
}

.campaign-body {
    padding: 1.25rem;
}

.campaign-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* Program Cards */
.program-card {
    background-color: var(--surface);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.program-card:hover {
    box-shadow: 0 8px 24px rgba(11, 31, 59, 0.12);
    border-color: var(--action-blue);
}

.program-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}

.program-odisea .program-icon {
    background-color: rgba(31, 111, 235, 0.1);
    color: var(--action-blue);
}

.program-amber .program-icon {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--amber);
}

.program-alba .program-icon {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--info);
}

.program-cell .program-icon {
    background-color: rgba(21, 128, 61, 0.1);
    color: var(--success);
}

/* Search Cells */
.cell-map {
    background-color: var(--surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cell-badge {
    background-color: rgba(31, 111, 235, 0.1);
    color: var(--action-blue);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.cell-stats {
    background-color: var(--background);
    border: 1px solid var(--border);
}

/* Footer */
.fgjem-footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.85);
}

.fgjem-footer a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
}

.fgjem-footer a:hover {
    color: white;
    text-decoration: underline;
}

.fgjem-footer .h6 {
    color: white;
}

.fgjem-footer .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* List Page Styles */
.list-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.list-card {
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(11, 31, 59, 0.12) !important;
}

.list-img {
    height: 200px;
    object-fit: cover;
}

.card-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-status-badge.active {
    background-color: rgba(245, 158, 11, 0.9);
    color: var(--primary);
}

.card-status-badge.resolved {
    background-color: rgba(21, 128, 61, 0.9);
    color: white;
}

.card-status-badge.urgent {
    background-color: rgba(185, 28, 28, 0.9);
    color: white;
}

.list-meta {
    font-size: 0.85rem;
}

.list-summary {
    font-size: 0.9rem;
}

/* Blog Styles */
.blog-main-title {
    color: var(--primary);
    font-size: 2.5rem;
}

.blog-description {
    font-size: 1.1rem;
}

.featured-post {
    background-color: var(--surface);
    border-left: 4px solid var(--action-blue);
}

.featured-badge {
    display: inline-block;
    background-color: var(--action-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.featured-img {
    height: 250px;
    object-fit: cover;
}

.featured-title {
    color: var(--text-primary);
}

.featured-title:hover {
    color: var(--action-blue);
}

.blog-card {
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(11, 31, 59, 0.12) !important;
}

.blog-img {
    height: 180px;
    object-fit: cover;
}

.blog-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--action-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    color: var(--text-primary);
}

.blog-summary {
    font-size: 0.9rem;
}

/* Single Page Styles */
.single-hero {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.single-title {
    color: var(--primary);
    font-size: 2.5rem;
}

.single-summary {
    border-left: 4px solid var(--action-blue);
    background-color: rgba(31, 111, 235, 0.05);
}

.status-badge-active {
    background-color: var(--amber);
    color: var(--primary);
}

.status-badge-resolved {
    background-color: var(--success);
    color: white;
}

.status-badge-urgent {
    background-color: var(--error);
    color: white;
}

.markdown-body.single-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.markdown-body.single-content h2 {
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.markdown-body.single-content h3 {
    color: var(--secondary);
    margin-top: 2rem;
}

.markdown-body.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.markdown-body.single-content blockquote {
    border-left: 4px solid var(--action-blue);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--text-muted);
    font-style: italic;
    background-color: rgba(31, 111, 235, 0.05);
    padding: 1rem;
    border-radius: 0 4px 4px 0;
}

/* Related Articles */
.related-articles .related-title {
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.related-card {
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(11, 31, 59, 0.12) !important;
}

.related-img {
    height: 150px;
    object-fit: cover;
}

.related-item-title {
    color: var(--text-primary);
    font-weight: 600;
}

.related-summary {
    font-size: 0.9rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border-color: var(--border);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.pagination .page-link:hover {
    background-color: rgba(11, 31, 59, 0.05);
    color: var(--primary);
}

/* High Contrast Mode */
.high-contrast {
    --primary: #000000;
    --primary-dark: #000000;
    --secondary: #333333;
    --background: #FFFFFF;
    --surface: #FFFFFF;
    --border: #000000;
    --text-primary: #000000;
    --text-muted: #000000;
    filter: contrast(1.5);
}

.high-contrast .fgjem-header {
    border-bottom: 3px solid #000000;
}

.high-contrast .fgjem-navbar {
    background-color: #000000;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
}

.skip-to-main:focus {
    top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .fgjem-title {
        font-size: 1.1rem;
    }

    .fgjem-subtitle {
        font-size: 0.8rem;
    }

    .single-title {
        font-size: 1.8rem;
    }

    .blog-main-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}