/* 
 * Depression Defense: Social Media Limits Page Styles
 * CSS for depression-defense-social-media-limits.html
 */

/* Page Hero Section */
.learn-hero {
    background-color: rgba(255, 191, 63, 0.2); /* IT Gold Light background for Social Media articles */
    padding: calc(64px + var(--space-xxl)) 0 var(--space-xxl);
    text-align: center;
}

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

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

.article-content {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-xl);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
}

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

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

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

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

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

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

/* Article Metadata */
.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--light-gray);
}

.article-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--cool-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-sm);
    color: var(--white);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 500;
}

.publish-date {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.article-share {
    margin-left: auto;
}

.share-btn {
    background: none;
    border: none;
    color: var(--cool-slate);
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

/* Five-Minute Solution Box */
.five-minute-box {
    background-color: var(--it-gold-light); 
    border: 2px solid var(--it-gold); 
    border-radius: var(--radius-md); 
    padding: var(--space-lg); 
    margin: var(--space-xl) 0; 
    text-align: center;
}

.five-minute-box h2 {
    color: var(--cool-slate); 
    margin-top: 0; 
    font-size: 1.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.five-minute-box h2 i {
    margin-right: var(--space-sm);
}

.five-minute-box p {
    margin-bottom: 0;
}

/* Callout Boxes */
.callout {
    background-color: rgba(255, 191, 63, 0.1); /* IT Gold Light for callouts in Social Media articles */
    border-left: 3px solid var(--it-gold);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.warning-callout {
    background-color: rgba(238, 39, 55, 0.1);
    border-left: 3px solid var(--warm-red);
}

/* 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);
}

/* Practice Card */
.practice-card {
    background-color: var(--light-gray);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border-left: 4px solid var(--it-gold);
}

.practice-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.practice-icon {
    margin-right: var(--space-md);
    background-color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.practice-icon i {
    color: var(--it-gold);
}

.practice-title {
    margin: 0;
    font-size: 1.2rem;
}

.practice-steps {
    margin: var(--space-md) 0 0;
    padding-left: calc(40px + var(--space-md));
}

.practice-steps li {
    margin-bottom: var(--space-sm);
}

/* Source Link */
.source-link {
    display: block;
    padding: var(--space-sm) 0;
    margin-top: var(--space-xs);
    font-size: 0.75rem;
    color: var(--medium-gray);
}

/* Stat Highlight */
.stat-highlight {
    font-size: 2rem;
    color: var(--warm-red);
    font-weight: 700;
    margin: var(--space-xs) 0;
    display: block;
    font-family: var(--heading-font);
}

/* Setup Steps */
.setup-steps {
    background-color: #f9f9f9;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-md) 0;
}

.setup-steps h4 {
    margin-top: 0;
    margin-bottom: var(--space-md);
}

/* Action Steps Container */
.action-steps-container {
    background-color: #f5f5f5;
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    border-top: 3px solid var(--it-gold);
}

.action-steps-container h3 {
    margin-top: 0;
}

/* Pro Tip */
.pro-tip {
    background-color: rgba(255, 191, 63, 0.15);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    font-weight: 500;
}

.pro-tip:before {
    content: "Pro Tip: ";
    font-weight: 700;
    color: var(--it-gold);
}

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

.sources-section h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.sources-list {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.5;
}

.sources-list li {
    margin-bottom: var(--space-md);
}

.sources-list a {
    color: var(--cool-slate);
    text-decoration: underline;
    text-decoration-color: var(--it-gold);
    text-decoration-thickness: 1px;
}

/* Chart Container Styles */
.chart-container {
    margin: var(--space-xl) 0;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    background-color: var(--white);
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: var(--space-md);
    text-align: center;
}

.chart-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.chart-caption {
    font-size: 0.9rem;
    color: var(--medium-gray);
    text-align: center;
    margin-top: var(--space-md);
}

/* Mobile Comparison Specific Styles */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.mobile-comparison {
    margin: var(--space-md) 0;
}

.mobile-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-feature-list li {
    padding: var(--space-md);
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 0;
}

.mobile-feature-list li:last-child {
    border-bottom: none;
}

.feature-aspect {
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--cool-slate);
}

.feature-benefit {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-top: var(--space-xs);
}

.swipe-indicator {
    text-align: center;
    padding: var(--space-md);
    color: var(--medium-gray);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--light-gray);
}

.swipe-indicator i {
    margin-left: var(--space-xs);
    font-size: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .learn-container {
        grid-template-columns: 1fr;
    }
    
    /* Sidebar styles moved to article-sidebar-layout.css */
    
    /* Table of contents styles moved to article-sidebar-layout.css */
}

@media (max-width: 768px) {
    .learn-hero {
        padding: calc(70px + var(--space-lg)) 0 var(--space-lg);
    }
    
    .learn-hero p {
        font-size: 0.9rem;
        padding: 0 var(--space-md);
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-share {
        margin-left: 0;
        margin-top: var(--space-md);
    }
    
    .callout {
        padding: var(--space-md);
    }
    
    .container {
        width: 100%;
        box-sizing: border-box;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    
    .article-content {
        padding: var(--space-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .chart-container {
        padding: var(--space-md);
        margin: var(--space-lg) 0;
    }
    
    .chart-title {
        font-size: 1rem;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--space-md);
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        word-wrap: break-word;
    }
    
    h3 {
        font-size: 1.2rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        word-wrap: break-word;
    }
    
    .learn-hero {
        padding-top: calc(70px + var(--space-xl));
    }
    
    .article-content {
        padding: var(--space-md);
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .chart-container {
        padding: var(--space-sm);
        margin: var(--space-md) 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .chart-img img {
        max-width: 100%;
        height: auto;
    }
    
    .chart-caption {
        font-size: 0.8rem;
    }
    
    /* Force content to wrap */
    p, li, h1, h2, h3, h4, h5, h6, div, span {
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    /* Mobile comparison enhancements */
    .mobile-feature-list li {
        padding: var(--space-sm);
    }
    
    .feature-aspect {
        font-size: 0.9rem;
    }
    
    .feature-benefit {
        font-size: 0.85rem;
    }
    
    .swipe-indicator {
        padding: var(--space-sm);
        font-size: 0.75rem;
    }
}