/* ============================================
   Meditation Pad Styles (forest-meditation.css)
   ============================================ */

.meditation-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 30px;
}

.meditation-header {
    text-align: center;
    margin-bottom: 40px;
}

.meditation-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: #8cc082;
    margin-bottom: 10px;
}

.meditation-subtitle {
    font-size: 1.1rem;
    color: #5a8a56;
    font-style: italic;
}

/* Visualizer */
.visualizer-container {
    background: linear-gradient(135deg, rgba(15, 35, 20, 0.9), rgba(10, 25, 15, 0.95));
    border: 1px solid rgba(124, 184, 112, 0.15);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
}

.visualizer {
    width: 100%;
    height: 120px;
    border-radius: 8px;
}

/* Pad Grid */
.pad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.pad-layer {
    background: linear-gradient(135deg, rgba(20, 50, 25, 0.7), rgba(15, 35, 20, 0.9));
    border: 1px solid rgba(124, 184, 112, 0.15);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pad-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(124, 184, 112, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pad-layer:hover::before {
    opacity: 1;
}

.pad-layer:hover {
    border-color: rgba(124, 184, 112, 0.4);
    box-shadow: 0 4px 20px rgba(124, 184, 112, 0.15);
}

.pad-layer.active {
    border-color: rgba(124, 184, 112, 0.6);
    box-shadow: 0 0 25px rgba(124, 184, 112, 0.25);
}

.pad-layer.active::before {
    opacity: 1;
    background: radial-gradient(circle at center, rgba(124, 184, 112, 0.25), transparent 70%);
    pointer-events: none;
}

.pad-layer::before {
    pointer-events: none;
}

.pad-layer-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.pad-layer-name {
    font-size: 0.85rem;
    color: #8fa88e;
    font-weight: 500;
    margin-bottom: 8px;
}

.pad-layer-freq {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    color: #5a8a56;
    margin-bottom: 8px;
}

.pad-layer-vol {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(124, 184, 112, 0.2);
    border-radius: 2px;
    outline: none;
}

.pad-layer-vol::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #7cb870;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pad-layer-vol::-webkit-slider-thumb:hover {
    background: #9ac89a;
    box-shadow: 0 0 8px rgba(124, 184, 112, 0.4);
}

.pad-layer-vol {
    pointer-events: auto !important;
}

.pad-layer-vol::-webkit-slider-thumb {
    pointer-events: auto !important;
}

/* Pad Panels */
.pad-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.pad-panel {
    background: linear-gradient(135deg, rgba(20, 50, 25, 0.7), rgba(15, 35, 20, 0.9));
    border: 1px solid rgba(124, 184, 112, 0.15);
    border-radius: 12px;
    padding: 20px;
}

.panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #9ac89a;
    margin-bottom: 14px;
}

.controls-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-group label {
    font-size: 0.8rem;
    color: #8fa88e;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pad-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(124, 184, 112, 0.2);
    border-radius: 3px;
    outline: none;
}

.pad-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #7cb870;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pad-slider::-webkit-slider-thumb:hover {
    background: #9ac89a;
    box-shadow: 0 0 10px rgba(124, 184, 112, 0.4);
}

.slider-val {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    color: #7cb870;
    text-align: right;
}

/* Presets Section */
.presets-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 35, 20, 0.9), rgba(10, 25, 15, 0.95));
    border: 1px solid rgba(124, 184, 112, 0.15);
    border-radius: 12px;
    padding: 20px;
}

.presets-section h3 {
    color: #8aaa86;
}

.preset-btn {
    background: rgba(20, 50, 25, 0.5);
    border: 1px solid rgba(124, 184, 112, 0.15);
    color: #7a9a7a;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    margin: 0 6px 10px;
}

.preset-btn:hover {
    background: rgba(30, 70, 35, 0.6);
    border-color: rgba(124, 184, 112, 0.3);
    color: #9ac89a;
}

.preset-btn.active {
    background: linear-gradient(135deg, rgba(124, 184, 112, 0.25), rgba(100, 160, 90, 0.35));
    border-color: rgba(124, 184, 112, 0.5);
    color: #c8dcc8;
}

/* Back link */
.back-link {
    text-align: center;
    margin-top: 30px;
}

.back-link a {
    color: #5a8a56;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.back-link a:hover {
    color: #8cc082;
}

/* Responsive */
@media (max-width: 768px) {
    .meditation-container {
        padding: 20px 15px;
    }

    .pad-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .controls-row {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
        gap: 12px;
    }
}