/* 
 * Social Media Comparison Page Styles
 * CSS for social-media-comparison.html
 */

/* Box Model Handling */
html {
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

.learn-hero h1 {
    margin-bottom: var(--space-md);
    font-size: clamp(1.5rem, 6vw, 2.5rem);
}

/* Layout Structure */
.learn-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: var(--space-xxl);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

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

.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;
    max-width: 100%;
    overflow-x: hidden;
}

.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;
}

/* Callout Box */
.callout {
    background-color: var(--it-gold-light);
    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;
}

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

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

/* Platform-specific styles */
.platform-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Platform-specific colors */
.tiktok-color {
    background-color: #00f2ea;
    color: white;
}

.instagram-color {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.snapchat-color {
    background-color: #FFFC00;
    color: black;
}

.discord-color {
    background-color: #5865F2;
    color: white;
}

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

@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;
    }
    
    /* Mobile-friendly tab navigation */
    .comparison-tabs {
        padding-bottom: var(--space-xs);
        justify-content: flex-start;
    }
    
    .comparison-tab {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
        position: relative;
    }
    
    /* Add visual indicator for scrollable tabs */
    .comparison-tabs:after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 24px;
        background: linear-gradient(to right, transparent, var(--pale-blue-light));
        pointer-events: none;
        z-index: 5;
    }
    
    /* Make feature table more mobile friendly */
    .feature-table th,
    .feature-table td {
        padding: var(--space-xs);
        font-size: 0.8rem;
    }
    
    /* Optimize status indicators */
    .feature-yes, .feature-no, .feature-partial {
        font-size: 0.8rem;
        display: flex;
        align-items: center;
    }
    
    .feature-icon {
        font-size: 14px;
        margin-right: 3px;
    }
    
    /* 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;
    }
    
    /* Style Platform Info */
    .platform-header-icon {
        width: 24px;
        height: 24px;
    }
    
    .platform-info-content ul {
        padding-left: var(--space-lg);
    }
}