/**
 * WPW Priority Towns Styles - Scorecard Version
 * Version: 2.5.1 - Font size fix with !important overrides
 */

.wpw-priority-towns {
    margin: 2rem 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.wpw-tier-section {
    margin-bottom: 4rem;
    clear: both;
}

.wpw-tier-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #0066cc;
}

.wpw-tier-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem;
    color: #1a1a1a !important;
    line-height: 1.3 !important;
}

.wpw-tier-frequency {
    font-size: 0.8125rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0066cc !important;
    font-weight: 600 !important;
}

.wpw-tier-intro {
    font-size: 1.25rem !important;
    line-height: 1.7 !important;
    color: #555 !important;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    border-radius: 4px;
}

.wpw-towns-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-top: 1.5rem;
    width: 100% !important;
}

.wpw-town-card {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.wpw-town-card:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    transform: translateY(-2px);
}

.wpw-card-header {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    padding: 1rem 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.wpw-town-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wpw-town-name {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0;
    color: white !important;
    line-height: 1.3 !important;
}

.wpw-zip-code {
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 400 !important;
}

.wpw-need-rating {
    display: flex;
    gap: 6px;
    align-items: center;
}

.wpw-rating-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.2s ease;
}

.wpw-rating-circle.filled {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

.wpw-rating-circle.empty {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.wpw-town-card:hover .wpw-rating-circle.filled {
    transform: scale(1.15);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.4);
}

.wpw-card-body {
    padding: 1.5rem !important;
    box-sizing: border-box !important;
}

.wpw-town-rank {
    display: inline-block;
    background: #fff5e6;
    color: #ff6b35 !important;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.wpw-town-description {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    color: #444 !important;
    margin-bottom: 1rem;
}

.wpw-town-link {
    display: inline-block;
    color: #0066cc !important;
    text-decoration: none;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: color 0.2s;
}

.wpw-town-link:hover {
    color: #004499;
    text-decoration: underline;
}

.wpw-town-link::after {
    content: ' →';
}

@media (max-width: 768px) {
    .wpw-towns-grid {
        grid-template-columns: 1fr;
    }

    .wpw-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wpw-score-badge {
        align-self: flex-end;
    }
}
