/* JazzEdge Practice Hub - Frontend Styles */

.jph-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.jph-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.jph-user-info h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.jph-level-info {
    margin-top: 10px;
}

.jph-level {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.jph-xp-bar {
    width: 200px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    margin: 5px 0;
}

.jph-xp-progress {
    height: 100%;
    background: #fff;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.jph-xp-text {
    font-size: 14px;
    opacity: 0.8;
}

.jph-quick-stats {
    display: flex;
    gap: 30px;
}

.jph-stat {
    text-align: center;
}

.jph-stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.jph-stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.jph-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.jph-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
}

.jph-recommendation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.jph-priority-high {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.jph-priority-medium {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.jph-priority-low {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.jph-rec-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.jph-rec-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.jph-rec-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jph-duration {
    font-size: 14px;
    color: #666;
}

.jph-practice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
}

.jph-item-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.jph-item-info p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 14px;
}

.jph-category {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.jph-add-item {
    text-align: center;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
}

.jph-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.jph-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.jph-btn-primary {
    background: #0073aa;
    color: white;
}

.jph-btn-primary:hover {
    background: #005a87;
}

.jph-btn-secondary {
    background: #6c757d;
    color: white;
}

.jph-btn-secondary:hover {
    background: #545b62;
}

.jph-btn-outline {
    background: transparent;
    border: 2px solid #0073aa;
    color: #0073aa;
}

.jph-btn-outline:hover {
    background: #0073aa;
    color: white;
}

.jph-session {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.jph-session:last-child {
    border-bottom: none;
}

.jph-session-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.jph-session-info p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 14px;
}

.jph-session-date {
    font-size: 12px;
    color: #999;
}

.jph-session-stats {
    text-align: right;
}

.jph-xp-earned {
    color: #28a745;
    font-weight: bold;
    display: block;
}

.jph-improvement {
    color: #17a2b8;
    font-size: 12px;
}

.jph-badges {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.jph-badge {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
    transition: transform 0.2s ease;
}

.jph-badge:hover {
    transform: translateY(-2px);
}

.jph-rarity-common {
    border-color: #6c757d;
}

.jph-rarity-uncommon {
    border-color: #28a745;
}

.jph-rarity-rare {
    border-color: #007bff;
}

.jph-rarity-epic {
    border-color: #6f42c1;
}

.jph-rarity-legendary {
    border-color: #fd7e14;
}

.jph-badge-icon {
    font-size: 24px;
    margin-right: 15px;
}

.jph-badge-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.jph-badge-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Modal Styles */
.jph-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.jph-modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.jph-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.jph-modal-header h3 {
    margin: 0;
    color: #333;
}

.jph-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

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

.jph-modal-body {
    padding: 20px;
}

.jph-form-group {
    margin-bottom: 20px;
}

.jph-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.jph-form-group input,
.jph-form-group select,
.jph-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.jph-form-group input:focus,
.jph-form-group select:focus,
.jph-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.jph-sentiment-rating {
    display: flex;
    gap: 10px;
}

.jph-sentiment-rating input[type="radio"] {
    display: none;
}

.jph-sentiment-rating label {
    font-size: 24px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.jph-sentiment-rating input[type="radio"]:checked + label {
    opacity: 1;
}

.jph-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jph-stats-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .jph-quick-stats {
        gap: 20px;
    }
    
    .jph-recommendation {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .jph-practice-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .jph-session {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .jph-session-stats {
        text-align: center;
    }
    
    .jph-badges {
        grid-template-columns: 1fr;
    }
    
    .jph-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .jph-form-actions {
        flex-direction: column;
    }
}

/* Loading States */
.jph-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.jph-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.jph-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.jph-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.jph-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
