/* ========================================
   PROFILE MODAL STYLES
   Extracted from filters.js for maintainability
   ======================================== */

/* NOTE: These styles only apply to profile-modal-overlay to avoid conflicts */
/* Generic .modal-overlay is handled in modals.css */

#profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

#profile-modal-overlay.show {
    display: flex;
}

.profile-modal {
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    margin: auto;
    background: white;
    border-radius: 12px;
}

.modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.rating-distribution {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px;
}

.rating-distribution h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.rating-row {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rating-label {
    font-weight: 500;
}

.rating-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    transition: width 0.3s ease;
}

.rating-count {
    text-align: right;
    font-weight: 500;
}

.reviews-section {
    margin: 20px;
}

.reviews-section h3 {
    margin-bottom: 15px;
}

.review-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

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

.review-rating {
    font-size: 18px;
}

.review-date {
    color: #666;
    font-size: 14px;
}

.review-author {
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

/* Note: .verified-badge is also defined in driver-cards.css */

.review-comment {
    color: #444;
    line-height: 1.5;
    margin-bottom: 10px;
}

.review-response {
    background: #f0f8ff;
    border-left: 3px solid #2196F3;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

.review-response strong {
    color: #2196F3;
    display: block;
    margin-bottom: 5px;
}

.review-response p {
    margin: 0;
    color: #555;
}

.review-helpful {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.no-reviews {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

.contact-info-section {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px;
    border-left: 4px solid #3498db;
}

.contact-info-section h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e3f2fd;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-weight: 600;
    color: #555;
    min-width: 140px;
    font-size: 0.9rem;
}

.contact-value {
    color: #2c3e50;
    font-size: 0.95rem;
}

.contact-value a {
    color: #3498db;
    text-decoration: none;
}

.contact-value a:hover {
    text-decoration: underline;
}

.profile-description {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e3f2fd;
}

.profile-description h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1rem;
}

.profile-description p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}
