/* Styles for core/clean_time_calculator.html */
/* Page Header - matches site design */
/* Title on the page, tool directly under it */
.calculator-header {
    padding: 3rem 1rem 1.5rem;
    text-align: center;
}
.calculator-header h1 {
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.calculator-header p {
    font-size: 1.1rem;
    max-width: 60ch;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Calculator Section */
.calculator-section {
    padding: 0 2rem 3rem;
}
.calculator-container {
    max-width: 900px;
    margin: 0 auto;
}
.calculator-card {
    background: var(--card-bg, #fff);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

/* Input Section */
.calc-input-section {
    padding: 2.5rem;
    background: var(--panel-ink);
    color: white;
    text-align: center;
    --heading-color: currentColor;
}
.calc-input-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: white;
}
.date-input-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.date-input-wrapper label {
    font-size: 1.1rem;
    font-weight: 500;
}
#sobriety-date {
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    background: var(--card-bg, #fff);
    color: var(--brand-text, #1e4d8b);
    font-weight: 600;
    cursor: pointer;
    min-width: 200px;
}
#sobriety-date:focus {
    outline: 3px solid var(--accent-green);
}

/* Results Display */
.calc-results {
    padding: 3rem 2.5rem;
}
.main-counter {
    text-align: center;
    margin-bottom: 2.5rem;
}
.days-display {
    font-size: 5rem;
    font-weight: 800;
    color: var(--brand-text, #1e4d8b);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.days-label {
    font-size: 1.5rem;
    color: var(--green-text, #2e8059);
    font-weight: 600;
}

/* Time Breakdown */
.time-breakdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.time-unit {
    background: var(--bg-light);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease;
}
.time-unit:hover {
    transform: translateY(-2px);
}
.time-unit .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-text, #1e4d8b);
    line-height: 1.2;
}
.time-unit .label {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
    margin-top: 0.25rem;
}

/* Milestones */
.milestones-container {
    margin-bottom: 2.5rem;
}
.milestones-container h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.milestones-container h3 i {
    color: var(--green-text, #2e8059);
}
.milestone-track {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.milestone-badge {
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.milestone-badge.achieved {
    background: var(--cta-bg);
    color: white;
}
.milestone-badge.next {
    background: #fff3cd;
    color: #856404;
    border: 2px dashed #ffc107;
    /* light surface in both themes: keep dark text */
    --text-dark: #2c3e50; --text-muted: #4b5563; --text-faint: #6b7280; --brand-text: #1e4d8b; --heading-color: #1e4d8b; --text-link: #1e4d8b; --text-link-hover: #0f2d56;
}
.milestone-badge.future {
    background: var(--bg-light);
    color: var(--text-faint, #999);
}

/* Money Calculator */
.money-calculator {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}
[data-theme="dark"] .money-calculator { background: var(--bg-light); }
.money-calculator h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.money-calculator h3 i {
    color: var(--green-text, #2e8059);
}
.money-input-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.money-input-row label {
    color: var(--text-muted, #555);
    font-weight: 500;
}
.money-input-row input {
    padding: 0.75rem 1rem;
    border: 2px solid #b7d4f8;
    border-radius: 8px;
    font-size: 1.1rem;
    width: 100px;
    font-weight: 600;
}
.money-input-row input:focus {
    outline: none;
    border-color: var(--primary-dark);
}
.money-saved-display {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg, #fff);
    border-radius: 10px;
}
.money-saved-display .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green-text, #2e8059);
}
.money-next { text-align: center; margin: 0.9rem 0 0; font-size: 0.95rem; }
.money-next a { color: var(--brand-text, #1e4d8b); font-weight: 600; }
.money-saved-display .label {
    color: var(--text-muted, #666);
    font-size: 0.95rem;
}

/* Recovery Benefits Timeline */
.health-benefits {
    margin-bottom: 2.5rem;
}
.health-benefits h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.health-benefits h3 i {
    color: #e74c3c;
}
.benefits-timeline {
    display: grid;
    gap: 0.75rem;
}
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: var(--transition-ui);
}
.benefit-item.unlocked {
    background: #e8f5e9;
    /* light surface in both themes: keep dark text */
    --text-dark: #2c3e50; --text-muted: #4b5563; --text-faint: #6b7280; --brand-text: #1e4d8b; --heading-color: #1e4d8b; --text-link: #1e4d8b; --text-link-hover: #0f2d56; color: var(--text-dark);
}
.benefit-item.locked {
    background: var(--bg-light);
    opacity: 0.7;
}
.benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.benefit-item.unlocked .benefit-icon {
    background: var(--cta-bg);
    color: white;
}
.benefit-item.locked .benefit-icon {
    background: #dee2e6;
    color: #999;
    /* light surface in both themes: keep dark text */
    --text-dark: #2c3e50; --text-muted: #4b5563; --text-faint: #6b7280; --brand-text: #1e4d8b; --heading-color: #1e4d8b; --text-link: #1e4d8b; --text-link-hover: #0f2d56;
}
.benefit-content .time {
    font-weight: 600;
    color: var(--brand-text, #1e4d8b);
    font-size: 0.9rem;
}
.benefit-item.locked .benefit-content .time {
    color: var(--text-faint, #999);
}
.benefit-content .description {
    color: var(--text-muted, #555);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

/* CTA Section in Calculator */
.calc-cta {
    background: var(--panel-ink);
    padding: 2.5rem;
    text-align: center;
    color: white;
    --heading-color: currentColor;
}
.calc-cta h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: white;
}
.calc-cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    color: white;
}
.calc-cta .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--cta-bg);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-btn, 10px);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-ui);
    border: 2px solid rgba(255,255,255,0.3);
}
.calc-cta .cta-button:hover {
    box-shadow: none;
    background: var(--cta-bg-hover);
    color: white;
}
.calc-cta .benefits-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    opacity: 0.9;
}
.calc-cta .benefits-list span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Placeholder State */
.placeholder-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-faint, #999);
}
.placeholder-state .icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}
.placeholder-state p {
    font-size: 1.1rem;
}

/* Content Section */
.content-section {
    padding: 4rem 2rem;
    background: var(--card-bg, #fff);
}
.content-section .container {
    max-width: 800px;
    margin: 0 auto;
}
.content-section h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.content-section h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
}
.content-section p {
    color: var(--text-muted, #555);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}
.content-section ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}
.content-section ul li {
    color: var(--text-muted, #555);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 2rem;
    background: var(--bg-light);
}
.faq-section h2 {
    text-align: center;
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--card-bg, #fff);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.faq-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}
.faq-item p {
    color: var(--text-muted, #666);
    line-height: 1.7;
    margin: 0;
}

/* Final CTA */
.final-cta {
    padding: 5rem 2rem;
    background: var(--panel-ink);
    text-align: center;
    color: white;
    --heading-color: currentColor;
}
.final-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
}
.final-cta p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: white;
}
.final-cta .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--cta-bg);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-btn, 10px);
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition-ui);
    border: 2px solid rgba(255,255,255,0.3);
}
.final-cta .cta-button:hover {
    box-shadow: none;
}
.final-cta .subtext {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
    .calculator-header h1 { font-size: 2rem; }
    .days-display { font-size: 3.5rem; }
    .days-label { font-size: 1.2rem; }
    .time-breakdown { grid-template-columns: repeat(2, 1fr); }
    .time-unit .value { font-size: 1.6rem; }
    .money-saved-display .amount { font-size: 2rem; }
    .calc-cta .benefits-list { flex-direction: column; gap: 0.5rem; }
    .final-cta h2 { font-size: 1.8rem; }
}
