/* Breathing exercise animation */
@keyframes breathing {
    0% {
        transform: scale(1);
        border-color: #3b82f6;
    }
    50% {
        transform: scale(1.5);
        border-color: #10b981;
    }
    100% {
        transform: scale(1);
        border-color: #3b82f6;
    }
}

.animate-breathing {
    animation: breathing 12s ease-in-out infinite;
}

/* Visual effects transitions */
.visual-effect {
    transition: opacity 0.5s ease-in-out;
}

/* Custom range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: #374151;
    height: 4px;
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -6px;
    background-color: #3b82f6;
    height: 16px;
    width: 16px;
    border-radius: 50%;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]:focus::-webkit-slider-thumb {
    background-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Meditation timer styles */
.meditation-timer {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

/* Ambient sound controls */
.ambient-sound-control {
    width: 100%;
    max-width: 200px;
}

/* Visual effect preview */
.visual-effect-preview {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.visual-effect-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.visual-effect-preview:hover img {
    transform: scale(1.1);
}

/* Modal backdrop blur */
.modal-backdrop {
    backdrop-filter: blur(8px);
}

/* Notification styles */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #1f2937;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
    opacity: 0;
    transform: translateY(-1rem);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Relaxation Mode Styles */
.relaxation-card {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.relaxation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Ambient Sound Controls */
.sound-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.sound-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.sound-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Visual Effects */
.visual-effect {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.visual-effect::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* Meditation Timer */
.meditation-timer {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.meditation-progress {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) var(--progress), rgba(255, 255, 255, 0.1) var(--progress));
    transition: all 0.2s ease;
}

/* Breathing Exercise */
.breathing-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--primary) 0%, transparent 70%);
    animation: breathe 8s infinite ease-in-out;
    opacity: 0.8;
}

@keyframes breathe {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Ambient Sound Buttons */
.ambient-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ambient-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.ambient-button.active {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary);
}

/* Scene Transitions */
.scene-transition {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scene-transition.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.scene-transition.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Ambient Light Effects */
.ambient-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.5;
    background: 
        radial-gradient(circle at 0% 0%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%);
}

/* Meditation Progress Ring */
.progress-ring {
    transform: rotate(-90deg);
    transform-origin: center;
}

.progress-ring circle {
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
} 