/* Import the flag-icons library */
@import url('https://cdn.jsdelivr.net/gh/lipis/flag-icons@6.11.0/css/flag-icons.min.css');

/* Base flag styling - ensures consistent sizing and display */
.flag-icon {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    margin-right: 0.25rem;
}

/* Central Bank card flag icons - larger size for prominence */
.cb-icon .flag-icon {
    font-size: 2.5rem;
    width: 2.5rem;
    height: auto;
    margin: 0;
}

/* Header and navigation flag icons - medium size */
.bank-flag .flag-icon,
.footer-flag .flag-icon {
    font-size: 1.25rem;
    width: 1.25rem;
    height: auto;
}

/* Table and comparison view flag icons - standard size */
.table .flag-icon {
    font-size: 1.2rem;
    width: 1.2rem;
    height: auto;
    margin-right: 0.5rem;
}

/* News cards and small contexts - compact size */
.news-card-header .flag-icon {
    font-size: 1.1rem;
    width: 1.1rem;
    height: auto;
}

/* Footer flag icons - small but readable */
.footer-links .flag-icon {
    font-size: 1rem;
    width: 1rem;
    height: auto;
    margin-right: 0.375rem;
}

/* Comparison cards flag icons */
.cb-comparison-card .flag-icon {
    font-size: 2rem;
    width: 2rem;
    height: auto;
    margin-bottom: 0.5rem;
}

/* Global icon styling - special case for world/global indicator */
.global-icon {
    font-size: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0;
}

.global-icon::before {
    content: "🌍";
    font-size: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cb-icon .flag-icon {
        font-size: 2rem;
        width: 2rem;
    }
    
    .cb-comparison-card .flag-icon {
        font-size: 1.5rem;
        width: 1.5rem;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .flag-icon {
        filter: brightness(0.9);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .flag-icon {
        border: 1px solid currentColor;
        border-radius: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .flag-icon {
        transition: none;
    }
}

/* Print styles */
@media print {
    .flag-icon {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}