/* Card Components - Consolidated duplicates */

/* City Grid - Consolidated duplicate definition */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin: 15px 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
}

.city-grid.collapsed {
    opacity: 0;
    transform: scaleY(0);
    margin: 0;
    padding: 0;
    height: 0;
}

.city-checkbox {
    display: flex;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.city-checkbox:hover {
    background: #f8f9fa;
}

.city-checkbox input {
    margin-right: 8px;
}

/* State Section */
.state-section {
    margin-bottom: 30px;
}

/* State Header - Consolidated duplicate pattern */
.state-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s;
}

.state-header:hover {
    background: #e9ecef;
}

.state-header h3 {
    margin: 0;
    flex: 1;
}

/* State Toggle - Consolidated duplicate */
.state-toggle {
    font-size: 1.3em;
    color: #666;
    margin-right: 12px;
    transition: transform 0.3s ease;
    line-height: 1;
    cursor: pointer;
}

.state-toggle.collapsed {
    transform: rotate(-90deg);
}

/* City List Item */
.city-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 4px;
    margin: 5px 0;
    border: 1px solid #ddd;
}

.city-list-item:hover {
    background: #f8f9fa;
}

/* Vote Buttons Container */
.vote-buttons {
    display: flex;
    gap: 5px;
}

/* Campaign City Cards */
.campaign-city-card {
    position: relative;
    padding: 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s;
}

.campaign-city-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.campaign-city-card.has-results {
    border-left: 4px solid #28a745;
}

.campaign-city-card.no-results {
    border-left: 4px solid #dc3545;
}

/* City Badge */
.city-badge {
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
}

.badge-found {
    background: #d4edda;
    color: #155724;
}

.badge-empty {
    background: #f8d7da;
    color: #721c24;
}
