/**
 * NGO Human Rights Portal - Design System
 * Primary Color: #26a3d4
 * Foundation: Bootstrap 5 (Vanilla)
 */

:root {
    /* Override Bootstrap Native Defaults */
    --bs-primary: #26a3d4;
    --bs-primary-rgb: 38, 163, 212;
    --bs-secondary: #1a202c;
    --bs-secondary-rgb: 26, 32, 44;
    --bs-dark: #000000;
    --bs-dark-rgb: 0, 0, 0;
    --bs-light: #ffffff;
    --bs-light-rgb: 255, 255, 255;
    
    --bs-link-color: #26a3d4;
    --bs-link-hover-color: #1e8bb8;

    /* NGO Custom Variables */
    --ngo-primary: #26a3d4;
    --ngo-primary-rgb: 38, 163, 212;
    --ngo-dark: #1a202c;
    --ngo-light: #f8fafc;
    --ngo-border: #e2e8f0;
    --ngo-white: #ffffff;
}

/* Fix outline buttons to strictly use our primary color */
.btn-outline-primary {
    --bs-btn-color: var(--bs-primary) !important;
    --bs-btn-border-color: var(--bs-primary) !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: var(--bs-primary) !important;
    --bs-btn-hover-border-color: var(--bs-primary) !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: var(--bs-primary) !important;
    --bs-btn-active-border-color: var(--bs-primary) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Typography Foundation */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background-color: var(--ngo-white);
    color: var(--ngo-dark);
    line-height: 1.6;
}

[dir="rtl"] body {
    font-family: 'Amiri', serif !important;
}

/* Force HTML editor content to obey the global font */
.report-content,
.report-content * {
    font-family: inherit !important;
}

/* Institutional Headers */
h1, h2, h3, h4, h5, h6 {
    color: var(--ngo-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Brand Buttons */
.btn-primary {
    background-color: var(--ngo-primary) !important;
    border-color: var(--ngo-primary) !important;
    color: var(--ngo-white) !important;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e8bb8 !important;
    border-color: #1e8bb8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(38, 163, 212, 0.25);
}

/* Institutional Navigation */
.navbar-ngo {
    background-color: var(--ngo-white);
    border-bottom: 3px solid var(--ngo-primary);
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-link {
    font-weight: 600;
    color: var(--ngo-dark) !important;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--ngo-primary) !important;
}

/* Institutional Archive Cards (The "Report" Look) */
.report-card {
    background: var(--ngo-white);
    border: 1px solid var(--ngo-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.report-card:hover {
    border-color: var(--ngo-primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.report-card .card-category {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ngo-primary);
    letter-spacing: 0.5px;
}

/* Footer (Institutional & Solid) */
.footer-ngo {
    background-color: var(--ngo-dark);
    color: #e2e8f0;
    padding: 5rem 0 2rem;
    border-top: 5px solid var(--ngo-primary);
}

.footer-ngo a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-ngo a:hover {
    color: var(--ngo-primary);
}

/* Utilities */
.bg-gray-ngo { background-color: var(--ngo-gray); }
.text-ngo-primary { color: var(--ngo-primary); }



/* Pagination Styling */
.pagination-custom .page-item.active .page-link,
.page-item.active .page-link {
    background-color: var(--ngo-primary) !important;
    border-color: var(--ngo-primary) !important;
    color: var(--ngo-white) !important;
}
.pagination-custom .page-link,
.page-link {
    color: var(--ngo-dark);
}
.pagination-custom .page-link:hover,
.page-link:hover {
    background-color: #f1f5f9;
    color: var(--ngo-primary);
}

/* =========================================
   Consolidated Component Styles 
   ========================================= */

/* Hover Utilities */
.hover-scale {
    transition: transform 0.5s ease;
}
.hover-scale:hover,
.category-card:hover .hover-scale {
    transform: scale(1.05);
}
.category-card:hover .hover-scale {
    transform: scale(1.1); /* Slightly more zoom for category cards */
}
.hover-primary:hover, 
.hover-primary:focus {
    color: var(--ngo-primary) !important;
}
.hover-shadow:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--ngo-primary) !important;
}

/* Report Content Typography & Media */
.report-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Category Cards */
.bg-gradient-to-top {
    background: linear-gradient(to top, rgba(var(--ngo-primary-rgb), 0.9) 0%, rgba(var(--ngo-primary-rgb), 0) 100%);
}
.category-card:hover {
    box-shadow: 0 10px 20px rgba(var(--ngo-primary-rgb), 0.2) !important;
}

/* Header & Navigation */
.glassmorphism {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.nav-item .dropdown-menu {
    border-top: 3px solid var(--ngo-primary);
}

/* Footer Interactions */
.footer-ngo a {
    transition: all 0.3s ease;
}
.footer-ngo a.hover-primary:hover {
    color: var(--ngo-primary) !important;
    transform: translateX(5px);
}
[dir="rtl"] .footer-ngo a.hover-primary:hover {
    transform: translateX(-5px);
}
