/*
 * File: page_styles/symptomsPlus.css
 * Purpose: Symptom Cards & CRUD Buttons - Launch Ready Styling
 * Version: 1.0
 * Date: 2025-11-02
 * Author: Claude AI Assistant
 * 
 * Coordinates with purple button gradient theme
 * Desktop: 3-4 cards across
 * Mobile: Single column
 */

/* ============================================================================
   SYMPTOM CARDS - GRID LAYOUT
   ============================================================================ */

.symptoms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 10px;
}

.symptom-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.symptom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

/* Body Chart cards - special styling */
.body-chart-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-left: 4px solid #667eea;
}

/* ============================================================================
   CARD HEADER
   ============================================================================ */

.symptom-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.symptom-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
    flex: 1;
}

.body-chart-card .symptom-header h3 {
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================================
   CRUD BUTTONS - Right Side Actions
   ============================================================================ */

.symptom-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.edit-symptom-btn,
.delete-symptom-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.edit-symptom-btn:hover,
.delete-symptom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.delete-symptom-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.delete-symptom-btn:hover {
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.5);
}

/* ============================================================================
   CARD CONTENT
   ============================================================================ */

.symptom-details {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.symptom-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    font-style: italic;
}

.symptom-location,
.symptom-severity,
.symptom-onset,
.symptom-description,
.symptom-notes {
    margin: 8px 0;
}

.symptom-description,
.symptom-notes {
    padding: 12px;
    background: #f9f9f9;
    border-left: 3px solid #667eea;
    border-radius: 4px;
    margin-top: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ============================================================================
   PAIN POINTS (Body Chart specific)
   ============================================================================ */

.pain-points-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.pain-points-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.pain-point-item {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.body-part-badge,
.intensity-badge,
.view-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.body-part-badge {
    background: #667eea;
    color: white;
}

.intensity-badge {
    background: #f5576c;
    color: white;
}

.view-badge {
    background: #e0e0e0;
    color: #555;
}

/* ============================================================================
   MOBILE RESPONSIVENESS
   ============================================================================ */

@media (max-width: 768px) {
    .symptoms-list {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 5px;
    }
    
    .symptom-card {
        padding: 15px;
    }
    
    .symptom-header h3 {
        font-size: 18px;
    }
    
    .symptom-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .edit-symptom-btn,
    .delete-symptom-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* ============================================================================
   LOADING & EMPTY STATES
   ============================================================================ */

.loading-spinner,
.no-symptoms-message {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 16px;
}

.loading-spinner i {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 10px;
}

.no-symptoms-message {
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 12px;
}