/**
 * Healing Circle Frontend Styles
 * Version: 1.0.0
 */

/* Base Styles */
.healing-circle-container * {
    box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .healing-circle-container {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .healing-circle-wrapper {
        margin-bottom: 20px;
    }
    
    .session-timer {
        font-size: 36px !important;
    }
    
    .frequency-display {
        font-size: 18px !important;
    }
    
    .healing-controls {
        padding: 20px !important;
    }
    
    .control-buttons {
        flex-direction: column;
    }
    
    .healing-btn {
        width: 100% !important;
        min-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .session-timer {
        font-size: 28px !important;
    }
    
    .intensity-display {
        width: 150px !important;
    }
}

/* Loading state */
.healing-circle-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success message */
.healing-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    animation: slideDown 0.3s ease;
}

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

/* Error message */
.healing-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Particle animation */
@keyframes particleFloat {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(0, -100px);
        opacity: 0;
    }
}

.energy-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particleFloat 3s infinite;
}

/* Pulse animation for active state */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.healing-circle-wrapper.active {
    animation: pulse 2s infinite;
}

/* Glow effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 20px 60px rgba(102, 126, 234, 0.6),
                    0 0 40px rgba(102, 126, 234, 0.4);
    }
}

.healing-circle-wrapper.active {
    animation: pulse 2s infinite, glow 3s infinite;
}

/* Custom scrollbar for history */
.history-list::-webkit-scrollbar {
    width: 8px;
}

.history-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Accessibility */
.healing-btn:focus,
.healing-select:focus,
.healing-input:focus,
.healing-slider:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .healing-controls,
    .healing-circle-canvas {
        display: none;
    }
    
    .healing-history {
        page-break-before: always;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .healing-controls,
    .session-notes-box,
    .healing-history {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .healing-select,
    .healing-input,
    #session-notes {
        background: #3d3d3d;
        color: #e0e0e0;
        border-color: #4d4d4d;
    }
    
    .history-item {
        background: #3d3d3d;
    }
}

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #333;
    color: white;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    margin-bottom: 5px;
    z-index: 1000;
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    margin-bottom: -5px;
}
