/* style.css - Complete GFFI Website Styling */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #94a3b8;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-gffi {
    color: var(--primary);
}

.logo-text {
    color: var(--dark);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.btn-premium:hover {
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, white 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary);
}

.hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Dashboard Section */
.dashboard-section {
    padding: 60px 0;
    background: var(--light);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Global Metrics */
.global-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.global-gffi {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.global-gffi .metric-icon i {
    color: white;
}

.metric-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.3rem;
}

.global-gffi .metric-label {
    color: rgba(255,255,255,0.9);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.metric-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.status-normal { background: #dcfce7; color: #166534; }
.status-watch { background: #fef9c3; color: #854d0e; }
.status-alert { background: #ffedd5; color: #9a3412; }
.status-critical { background: #fee2e2; color: #991b1b; }

.metric-date {
    font-size: 0.8rem;
    color: var(--secondary);
    display: block;
}

/* Country Grid */
.section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.country-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.country-flag {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.country-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.country-gffi {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.country-status {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

/* Chart Container */
.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.chart-placeholder {
    margin-top: 1rem;
}

.chart-placeholder img {
    max-width: 100%;
    border-radius: 8px;
}

/* Blog Preview */
.blog-preview {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.blog-image {
    height: 200px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.blog-content p {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all {
    text-align: center;
}

/* Newsletter */
.newsletter {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.form-note {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--gray);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-col ul li i {
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.5rem; }
    .country-grid { grid-template-columns: repeat(3, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu { display: block; }
    .hero-container { grid-template-columns: 1fr; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .global-metrics { grid-template-columns: repeat(2, 1fr); }
    .country-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
}

@media (max-width: 480px) {
    .global-metrics { grid-template-columns: 1fr; }
    .country-grid { grid-template-columns: 1fr; }
}
/* Toggle Button Styling */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
}

.btn-toggle {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

.btn-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.5);
}

.btn-toggle:active {
    transform: translateY(0);
}

/* Table Styling */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    font-weight: bold;
    padding: 15px;
    text-align: left;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    background-color: white;
}

.data-table tr:hover td {
    background-color: #f8f9fa;
}

.gffi-value {
    font-weight: 700;
    color: #1e3c72;
}

.status-success { 
    background: #d4edda; 
    color: #155724; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-weight: 500;
    display: inline-block;
}

.status-warning { 
    background: #fff3cd; 
    color: #856404; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-weight: 500;
    display: inline-block;
}

.status-alert { 
    background: #ffe5d0; 
    color: #9a3412; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-weight: 500;
    display: inline-block;
}

/* Negative/Positive Values */
.negative { color: #dc3545; font-weight: 600; }
.positive { color: #28a745; font-weight: 600; }

/* Responsive Table */
@media (max-width: 768px) {
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
}
