/* MEDITATION TIMER COMPONENT STYLES */

.meditation-timer-container {
    position: relative;
    background: linear-gradient(145deg, #f0f4f7, #ffffff);
    border-radius: 30px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1), -20px -20px 60px rgba(255, 255, 255, 0.9);
    text-align: center;
    overflow: hidden;
}

.meditation-timer-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.05) 0%, transparent 70%);
    animation: ambient-glow 8s infinite ease-in-out;
    pointer-events: none;
}

@keyframes ambient-glow {
    0%,
    100% {
        transform: scale(0.8) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.6;
    }
}

.timer-presets {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.preset-button {
    background: linear-gradient(145deg, #e3f2fd, #bbdefb);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #1565c0;
}

.preset-button:hover,
.preset-button.active {
    background: linear-gradient(145deg, #ffc107, #ffb300);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.timer-circle-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 30px;
}

.timer-circle-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
    box-shadow: inset 10px 10px 20px rgba(0, 0, 0, 0.1), inset -10px -10px 20px rgba(255, 255, 255, 0.8);
}

.timer-progress-ring {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 50%;
    background: conic-gradient(var(--zen-accent) 0deg, transparent 0deg);
    transition: background 0.5s ease;
}

.timer-inner-circle {
    position: absolute;
    top: 30px;
    left: 30px;
    width: calc(100% - 60px);
    height: calc(100% - 60px);
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1), -5px -5px 15px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.timer-display {
    font-size: 2.8em;
    font-weight: 300;
    color: var(--zen-void);
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.timer-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breathing-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid var(--zen-water);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.breathing-indicator.active {
    opacity: 0.7;
    animation: breathe-pulse 4s infinite ease-in-out;
}

@keyframes breathe-pulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.8);
    }
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.control-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2), -5px -5px 15px rgba(255, 255, 255, 0.8);
}

.control-button.play {
    background: linear-gradient(145deg, #4caf50, #45a049);
    color: white;
}

.control-button.pause {
    background: linear-gradient(145deg, #ff9800, #f57c00);
    color: white;
}

.control-button.reset {
    background: linear-gradient(145deg, #f44336, #d32f2f);
    color: white;
}

.control-button:hover {
    transform: translateY(-3px);
    box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.3), -7px -7px 20px rgba(255, 255, 255, 0.9);
}

.control-button:active {
    transform: translateY(0);
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2), -3px -3px 10px rgba(255, 255, 255, 0.8);
}

.session-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: linear-gradient(145deg, #fff3e0, #ffffff);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1), -5px -5px 15px rgba(255, 255, 255, 0.8);
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: var(--zen-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meditation-types {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.type-selector {
    background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    position: relative;
    overflow: hidden;
}

.type-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.type-selector:hover::before {
    left: 100%;
}

.type-selector.active {
    background: linear-gradient(145deg, var(--zen-accent), var(--zen-gold));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

/* BELL SOUND ANIMATION */
.bell-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    opacity: 0;
    pointer-events: none;
}

.bell-animation.ring {
    animation: bell-ring-effect 2s ease-out;
}

@keyframes bell-ring-effect {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .meditation-timer-container {
        padding: 20px;
        margin: 20px 0;
    }

    .timer-circle-container {
        width: 220px;
        height: 220px;
    }

    .timer-display {
        font-size: 2.2em;
    }

    .timer-presets {
        gap: 10px;
    }

    .preset-button {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .control-button {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }
}

/* DARK MODE ADAPTATIONS */
[data-md-color-scheme='slate'] .meditation-timer-container {
    background: linear-gradient(145deg, #3b4252, #434c5e);
}

[data-md-color-scheme='slate'] .timer-circle-bg {
    background: linear-gradient(145deg, #2e3440, #3b4252);
    box-shadow: inset 10px 10px 20px rgba(0, 0, 0, 0.3), inset -10px -10px 20px rgba(76, 86, 106, 0.3);
}

[data-md-color-scheme='slate'] .timer-inner-circle {
    background: linear-gradient(145deg, #434c5e, #4c566a);
}

[data-md-color-scheme='slate'] .timer-display {
    color: #eceff4;
}

[data-md-color-scheme='slate'] .preset-button {
    background: linear-gradient(145deg, #4c566a, #5e81ac);
    color: #eceff4;
}

[data-md-color-scheme='slate'] .stat-card {
    background: linear-gradient(145deg, #434c5e, #4c566a);
}
