/* Breathe Page Styles */

/* Hero section with gradient background */
.breathe-hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 6rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.breathe-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 55%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

#breathe-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.1vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.intro-message {
    margin-top: 2rem;
}

.intro-text {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    opacity: 0.98;
    margin: 0;
}

/* Main breathing exercise section */
.breathing-main {
    padding: 4rem 1.5rem;
    background-color: white;
    text-align: center;
}

.breathing-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Breathing circle animation */
.breathing-circle-container {
    position: relative;
    margin-bottom: 3rem;
    padding: 2rem;
}

.breathing-circle {
    width: min(300px, 80vw);
    height: min(300px, 80vw);
    border-radius: 50%;
    background: rgba(79, 172, 254, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid rgba(79, 172, 254, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.breathing-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5), transparent 70%);
    pointer-events: none;
}

.breathing-circle.active {
    animation: breathe 8s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        background-color: rgba(79, 172, 254, 0.15);
        opacity: 0.8;
    }
    25% {
        transform: scale(1.15);
        background-color: rgba(79, 172, 254, 0.25);
        opacity: 1;
    }
    50%, 75% {
        transform: scale(1.15);
        background-color: rgba(79, 172, 254, 0.25);
        opacity: 1;
    }
}

#breathing-phase {
    color: #2d3748;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    position: relative;
    z-index: 1;
}

.breathing-countdown {
    color: #4facfe;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Breathing controls */
.breathing-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #4facfe;
    color: white;
    box-shadow: 0 4px 6px rgba(79, 172, 254, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(79, 172, 254, 0.3);
    outline: none;
    background-color: #3a9bfd;
}

.btn-secondary {
    background-color: transparent;
    color: #4facfe;
    border: 2px solid #4facfe;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #4facfe;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2);
    outline: none;
}

/* Breathing rhythm control */
.breathing-rhythm {
    background-color: #f7fafc;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.breathing-rhythm h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.rhythm-control {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.rhythm-control label {
    font-size: 1rem;
    color: #4a5568;
    font-weight: 500;
}

.rhythm-control input[type="range"] {
    width: 100%;
    max-width: 300px;
    height: 6px;
    border-radius: 3px;
    background: rgba(79, 172, 254, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.rhythm-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4facfe;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(79, 172, 254, 0.3);
    transition: all 0.2s ease;
}

.rhythm-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 6px rgba(79, 172, 254, 0.4);
}

.rhythm-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4facfe;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(79, 172, 254, 0.3);
    transition: all 0.2s ease;
}

.rhythm-control input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 6px rgba(79, 172, 254, 0.4);
}

.rhythm-control span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4facfe;
}

/* Breathing patterns section */
.breathing-patterns {
    background-color: #f7fafc;
    padding: 4rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.patterns-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.patterns-container h2 {
    font-size: clamp(1.6rem, 3.3vw, 2.1rem);
    margin-bottom: 1rem;
    color: #2d3748;
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #718096;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.pattern-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pattern-btn {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pattern-btn:hover, .pattern-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #4facfe;
    outline: none;
}

.pattern-btn[aria-pressed="true"] {
    background-color: rgba(79, 172, 254, 0.1);
    border-color: #4facfe;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2);
}

.pattern-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.pattern-details {
    font-size: 0.95rem;
    color: #718096;
}

/* Breathing uses section */
.breathing-uses {
    padding: 4rem 1.5rem;
    background-color: white;
}

.uses-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.uses-container h2 {
    font-size: clamp(1.6rem, 3.3vw, 2.1rem);
    margin-bottom: 1rem;
    color: #2d3748;
}

.uses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.use-card {
    background-color: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.use-card:hover, .use-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #4facfe;
    outline: none;
}

.use-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.use-card p {
    font-size: 0.95rem;
    color: #718096;
    margin: 0;
}

/* Feedback section */
.feedback-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
}

.feedback-container {
    max-width: 800px;
    margin: 0 auto;
}

.feedback-container h2 {
    font-size: clamp(1.6rem, 3.3vw, 2.1rem);
    margin-bottom: 2rem;
}

.feedback-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.feedback-btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.feedback-btn:hover, .feedback-btn:focus {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .breathe-hero {
        padding: 4rem 1.5rem 3rem;
    }
    
    .breathing-main {
        padding: 3rem 1.5rem;
    }
    
    .breathing-circle-container {
        padding: 1rem;
    }
    
    .breathing-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .breathing-rhythm {
        padding: 1.5rem;
    }
    
    .breathing-patterns,
    .breathing-uses {
        padding: 3rem 1.5rem;
    }
    
    .pattern-selector {
        grid-template-columns: 1fr;
    }
    
    .uses-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .use-card {
        padding: 1.5rem;
    }
    
    .feedback-section {
        padding: 3rem 1.5rem;
    }
    
    .feedback-options {
        gap: 0.75rem;
    }
    
    .feedback-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .breathe-hero {
        padding: 3rem 1rem 2rem;
    }
    
    .breathing-main {
        padding: 2rem 1rem;
    }
    
    .breathing-circle {
        width: min(250px, 80vw);
        height: min(250px, 80vw);
    }
    
    .breathing-rhythm {
        padding: 1rem;
    }
    
    .breathing-patterns,
    .breathing-uses {
        padding: 2rem 1rem;
    }
    
    .pattern-btn,
    .use-card {
        padding: 1.5rem 1rem;
    }
    
    .feedback-section {
        padding: 2rem 1rem;
    }
    
    .feedback-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}