/* Home Page Styles */

.home-header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.home-header h1 {
    color: white;
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

/* Loading State */
.loading {
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.error-message {
    text-align: center;
    color: white;
    padding: 40px 20px;
    background: rgba(255, 0, 0, 0.2);
    border-radius: 10px;
    margin: 20px;
}

.retry-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.retry-btn:hover {
    transform: scale(1.05);
}

/* Countries Grid */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

/* Section Header */
.section-header {
    margin-top: 30px;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.section-header:first-child {
    margin-top: 0;
}

.section-header h2 {
    color: white;
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 5px 0 0 0;
    text-align: left;
}

/* Country Card */
.country-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.country-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.country-flag {
    font-size: 40px;
    line-height: 1;
}

.country-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.country-code {
    color: #666;
    font-size: 14px;
}

.number-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.detail-label {
    color: #666;
    font-size: 14px;
}

.detail-value {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.quantity-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
}

.quantity-badge.low {
    background: #fff3e0;
    color: #e65100;
}

.quantity-badge.out {
    background: #ffebee;
    color: #c62828;
}

/* Number Type Badge */
.number-type {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.number-type.standard {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #006064;
}

.number-type.premium {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #880e4f;
}

.number-type.elite {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.number-type.diamond {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #01579b;
}

.number-type.special {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #b71c1c;
}

.price-display {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin-top: 12px;
    text-align: center;
}

.buy-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.buy-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-header h1 {
        font-size: 20px;
    }
    
    .header-logo {
        width: 50px;
        height: 50px;
    }
    
    .countries-grid {
        grid-template-columns: 1fr;
    }
    
    .country-flag {
        font-size: 40px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .home-header {
        padding: 20px 10px;
    }
    
    .home-header h1 {
        font-size: 16px;
    }
    
    .country-card {
        padding: 15px;
    }
    
    .country-flag {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
}

