/* ================================================
   BREATHE - ORGANIC ZEN FOCUS TIMER
   ================================================ */

:root {
    /* Nature-inspired color palette */
    --color-sage: #658B5F;
    --color-forest: #2D5016;
    --color-terracotta: #C4766F;
    --color-clay: #A67C6D;
    --color-cream: #F5F1E8;
    --color-sand: #E8DED0;
    --color-earth: #4A4A4A;
    --color-mist: #D4C9BD;

    /* Functional colors */
    --color-bg: var(--color-cream);
    --color-surface: #FFFFFF;
    --color-primary: var(--color-sage);
    --color-secondary: var(--color-terracotta);
    --color-accent: var(--color-forest);
    --color-text: var(--color-earth);
    --color-text-light: #7A7A7A;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Crimson Text', Georgia, serif;
    --font-ui: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Timing */
    --ease-gentle: cubic-bezier(0.4, 0.0, 0.2, 1);
    --ease-smooth: cubic-bezier(0.33, 1, 0.68, 1);
    --duration-fast: 0.2s;
    --duration-medium: 0.4s;
    --duration-slow: 0.8s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   ORGANIC BACKGROUND
   ================================================ */

.organic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--color-sage), var(--color-forest));
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-terracotta), var(--color-clay));
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--color-sage), var(--color-mist));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* ================================================
   CONTAINER & LAYOUT
   ================================================ */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
    position: relative;
    z-index: 1;
}

/* ================================================
   HEADER
   ================================================ */

.main-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    animation: fadeInDown 0.8s var(--ease-gentle);
}

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

.breathe-icon-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.breathe-icon {
    display: inline-block;
    color: var(--color-sage);
    margin-bottom: var(--space-sm);
    animation: breathePulse 4s ease-in-out infinite;
    transition: transform var(--duration-medium) var(--ease-gentle);
}

.breathe-icon-link:hover .breathe-icon {
    transform: scale(1.1);
}

@keyframes breathePulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.app-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.app-subtitle {
    font-family: var(--font-ui);
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--color-text-light);
    letter-spacing: 0.03em;
}

.last-updated-header {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: var(--space-xs);
    opacity: 0.7;
}

/* ================================================
   TIMER SECTION
   ================================================ */

.timer-section {
    background: var(--color-surface);
    border-radius: 40px;
    padding: var(--space-lg) var(--space-lg);
    box-shadow:
        0 10px 40px rgba(101, 139, 95, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s var(--ease-gentle) 0.2s backwards;
    transition: box-shadow 0.6s var(--ease-gentle);
}

.timer-section:hover {
    box-shadow:
        0 12px 48px rgba(101, 139, 95, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Session Info */
.session-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.mode-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: linear-gradient(135deg, rgba(101, 139, 95, 0.1), rgba(45, 80, 22, 0.05));
    padding: var(--space-xs) var(--space-md);
    border-radius: 50px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-forest);
}

.mode-icon {
    font-size: 1.2rem;
}

.status-pill {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-light);
    background: var(--color-sand);
    padding: var(--space-xs) var(--space-md);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--duration-medium) var(--ease-gentle);
}

.status-pill.running {
    background: var(--color-sage);
    color: white;
}

/* ================================================
   BREATHING CIRCLE TIMER
   ================================================ */

.timer-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: var(--space-lg) auto;
}

.breathing-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    z-index: 2;
}

.circle-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(101, 139, 95, 0.05), rgba(45, 80, 22, 0.02));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 32px rgba(101, 139, 95, 0.15),
        inset 0 2px 8px rgba(255, 255, 255, 0.8);
    position: relative;
    transition: transform var(--duration-slow) var(--ease-gentle);
}

.circle-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(101, 139, 95, 0.2), transparent 70%);
    opacity: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

.breathing-circle.breathing .circle-inner {
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.time-display {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 700;
    color: var(--color-forest);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
}

.time-label {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

/* Progress Ring */
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    z-index: 1;
    width: 300px;
    height: 300px;
}

.progress-ring-bg {
    fill: none;
    stroke: var(--color-sand);
    stroke-width: 3;
    opacity: 0.3;
    cx: 150;
    cy: 150;
    r: 145;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--color-sage);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 911;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
    cx: 150;
    cy: 150;
    r: 145;
}

/* Add gradient definition */
.progress-ring::before {
    content: '';
}

/* ================================================
   INTENTION SETTING
   ================================================ */

.intention-section {
    text-align: center;
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(101, 139, 95, 0.03), rgba(45, 80, 22, 0.02));
    border-radius: 20px;
    border: 1px solid rgba(101, 139, 95, 0.1);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: all 0.6s var(--ease-gentle);
}

.timer-section:hover .intention-section {
    max-height: 200px;
    opacity: 1;
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

/* Disable expansion when timer is running - focus mode, no distractions */
.timer-section.running:hover .intention-section {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
}

.intention-label {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-forest);
    display: block;
    margin-bottom: var(--space-sm);
}

.intention-input {
    width: 100%;
    max-width: 400px;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--color-sand);
    border-radius: 12px;
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: center;
    transition: all var(--duration-medium) var(--ease-gentle);
}

.intention-input::placeholder {
    color: var(--color-text-light);
    opacity: 0.6;
}

.intention-input:focus {
    outline: none;
    border-color: var(--color-sage);
    box-shadow: 0 0 0 3px rgba(101, 139, 95, 0.1);
}

/* ================================================
   CONTROLS
   ================================================ */

.controls {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.btn {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all var(--duration-medium) var(--ease-gentle);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-sage), var(--color-forest));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(101, 139, 95, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--color-sand);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-mist);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

/* ================================================
   SOUND CONTROLS
   ================================================ */

.sound-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    flex-wrap: wrap;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: all 0.6s var(--ease-gentle);
}

.timer-section:hover .sound-controls {
    max-height: 150px;
    opacity: 1;
    padding: var(--space-md);
    margin: var(--space-lg) 0;
}

.timer-section.running:hover .sound-controls {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
}

.sound-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sound-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--color-text);
    cursor: pointer;
}

.sound-icon {
    font-size: 1.2rem;
}

.sound-select {
    padding: var(--space-xs) var(--space-sm);
    border: 2px solid var(--color-sand);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-gentle);
}

.sound-select:focus {
    outline: none;
    border-color: var(--color-sage);
    box-shadow: 0 0 0 3px rgba(101, 139, 95, 0.1);
}

.sound-toggle {
    width: 44px;
    height: 24px;
    appearance: none;
    background: var(--color-sand);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background var(--duration-medium) var(--ease-gentle);
}

.sound-toggle::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: transform var(--duration-medium) var(--ease-gentle);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sound-toggle:checked {
    background: var(--color-sage);
}

.sound-toggle:checked::before {
    transform: translateX(20px);
}

/* ================================================
   SETTINGS PANEL
   ================================================ */

.settings-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-sand);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    border-top: none;
    transition: all 0.6s var(--ease-gentle);
}

.timer-section:hover .settings-panel {
    max-height: 300px;
    opacity: 1;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-sand);
}

.timer-section.running:hover .settings-panel {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    border-top: none;
}

.setting-item {
    text-align: center;
}

.setting-label {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
    display: block;
}

.setting-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-sand);
    background: var(--color-surface);
    color: var(--color-sage);
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-gentle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--color-sage);
    color: white;
    border-color: var(--color-sage);
    transform: scale(1.05);
}

.duration-input {
    width: 60px;
    height: 40px;
    border: 2px solid var(--color-sand);
    border-radius: 12px;
    background: var(--color-surface);
    color: var(--color-forest);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}

.duration-input::-webkit-inner-spin-button,
.duration-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.duration-input:focus {
    outline: none;
    border-color: var(--color-sage);
    box-shadow: 0 0 0 3px rgba(101, 139, 95, 0.1);
}

.duration-unit {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.session-count {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-terracotta);
    line-height: 1;
    margin-top: var(--space-sm);
}

/* ================================================
   FAQ SECTION
   ================================================ */

.faq-section {
    margin: var(--space-2xl) 0;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-surface);
    border-radius: 16px;
    padding: var(--space-lg) var(--space-xl);
    box-shadow:
        0 2px 12px rgba(101, 139, 95, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all var(--duration-medium) var(--ease-gentle);
    border-left: 4px solid transparent;
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.faq-item:hover {
    transform: translateX(8px);
    border-left-color: var(--color-sage);
    box-shadow:
        0 4px 20px rgba(101, 139, 95, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.05);
}

.faq-label {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-terracotta);
    opacity: 0.4;
    line-height: 1;
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.faq-content {
    flex: 1;
}

.faq-question {
    font-family: var(--font-ui);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.faq-answer {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
}

/* ================================================
   WISDOM CARDS
   ================================================ */

.wisdom-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.wisdom-card {
    background: var(--color-surface);
    border-radius: 24px;
    padding: var(--space-lg);
    box-shadow:
        0 4px 20px rgba(101, 139, 95, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all var(--duration-medium) var(--ease-gentle);
    animation: fadeInUp 0.8s var(--ease-gentle) backwards;
}

.wisdom-card:nth-child(1) { animation-delay: 0.3s; }
.wisdom-card:nth-child(2) { animation-delay: 0.4s; }
.wisdom-card:nth-child(3) { animation-delay: 0.5s; }
.wisdom-card:nth-child(4) { animation-delay: 0.6s; }

.wisdom-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 32px rgba(101, 139, 95, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.06);
}

.card-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-terracotta);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.card-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
    text-align: center;
    padding: var(--space-xl) 0;
    animation: fadeInUp 0.8s var(--ease-gentle) 0.7s backwards;
}

.footer-text {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.footer-leaf {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}

.footer-technique {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--color-text-light);
    opacity: 0.7;
}

.footer-attribution {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--color-text-light);
    opacity: 0.7;
    text-align: center;
    line-height: 1.6;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.footer-copyright {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--color-text-light);
    opacity: 0.7;
    text-align: center;
    line-height: 1.6;
}

.footer-link-inline {
    color: var(--color-forest);
    text-decoration: underline;
    transition: opacity var(--duration-fast) var(--ease-gentle);
}

.footer-link-inline:hover {
    opacity: 0.7;
}

/* ================================================
   BREATHING EXERCISE MODAL
   ================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 74, 74, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-medium) var(--ease-gentle);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--color-surface);
    border-radius: 32px;
    padding: var(--space-2xl);
    max-width: 550px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform var(--duration-medium) var(--ease-gentle);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-forest);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.modal-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.breathing-guide {
    display: flex;
    justify-content: center;
    margin: var(--space-xl) 0;
}

.breathing-circle-guide {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(101, 139, 95, 0.1), rgba(45, 80, 22, 0.05));
    border: 3px solid var(--color-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-slow) var(--ease-gentle);
}

.breathing-circle-guide.inhale {
    transform: scale(1.2);
    border-color: var(--color-forest);
    background: linear-gradient(135deg, rgba(101, 139, 95, 0.2), rgba(45, 80, 22, 0.1));
}

.breathing-circle-guide.hold {
    transform: scale(1.2);
}

.breathing-circle-guide.exhale {
    transform: scale(1);
}

.breathing-guide-inner {
    text-align: center;
}

.breathing-instruction {
    font-family: var(--font-ui);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: var(--space-xs);
}

.breathing-count {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-sage);
    line-height: 1;
}

.breathing-progress {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-xl) 0;
}

.breath-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-sand);
    transition: all var(--duration-medium) var(--ease-gentle);
}

.breath-dot.completed {
    background: var(--color-sage);
    transform: scale(1.2);
}

/* Breathing Intro Screen Styles */
.breathing-benefits {
    background: linear-gradient(135deg, rgba(101, 139, 95, 0.08), rgba(45, 80, 22, 0.04));
    border-radius: 16px;
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}

.benefits-title {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: var(--space-md);
}

.benefits-list {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.8;
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding-left: var(--space-lg);
    position: relative;
    margin-bottom: var(--space-sm);
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-sage);
    font-weight: bold;
}

.breathing-instructions {
    margin: var(--space-xl) 0;
}

.instructions-title {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: var(--space-md);
}

.instructions-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    margin-top: var(--space-lg);
}

/* Breathing Intro Screen Styles */
.breathing-benefits {
    background: linear-gradient(135deg, rgba(101, 139, 95, 0.08), rgba(45, 80, 22, 0.04));
    border-radius: 16px;
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.benefits-title {
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: var(--space-sm);
}

.benefits-list {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding-left: var(--space-lg);
    position: relative;
    margin-bottom: var(--space-xs);
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-sage);
    font-weight: bold;
    font-size: 1.1rem;
}

.breathing-instructions {
    margin: var(--space-lg) 0;
}

.instructions-title {
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: var(--space-sm);
}

.instructions-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.btn-link {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--color-text-light);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    transition: color var(--duration-fast) var(--ease-gentle);
}

.btn-link:hover {
    color: var(--color-forest);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--color-text-light);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    .container {
        padding: var(--space-lg) var(--space-md);
    }

    .app-title {
        font-size: 2.5rem;
    }

    .timer-section {
        padding: var(--space-lg) var(--space-md);
        border-radius: 32px;
    }

    .timer-container {
        width: 300px;
        height: 300px;
    }

    .breathing-circle {
        width: 240px;
        height: 240px;
    }

    .progress-ring {
        width: 300px;
        height: 300px;
    }

    .progress-ring-bg,
    .progress-ring-fill {
        cx: 150;
        cy: 150;
        r: 145;
    }

    .time-display {
        font-size: 3rem;
    }

    .controls {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .btn {
        width: 100%;
    }

    .settings-panel {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .wisdom-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .session-info {
        justify-content: center;
    }

    .timer-container {
        width: 280px;
        height: 280px;
    }

    .breathing-circle {
        width: 220px;
        height: 220px;
    }

    .progress-ring {
        width: 280px;
        height: 280px;
    }

    .progress-ring-bg,
    .progress-ring-fill {
        cx: 140;
        cy: 140;
        r: 135;
    }
}

/* ================================================
   RELATED PAGES (Internal Linking)
   ================================================ */

.related-pages {
    margin: var(--space-2xl) 0;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-sand);
    border-bottom: 1px solid var(--color-sand);
}

.related-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-forest);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.related-card {
    background: var(--color-surface);
    border-radius: 20px;
    padding: var(--space-lg);
    text-decoration: none;
    display: block;
    box-shadow:
        0 4px 20px rgba(101, 139, 95, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all var(--duration-medium) var(--ease-gentle);
    border: 2px solid transparent;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-sage);
    box-shadow:
        0 12px 32px rgba(101, 139, 95, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.06);
}

.related-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.related-card-title {
    font-family: var(--font-ui);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: var(--space-sm);
}

.related-card-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ================================================
   CONTENT PAGES
   ================================================ */

.content-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(101, 139, 95, 0.05), rgba(45, 80, 22, 0.02));
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(101, 139, 95, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.8s var(--ease-gentle) 0.2s backwards;
}

.hero-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-forest);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.hero-subtext {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Principle Cards */
.principle-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.principle-card {
    background: var(--color-surface);
    border-radius: 20px;
    padding: var(--space-lg);
    text-align: center;
    box-shadow:
        0 4px 20px rgba(101, 139, 95, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all var(--duration-medium) var(--ease-gentle);
    animation: fadeInUp 0.8s var(--ease-gentle) backwards;
}

.principle-card:nth-child(1) { animation-delay: 0.3s; }
.principle-card:nth-child(2) { animation-delay: 0.35s; }
.principle-card:nth-child(3) { animation-delay: 0.4s; }
.principle-card:nth-child(4) { animation-delay: 0.45s; }
.principle-card:nth-child(5) { animation-delay: 0.5s; }
.principle-card:nth-child(6) { animation-delay: 0.55s; }

.principle-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 32px rgba(101, 139, 95, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.06);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.card-summary {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-top: var(--space-sm);
}

/* Content Sections */
.content-section {
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.content-block {
    background: var(--color-surface);
    border-radius: 24px;
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow:
        0 4px 20px rgba(101, 139, 95, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
}

.block-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: var(--space-md);
}

.block-text {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.block-text:last-of-type {
    margin-bottom: var(--space-lg);
}

.practice-box {
    background: linear-gradient(135deg, rgba(101, 139, 95, 0.1), rgba(45, 80, 22, 0.05));
    border-left: 4px solid var(--color-sage);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.practice-title {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-forest);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.practice-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    font-style: italic;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    background: linear-gradient(135deg, rgba(101, 139, 95, 0.05), rgba(45, 80, 22, 0.02));
    border-radius: 32px;
    margin: var(--space-2xl) 0;
    box-shadow:
        0 8px 32px rgba(101, 139, 95, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: var(--space-md);
}

.cta-text {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

/* Footer Navigation */
.footer-nav {
    margin-bottom: 0;
    text-align: center;
}

.footer-nav-main {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-link {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-gentle);
    position: relative;
}

.footer-link:hover {
    color: var(--color-forest);
}

.footer-link.active {
    color: var(--color-forest);
    font-weight: 600;
}

.footer-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-sage);
}

/* ================================================
   LEGAL PAGES
   ================================================ */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    background: var(--color-surface);
    border-radius: 20px;
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow:
        0 4px 20px rgba(101, 139, 95, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
}

.legal-heading {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-sand);
}

.legal-subheading {
    font-family: var(--font-ui);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-content p {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.legal-list {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.legal-list li {
    margin-bottom: var(--space-xs);
}

.legal-list strong {
    color: var(--color-forest);
}

/* ================================================
   STATES & INTERACTIONS
   ================================================ */

.timer-section.running .breathing-circle {
    animation: none;
}

.timer-section.running .breathing-circle .circle-inner {
    animation: breathe 4s ease-in-out infinite;
}

.timer-section.running .time-display {
    animation: subtleGlow 2s ease-in-out infinite;
}

@keyframes subtleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(101, 139, 95, 0.2);
    }
    50% {
        text-shadow: 0 0 30px rgba(101, 139, 95, 0.4);
    }
}
