/* 
 * Notification Detox Challenge Page Styles
 * CSS for notification-detox-challenge.html
 */

/* Page Hero Section */
.challenge-hero {
    background-color: var(--pale-blue-light);
    padding: calc(64px + var(--space-xxl)) 0 var(--space-xxl);
    text-align: center;
}

.challenge-hero h1 {
    margin-bottom: var(--space-md);
}

/* Layout Structure */
.challenge-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: var(--space-xxl);
}

.challenge-content {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-xl);
}

.challenge-content h2 {
    margin-top: var(--space-xl);
}

.challenge-content h2:first-child {
    margin-top: 0;
}

.challenge-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: var(--space-lg) 0;
}

.challenge-content p {
    line-height: 1.6;
}

.challenge-content ul,
.challenge-content ol {
    margin: var(--space-lg) 0;
    padding-left: var(--space-xl);
}

.challenge-content li {
    margin-bottom: var(--space-md);
}

/* Sidebar Components */
/* Sidebar styles moved to article-sidebar-layout.css */

/* Table of contents styles moved to article-sidebar-layout.css */











/* Related articles styles moved to article-sidebar-layout.css */











.related-meta {
    font-size: 0.75rem;
    color: var(--medium-gray);
}

/* Day Timeline */
.day-timeline {
    display: flex;
    justify-content: space-between;
    margin: var(--space-xl) 0;
    position: relative;
    padding: 0 20px;
}

.day-timeline::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 40px;
    right: 40px;
    height: 4px;
    background-color: var(--light-gray);
    z-index: 1;
}

.day-marker {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.day-marker:hover {
    transform: translateY(-3px);
}

.day-marker.active .day-number {
    background-color: var(--pale-blue);
    color: var(--white);
}

.day-number {
    width: 36px;
    height: 36px;
    background-color: var(--white);
    border: 2px solid var(--pale-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xs);
    font-weight: 700;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.day-label {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Signup Form */
.signup-form-container {
    background-color: var(--pale-blue-light);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    text-align: center;
}

.signup-form-container h3 {
    margin-top: 0;
}

.challenge-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
}

/* Day Cards */
.day-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    border-left: 4px solid var(--pale-blue);
    display: none;
}

.day-card.active {
    display: block;
}

.day-card h3 {
    margin-top: 0;
    color: var(--cool-slate);
}

/* Task List */
.task-list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.task-item {
    display: flex;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--light-gray);
}

.task-item:last-child {
    border-bottom: none;
}

/* Custom Checkbox */
.task-checkbox {
    margin-right: var(--space-sm);
    flex-shrink: 0;
    position: relative;
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.task-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--white);
    border: 2px solid var(--cool-slate);
    border-radius: var(--radius-sm);
}

.task-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--pale-blue);
    border-color: var(--pale-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.task-checkbox input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.task-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.task-content {
    flex-grow: 1;
}

.task-title {
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.task-description {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Reflection Box */
.reflection-box {
    background-color: var(--light-gray);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.reflection-box h4 {
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

.reflection-box textarea {
    width: 100%;
    height: 120px;
    padding: var(--space-sm);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    resize: vertical;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    margin: var(--space-md) 0;
}

.progress-bar {
    height: 100%;
    background-color: var(--pale-blue);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* Download Guide Button */
.download-guide {
    display: inline-flex;
    align-items: center;
    background-color: var(--pale-blue-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--cool-slate);
    font-weight: 500;
    margin-top: var(--space-md);
    transition: background-color var(--transition-fast);
}

.download-guide:hover {
    background-color: var(--pale-blue);
    color: var(--white);
}

.download-guide i {
    margin-right: var(--space-xs);
}

/* Device Tabs */
.device-tabs {
    display: flex;
    margin: var(--space-lg) 0;
    border-bottom: 1px solid var(--light-gray);
}

.device-tab {
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.device-tab:hover {
    color: var(--pale-blue);
}

.device-tab.active {
    color: var(--pale-blue);
    border-bottom-color: var(--pale-blue);
}

.device-content {
    display: none;
    padding: var(--space-md) 0;
}

.device-content.active {
    display: block;
}

/* Progress Summary */
.progress-summary {
    background-color: var(--cool-slate-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
    text-align: center;
}

.progress-summary h3 {
    margin-top: 0;
    color: var(--cool-slate);
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    margin: var(--space-lg) 0;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pale-blue);
    margin-bottom: var(--space-xs);
    font-family: var(--heading-font);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* Share Progress Button */
.share-progress {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--cool-slate);
    font-weight: 500;
    margin-top: var(--space-md);
    transition: background-color var(--transition-fast);
}

.share-progress:hover {
    background-color: var(--cool-slate);
    color: var(--white);
}

.share-progress i {
    margin-right: var(--space-xs);
}

/* FAQ Section */
.faq-item {
    margin-bottom: var(--space-lg);
}

.faq-item h3 {
    margin-bottom: var(--space-sm);
    color: var(--cool-slate);
}

/* Expert Quote */
.expert-quote {
    background-color: var(--light-gray);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    font-style: italic;
}

/* Sources Section */
.sources-section {
    margin-top: var(--space-xxl);
    border-top: 1px solid var(--light-gray);
    padding-top: var(--space-lg);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .challenge-container {
        grid-template-columns: 1fr;
    }
    
    /* Sidebar styles moved to article-sidebar-layout.css */
    
    /* Table of contents styles moved to article-sidebar-layout.css */
    
    .day-timeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }
    
    .day-timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .progress-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
}