/* 
 * COUNTRY GRID FIX CSS
 * Complete rewrite for country selection grid
 * Mobile-first approach with 2-column layout on mobile
 */

/* Countries grid container */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual country tab - WITH TOK NEON EDGES */
.country-tab {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* TOK NEON EDGE EFFECT */
.country-tab::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, 
        rgba(12, 224, 107, 0.8) 0%, 
        rgba(12, 224, 107, 0.6) 8%,
        transparent 18%, 
        transparent 82%, 
        rgba(12, 224, 107, 0.6) 92%,
        rgba(12, 224, 107, 0.8) 100%);
    border-radius: 12px;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: -1;
    filter: blur(2px);
}

.country-tab:hover {
    transform: translateY(-3px);
    border-color: rgba(12, 224, 107, 0.5);
    box-shadow: 0 4px 12px rgba(12, 224, 107, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.country-tab:hover::before {
    filter: blur(3px);
    background: linear-gradient(135deg, 
        rgba(12, 224, 107, 1) 0%, 
        rgba(12, 224, 107, 0.8) 10%,
        transparent 20%, 
        transparent 80%, 
        rgba(12, 224, 107, 0.8) 90%,
        rgba(12, 224, 107, 1) 100%);
}

/* Popular badge */
.popular-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
}

/* Round flag container - using styles from round-flags.css */
.round-flag-container {
    margin-bottom: 10px;
}

/* Country name */
.country-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 5px 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 5px;
}

/* Country price */
.country-price {
    font-size: 13px;
    color: #0CE06B;
    font-weight: 600;
}

/* Tablet devices (768px and up) */
@media (min-width: 768px) {
    .countries-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 25px;
    }
    
    .country-tab {
        min-height: 140px;
        padding: 20px 15px;
    }
    
    .country-name {
        font-size: 16px;
        margin: 8px 0 5px;
    }
    
    .country-price {
        font-size: 14px;
    }
}

/* Desktop devices (1024px and up) */
@media (min-width: 1024px) {
    .countries-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        padding: 30px;
    }
    
    .country-tab {
        min-height: 160px;
        padding: 25px 20px;
    }
    
    .country-name {
        font-size: 18px;
        margin: 10px 0 5px;
    }
    
    .country-price {
        font-size: 16px;
    }
}

/* Large desktop devices (1200px and up) */
@media (min-width: 1200px) {
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 30px;
        padding: 40px;
    }
    
    .country-tab {
        min-height: 180px;
        padding: 30px 25px;
    }
    
    .country-name {
        font-size: 20px;
        margin: 12px 0 8px;
    }
    
    .country-price {
        font-size: 18px;
    }
}