/* post.css
 * Extracted from the inline <style> block in views/post.blade.php (2026-09).
 * Registered with deps [theme-dark-css, comments-css]: shares selectors with
 * theme-dark.css dark rules and must win ties over comments.css, matching
 * the original inline DOM order (comments CSS before article CSS).
 */

.standard-article {
    width: min(100%, 800px);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.article-container {
    text-align: center;
    min-width: 0;
}

.article-header-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.article-category {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #326891;
    margin-bottom: 15px;
}

.article-headline {
    font-family: Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
    color: #121212;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-summary {
    max-width: 720px;
    margin: 0 auto 15px;
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    line-height: 1.65;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eceff3;
}

.article-ai-disclosure {
    margin: -10px 0 24px;
    font-size: 0.85rem;
    color: #2b5f84;
    font-weight: 600;
}

.article-meta .author-link {
    color: #326891;
    text-decoration: none;
    font-weight: 600;
}

.article-meta .author-link:hover {
    text-decoration: underline;
}

.article-hero-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    margin-bottom: 8px;
}

.pexels-attribution {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
}

.pexels-attribution a {
    color: #999;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pexels-attribution a:hover {
    color: #666;
}

body.dark-mode .pexels-attribution,
body.dark-mode .pexels-attribution a {
    color: #666;
}

body.dark-mode .pexels-attribution a:hover {
    color: #888;
}

.article-body {
    text-align: left;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-body img,
.article-body iframe,
.article-body video,
.article-body table {
    max-width: 100%;
}

.article-body iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
}

.article-body table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.article-body p {
    margin-bottom: 1.5em;
}

/* Style headings in article content */
.article-body h2 {
    font-family: Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #121212;
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

.article-body h3 {
    font-family: Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #121212;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

/* Style links in article content */
.article-body a {
    color: #326891;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color 0.2s;
}

.article-body a:hover {
    color: #1a4a6e;
    text-decoration: underline;
}

/* Style bold/strong text */
.article-body strong {
    font-weight: 700;
    color: #121212;
}

/* Style lists */
.article-body ul,
.article-body ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #2f5e94;
    background: #f8fafc;
    color: #334155;
    font-style: italic;
}

/* ============================================
   SOCIAL ICONS GRID - JavaScript Enhanced
   ============================================ */

.social-icons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px 20px;
    margin: 20px 0 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 1px solid #dee2e6;
}

.social-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 12px;
    background: white;
    color: #6c757d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 90px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.social-icon-item i {
    font-size: 44px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.social-icon-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

/* Hover effects with brand colors */
.social-icon-item:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    color: var(--brand-color, #326891);
}

.social-icon-item:hover i {
    color: var(--brand-color, #326891);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.social-icon-item:hover .social-icon-label {
    color: var(--brand-color, #326891);
}

/* Instagram gradient special effect */
.social-icon-item[data-platform="Instagram"]:hover i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* TikTok shadow effect */
.social-icon-item[data-platform="TikTok"]:hover i {
    text-shadow: 2px 2px #ff0050;
}

/* Dark mode */
body.dark-mode .social-icons-grid {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-color: #2a2a4a;
}

body.dark-mode .social-icon-item {
    background: #252545;
    color: #a0a0a0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode .social-icon-item:hover {
    background: #303060;
    color: white;
}

body.dark-mode .social-icon-label {
    color: #888;
}

body.dark-mode .social-icon-item:hover .social-icon-label {
    color: white;
}

/* Dark mode support */
body.dark-mode .article-body {
    color: #ddd;
}

body.dark-mode .article-headline {
    color: #f3f4f6;
}

body.dark-mode .article-summary,
body.dark-mode .article-meta,
body.dark-mode .article-ai-disclosure {
    color: #b4bcc8;
}

body.dark-mode .article-meta {
    border-bottom-color: #333;
}

body.dark-mode .article-meta .author-link {
    color: #8dbce8;
}

body.dark-mode .article-body h2,
body.dark-mode .article-body h3 {
    color: #e0e0e0;
}

body.dark-mode .article-body strong {
    color: #fff;
}

body.dark-mode .article-body a {
    color: #5a9fd4;
}

body.dark-mode .article-body a:hover {
    color: #7bbce8;
}

body.dark-mode .article-body blockquote {
    background: #171717;
    color: #cbd5e1;
    border-left-color: #8dbce8;
}

@media (max-width: 768px) {
    .standard-article {
        padding: 20px 16px;
    }

    .article-headline {
        font-size: 1.6rem;
    }

    .article-summary {
        font-size: 1rem;
    }
    
    .article-body {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-body h2 {
        font-size: 1.3rem;
        margin-top: 1.5em;
    }
    
    .article-body h3 {
        font-size: 1.1rem;
    }

    .article-body iframe {
        min-height: 220px;
    }

    .social-icons-grid {
        gap: 12px;
        padding: 20px 14px;
    }

    .social-icon-item {
        min-width: 78px;
        padding: 14px 16px;
    }

    .social-icon-item i {
        font-size: 34px;
        margin-bottom: 8px;
    }
}
