/* ================================
   7-Day Challenge Styles
   Soft Pastel Theme
   ================================ */

:root {
    --primary-peach: #FFD4C4;
    --primary-cream: #FFF8F0;
    --primary-teal: #A8D5D4;
    --accent-coral: #FFB4A2;
    --accent-sage: #B8C9B8;
    --text-dark: #2C3E50;
    --text-medium: #5A6C7D;
    --text-light: #8E9AAF;
    --white: #FFFFFF;
    --success-green: #52C4A3;
    --warning-orange: #F39C12;
    --error-red: #E74C3C;
    --border-light: #E8EEF2;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-cream) 0%, var(--primary-peach) 100%);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

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

/* Hero Content */
.hero-content {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-sage));
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 16px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.8;
}

/* Notice Boxes */
.notice-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
    align-items: flex-start;
}

.notice-box i {
    font-size: 24px;
    flex-shrink: 0;
}

.notice-box.privacy {
    background: #E8F5F1;
    border-left: 4px solid var(--primary-teal);
    color: var(--text-dark);
}

.notice-box.privacy i {
    color: var(--primary-teal);
}

.notice-box.device-reminder {
    background: var(--primary-cream);
    border-left: 4px solid var(--accent-coral);
    font-size: 0.9rem;
}

.notice-box.device-reminder i {
    color: var(--accent-coral);
}

/* Archetype Selector */
.archetype-selector {
    background: var(--primary-cream);
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
}

.archetype-selector h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.archetype-selector h3 i {
    color: var(--primary-teal);
}

.archetype-dropdown {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
}

.archetype-dropdown:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(168, 213, 212, 0.1);
}

/* Info Section (Collapsible) */
.info-section {
    margin: 32px 0;
}

.toggle-btn {
    width: 100%;
    background: var(--primary-teal);
    color: var(--white);
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.toggle-btn:hover {
    background: var(--accent-sage);
    transform: translateY(-2px);
}

.toggle-btn i {
    transition: transform 0.3s ease;
}

.toggle-btn.collapsed i {
    transform: rotate(-90deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.collapsible-content.expanded {
    max-height: 3000px;
    padding-top: 24px;
}

/* Step Cards */
.step-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-teal);
    margin-bottom: 20px;
}

.step-card h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-card h4 i {
    color: var(--primary-teal);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.metric-def {
    padding: 16px;
    background: var(--primary-cream);
    border-radius: 8px;
}

.metric-def h5 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.metric-def p {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-medium);
}

.metric-def p strong {
    color: var(--text-dark);
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-sage));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.help-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 16px;
}

/* Tracking Container */
.tracking-container {
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--text-medium);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 0;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--primary-teal);
}

/* Progress Header */
.progress-header {
    margin-bottom: 32px;
}

.progress-header h2 {
    margin-bottom: 16px;
}

.progress-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.progress-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.progress-dot.completed {
    background: var(--success-green);
    color: var(--white);
}

.progress-dot.current {
    background: var(--primary-teal);
    color: var(--white);
    transform: scale(1.2);
}

/* Metric Sliders */
.tracking-form {
    margin-top: 24px;
}

.tracking-form h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.metric-slider {
    margin-bottom: 40px;
}

.metric-slider label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.metric-slider label i {
    color: var(--primary-teal);
    margin-right: 8px;
}

.value-display {
    background: var(--primary-teal);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 1.1rem;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--border-light);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-teal);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-teal);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

.slider-labels span {
    flex: 1;
}

/* Bonus Sections */
.bonus-card {
    background: linear-gradient(135deg, var(--primary-cream), var(--primary-peach));
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    border-left: 4px solid var(--accent-coral);
}

.bonus-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.bonus-card h4 i {
    color: var(--accent-coral);
}

.bonus-field {
    margin: 16px 0;
}

.bonus-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.bonus-field input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.bonus-field input:focus {
    outline: none;
    border-color: var(--primary-teal);
}

/* Notes Section */
.notes-section {
    margin: 32px 0;
}

.notes-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.notes-section label i {
    color: var(--primary-teal);
}

.notes-section textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    resize: vertical;
}

.notes-section textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(168, 213, 212, 0.1);
}

/* Insights Panel */
.insights-panel {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 3px solid var(--primary-teal);
}

.insights-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.insights-panel h3 i {
    color: var(--primary-teal);
}

.insight-card {
    background: var(--primary-cream);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-teal);
}

.insight-card.positive {
    background: #E8F5F1;
    border-left-color: var(--success-green);
}

.insight-card.warning {
    background: #FFF3E0;
    border-left-color: var(--warning-orange);
}

.insight-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insight-card p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.recommendation {
    background: var(--white);
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.recommendation strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.product-link:hover {
    color: var(--accent-sage);
    text-decoration: underline;
}

/* Summary Container */
.summary-container {
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

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

.summary-header i {
    font-size: 64px;
    color: var(--primary-teal);
    margin-bottom: 16px;
}

.chart-container {
    background: var(--primary-cream);
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.pattern-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-teal);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.pattern-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-cream), var(--primary-peach));
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-section p {
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    .hero-content,
    .tracking-container,
    .summary-container {
        padding: 32px 24px;
    }

    h1 {
        font-size: 2rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .progress-dots {
        flex-wrap: wrap;
    }

    .slider-labels {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-content,
    .tracking-container,
    .summary-container {
        padding: 24px 16px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

/* Compact info section for daily pages */
.info-section.compact .toggle-btn {
    background: var(--primary-cream);
    color: var(--text-dark);
    padding: 12px 16px;
    font-size: 0.9rem;
}

.info-section.compact .collapsible-content {
    padding: 16px;
    background: var(--primary-cream);
    border-radius: 0 0 12px 12px;
    font-size: 0.9rem;
}
