/* Custom CSS for ASEAN AI Adoption Tracker */
.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Navigation styles */
.nav-btn.active {
    border-bottom-color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Section transitions */
.section-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Country card styles */
.country-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #3B82F6;
}

.country-flag {
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Readiness level indicators */
.readiness-high {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.readiness-medium {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.readiness-low {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.readiness-bar {
    height: 6px;
    border-radius: 3px;
    transition: width 0.8s ease-in-out;
}

.readiness-bar.high {
    background: linear-gradient(90deg, #10B981, #059669);
}

.readiness-bar.medium {
    background: linear-gradient(90deg, #F59E0B, #D97706);
}

.readiness-bar.low {
    background: linear-gradient(90deg, #EF4444, #DC2626);
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 400px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .country-card {
        margin-bottom: 1rem;
    }
    
    .nav-btn {
        font-size: 0.875rem;
        padding: 0.75rem 0.5rem;
    }
    
    .chart-container {
        height: 300px;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: #3B82F6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltip styles */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip.show {
    opacity: 1;
}

/* Research methodology cards */
.methodology-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.methodology-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3B82F6;
}

/* Data source indicators */
.data-source {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #EBF8FF;
    color: #1E40AF;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 2px;
}

/* Progress indicators */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dasharray 0.8s ease-in-out;
    stroke: #3B82F6;
    stroke-width: 4;
    fill: transparent;
    stroke-linecap: round;
}

/* Animated counters */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Print styles */
@media print {
    .nav-btn, footer {
        display: none;
    }
    
    .section-content {
        display: block !important;
    }
    
    .bg-gradient-to-br,
    .bg-gradient-to-r {
        background: #f8fafc !important;
        color: #1f2937 !important;
    }
}