/* base layout adjustments */
:root {
    --primary-color: #6DAB27;
    --primary-dark: #588c1e;
    --primary-light: #e5f5d6;
    --text-color: #333333;
    --bg-color: #f9fdf5;
    --circle-base: 250px;
}

body {
    background-color: var(--bg-color);
}

.site-content {
    background-color: transparent !important;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Timer Section formatting */
.timer-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(109, 171, 39, 0.1);
    margin-bottom: 50px;
    text-align: center;
}

.timer-header h1 {
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.timer-header p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Presets */
.preset-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.preset-btn {
    background: #f0f0f0;
    border: none;
    color: #555;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background: #e0e0e0;
}

.preset-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(109, 171, 39, 0.3);
}

/* Customizer Inputs */
.customizer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--primary-light);
    border-radius: 12px;
}

.customizer.hidden {
    display: none;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group label {
    font-size: 12px;
    color: var(--primary-dark);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.input-group input {
    width: 50px;
    padding: 8px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
    outline: none;
}

/* The Breathing Circle */
.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 350px;
    margin-bottom: 30px;
}

.timer-circle {
    width: var(--circle-base);
    height: var(--circle-base);
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(109, 171, 39, 0.4) 100%);
    box-shadow: 0 0 40px rgba(109, 171, 39, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 1s linear, background 0.5s ease;
}

/* Animations for states */
.timer-circle.inhale {
    transform: scale(1.4);
    background: radial-gradient(circle, #dcf0c3 0%, rgba(109, 171, 39, 0.6) 100%);
}

.timer-circle.hold {
    background: radial-gradient(circle, #e0e8e0 0%, rgba(109, 171, 39, 0.5) 100%);
    /* Transform is managed via JS to keep the current scale */
}

.timer-circle.exhale {
    transform: scale(0.9);
    background: radial-gradient(circle, #f0e6e6 0%, rgba(171, 107, 39, 0.4) 100%);
}

/* Timer Text */
.cycle-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
    z-index: 2;
    transition: transform 1s linear;
}

.time-countdown {
    font-size: 48px;
    font-weight: 300;
    color: var(--text-color);
    z-index: 2;
    transition: transform 1s linear;
}

/* Keep text scale stable when circle expands */
.timer-circle.inhale .cycle-text, 
.timer-circle.inhale .time-countdown {
    transform: scale(0.714); /* 1 / 1.4 */
}
.timer-circle.exhale .cycle-text, 
.timer-circle.exhale .time-countdown {
    transform: scale(1.11); /* 1 / 0.9 */
}

/* Main Controls */
.timer-controls {
    margin-top: 20px;
}

.main-btn {
    background: var(--primary-color);
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(109, 171, 39, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(109, 171, 39, 0.4);
    background: var(--primary-dark);
}

.main-btn.stop {
    background: #e74c3c;
    box-shadow: 0 8px 15px rgba(231, 76, 60, 0.3);
}

.main-btn.stop:hover {
    background: #c0392b;
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.4);
}

.main-btn.hidden {
    display: none;
}

/* Educational Content */
.educational-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.educational-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.educational-content > p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    text-align: center;
}

.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.technique-card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.technique-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.technique-card h4 {
    margin-top: 0;
    color: var(--primary-dark);
    font-size: 18px;
    margin-bottom: 15px;
}

.technique-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 600px) {
    .timer-circle {
        --circle-base: 200px;
    }
    
    .customizer {
        flex-wrap: wrap;
    }
}
