/**
 * Public Styles for Cheviot Violations & Requests
 * Minimal styling - relies on theme styles
 */

/* Violations list - Basic structure only */
.cvr-violations-list {
    margin: 20px 0;
}

/* Filters */
.cvr-violations-filters {
    margin-bottom: 25px;
}

.cvr-filters-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.cvr-filter-group {
    flex: 1;
    min-width: 200px;
}

.cvr-filter-group label {
    display: block;
    margin-bottom: 6px;
}

/* Grid - One per row */
.cvr-violations-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.cvr-violation-card {
    padding: 25px 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cvr-violation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.cvr-violation-title {
    flex: 1;
    margin: 0;
}

.cvr-violation-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

/* Badges - Minimal styling */
.cvr-category-badge,
.cvr-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cvr-status-approved,
.cvr-status-in-progress {
    background: #28a745;
    color: #fff;
}

.cvr-status-resolved {
    background: #17a2b8;
    color: #fff;
}

.cvr-status-closed {
    background: #6c757d;
    color: #fff;
}

/* Content */
.cvr-violation-content {
    margin: 0;
}

.cvr-violation-location {
    padding: 10px 15px;
    margin: 0;
}

.cvr-violation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
}

.cvr-violation-date {
    font-size: 13px;
    font-style: italic;
}

/* Single violation page - Minimal structure */
.cvr-single-violation {
    max-width: 900px;
    margin: 0 auto;
}

.cvr-detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cvr-detail-label {
    flex: 0 0 150px;
    font-weight: 600;
}

.cvr-detail-value {
    flex: 1;
}

.cvr-attachments-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cvr-attachment-item {
    max-width: 200px;
}

/* Timeline/Updates - Minimal structure */
.cvr-timeline-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 30px;
    border-left: 2px solid #e5e7eb;
}

.cvr-timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.cvr-timeline-dot {
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: #0066cc;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
}

.cvr-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cvr-timeline-date {
    font-size: 14px;
    font-weight: 600;
}

.cvr-timeline-content {
    font-size: 14px;
    line-height: 1.6;
}

/* Pagination - Uses theme styles */
.cvr-pagination {
    margin-top: 30px;
}

/* No results */
.cvr-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.cvr-no-results-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.cvr-no-results-text {
    font-size: 18px;
    font-weight: 600;
}

/* Loading state */
.cvr-loading {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.cvr-loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f4f6;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: cvr-spin 0.8s linear infinite;
}

@keyframes cvr-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .cvr-violation-card {
        padding: 20px;
    }
    
    .cvr-violation-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .cvr-filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cvr-filter-group {
        width: 100%;
    }
    
    .cvr-filter-button {
        width: 100%;
    }
    
    .cvr-violation-meta {
        flex-wrap: wrap;
    }
    
    .cvr-violation-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .cvr-view-details-btn {
        align-self: flex-end;
    }
    
    .cvr-detail-row {
        flex-direction: column;
    }
    
    .cvr-detail-label {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .cvr-violation-title {
        font-size: 18px;
    }
    
    .cvr-violations-filters {
        padding: 15px;
    }
}

