/* ============================================
   Shop by Country - Level Based Infrastructure
   ============================================ */

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.country-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all var(--transition-base);
}

.country-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.country-card:hover::before {
    height: 6px;
}

/* Level 3 - Premium Infrastructure */
.country-level-3::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.country-level-3 {
    border-color: rgba(16, 185, 129, 0.3);
}

.country-level-3:hover {
    border-color: #10b981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

/* Level 2 - Intermediate Infrastructure */
.country-level-2::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.country-level-2 {
    border-color: rgba(245, 158, 11, 0.3);
}

.country-level-2:hover {
    border-color: #f59e0b;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
}

/* Level 1 - Basic Infrastructure */
.country-level-1::before {
    background: linear-gradient(90deg, #6b7280, #9ca3af);
}

.country-level-1 {
    border-color: rgba(107, 114, 128, 0.3);
}

.country-level-1:hover {
    border-color: #6b7280;
    box-shadow: 0 10px 25px rgba(107, 114, 128, 0.2);
}

/* Country Header */
.country-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.country-flag {
    font-size: 3rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.country-info {
    flex: 1;
}

.country-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.country-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.country-level-badge.level-3 {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.country-level-badge.level-2 {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.country-level-badge.level-1 {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.country-level-badge i {
    font-size: 0.625rem;
}

/* Country Stats */
.country-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.country-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

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

/* Country Features */
.country-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.country-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.country-feature i {
    color: var(--success);
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .country-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .country-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    .country-card {
        padding: 1.25rem;
    }
    
    .country-flag {
        font-size: 2.5rem;
        width: 50px;
        height: 50px;
    }
    
    .country-name {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    .country-grid {
        grid-template-columns: 1fr;
    }
    
    .country-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* Animation */
.country-card {
    animation: fadeInUp 0.5s ease-out;
}

.country-card:nth-child(1) { animation-delay: 0.1s; }
.country-card:nth-child(2) { animation-delay: 0.2s; }
.country-card:nth-child(3) { animation-delay: 0.3s; }
.country-card:nth-child(4) { animation-delay: 0.4s; }
.country-card:nth-child(5) { animation-delay: 0.5s; }
.country-card:nth-child(6) { animation-delay: 0.6s; }
.country-card:nth-child(7) { animation-delay: 0.7s; }
.country-card:nth-child(8) { animation-delay: 0.8s; }
.country-card:nth-child(9) { animation-delay: 0.9s; }

