/* ============================================================
   COUNTRIES PAGE STYLES
   ============================================================ */

/* ===== HERO ===== */
.countries-hero {
    padding: 60px 0 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(26, 42, 108, 0.05) 0%, transparent 100%);
}

.countries-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #1a2a6c;
}

.countries-hero h1 em {
    font-style: italic;
    color: #4a9eff;
}

.countries-hero .subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 12px auto 0;
}

.countries-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 24px;
}

.countries-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countries-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1a2a6c;
}

.countries-stats .stat-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SEARCH ===== */
.countries-search {
    padding: 20px 0 10px;
}

.countries-search .search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.countries-search .search-box input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.countries-search .search-box input:focus {
    border-color: #4a9eff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.15);
}

.countries-search .search-box input::placeholder {
    color: #bbb;
}

.countries-search .search-count {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #999;
}

/* ===== COUNTRIES GRID ===== */
.countries-grid-section {
    padding: 20px 0 60px;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.country-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e8ecf1;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    position: relative;
}

.country-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #4a9eff;
}

.country-card .country-flag {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.country-card .country-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2a3a;
    flex: 1;
}

.country-card .country-count {
    font-size: 0.8rem;
    color: #999;
    background: #f0f4f8;
    padding: 2px 10px;
    border-radius: 20px;
}

.country-card .country-arrow {
    color: #ccc;
    font-size: 1.2rem;
    transition: all 0.25s ease;
}

.country-card:hover .country-arrow {
    color: #4a9eff;
    transform: translateX(4px);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .big-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #1a2a3a;
    margin-bottom: 8px;
}

.empty-state p {
    color: #999;
}

/* ===== LOADING ===== */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner .spin {
    width: 40px;
    height: 40px;
    border: 3px solid #e8ecf1;
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .countries-hero h1 {
        font-size: 2.2rem;
    }
    
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .country-card {
        padding: 12px 16px;
    }
    
    .country-card .country-flag {
        font-size: 1.4rem;
    }
    
    .country-card .country-name {
        font-size: 0.85rem;
    }
    
    .countries-stats {
        gap: 20px;
    }
    
    .countries-stats .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .countries-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .country-card .country-count {
        display: none;
    }
    
    .country-card .country-arrow {
        display: none;
    }
}