/* Country Eligibility Tool Styles - Updated for Regional Display */

/* Summary Section */
.eligibility-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.summary-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.summary-stats {
    margin-bottom: 1.5rem;
}

.stat-item {
    display: inline-block;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.top-recommendations {
    margin-bottom: 1.5rem;
}

.top-recommendations h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.recommendation-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.recommendation-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.summary-section {
    text-align: left;
    margin-bottom: 1rem;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.improvement-list {
    list-style: none;
    padding: 0;
}

.improvement-list li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.improvement-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Regional Results */
.regional-results {
    margin-top: 2rem;
}

.regions-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.region-section {
    margin-bottom: 3rem;
}

.region-title {
    font-size: 1.4rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Country Cards */
.country-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.country-card.eligible {
    border-left-color: #48bb78;
}

.country-card.not-eligible {
    border-left-color: #f56565;
    opacity: 0.75;
}

.country-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.country-name {
    margin: 0;
    font-size: 1.2rem;
    color: #2d3748;
    font-weight: 600;
}

.eligibility-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.eligibility-badge.eligible {
    background-color: #c6f6d5;
    color: #22543d;
}

.eligibility-badge.not-eligible {
    background-color: #fed7d7;
    color: #742a2a;
}

.badge-icon {
    font-weight: bold;
    font-size: 0.9rem;
}

/* Country Details */
.country-details {
    display: grid;
    gap: 0.75rem;
}

.detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.detail-item.full-width {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
}

.detail-label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

.detail-value {
    font-size: 0.9rem;
    color: #2d3748;
    font-weight: 500;
}

/* Special styling for specific values */
.detail-value.demand-high {
    color: #38a169;
    font-weight: 600;
}

.detail-value.demand-medium {
    color: #d69e2e;
    font-weight: 600;
}

.detail-value.demand-low {
    color: #e53e3e;
    font-weight: 600;
}

.detail-value.speaker-required {
    color: #e53e3e;
    font-weight: 600;
}

.detail-value.speaker-preferred {
    color: #d69e2e;
    font-weight: 600;
}

.detail-value.speaker-not-required {
    color: #38a169;
    font-weight: 600;
}

/* Form styling updates */
.custom-input-group {
    width: 100%;
}

.custom-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.custom-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Error message styling */
.error-message {
    text-align: center;
    padding: 2rem;
    background: #fed7d7;
    color: #742a2a;
    border-radius: 12px;
    margin: 2rem 0;
}

.error-message h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.error-actions {
    margin-top: 1rem;
}

.reload-page-button {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.reload-page-button:hover {
    background: #c53030;
}

/* Responsive design */
@media (max-width: 768px) {
    .countries-grid {
        grid-template-columns: 1fr;
    }

    .country-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .detail-item {
        grid-template-columns: 1fr;
    }

    .recommendation-tags {
        justify-content: flex-start;
    }
}