/* singleblog.css - Clean, modern styling for the Pinterest video legality article */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #E60023;
    --primary-dark: #ad001b;
    --secondary: #667eea;
    --accent: #764ba2;
    --dark: #1a1a2c;
    --light: #ffffff;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --border: #e9ecef;
    --shadow: 0 5px 15px rgba(0,0,0,0.05);
    --radius: 12px;
    --transition: all 0.2s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: var(--light-gray);
}

/* Navigation */
.blog-nav {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 1.8rem;
}

.back-home {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-home:hover {
    color: var(--primary);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 71px; /* below nav */
    left: 0;
    height: 4px;
    background: var(--primary);
    width: 0%;
    z-index: 101;
    transition: width 0.1s;
}

/* Article Wrapper */
.article-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Article */
.blog-article {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.article-header {
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 0.9rem;
}

.category-badge {
    background: var(--primary);
    color: white;
    padding: 4px 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
}

.reading-time, .publish-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.highlight {
    background: linear-gradient(45deg, #ffd89b, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--dark);
}

.author-title {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Table of Contents */
.toc {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.toc h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--dark);
}

.toc ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.toc a {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    transition: var(--transition);
}

.toc a:hover {
    background: white;
    color: var(--primary);
}

.toc a.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(230,0,35,0.05);
}

/* Article Body */
.article-body {
    font-size: 1.05rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--dark);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.intro {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark);
    border-left: 5px solid var(--primary);
    padding-left: 20px;
}

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    margin: 30px 0;
    text-align: center;
}

.highlight-box h2 {
    color: white;
    border-bottom: none;
    margin-top: 0;
}

.info-box, .warning-box, .legal-warning {
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-box {
    background: #e1f5fe;
    border-left: 6px solid #0288d1;
}

.warning-box {
    background: #fff8e1;
    border-left: 6px solid #ff6f00;
}

.legal-warning {
    background: #ffebee;
    border-left: 6px solid #c62828;
}

.info-box i, .warning-box i, .legal-warning i {
    font-size: 1.5rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.highlight-red {
    color: #c62828;
    font-weight: 600;
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    margin-bottom: 8px;
}

.verdict-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

.verdict-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
}

.verdict-item.green {
    background: #e8f5e9;
    border-left: 6px solid #2e7d32;
}

.verdict-item.red {
    background: #ffebee;
    border-left: 6px solid #c62828;
}

.verdict-item i {
    font-size: 1.5rem;
}

.verdict-item.green i { color: #2e7d32; }
.verdict-item.red i { color: #c62828; }

.final-statement {
    text-align: center;
    font-size: 1.2rem;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--radius);
    margin: 30px 0;
}

/* FAQ */
.faq-container {
    margin: 25px 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s;
}

.faq-item.active .faq-question:after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--light-gray);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 300px;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 20px;
    background: var(--light-gray);
    padding: 25px;
    border-radius: var(--radius);
    margin: 40px 0 20px;
}

.author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio h4 {
    margin-bottom: 8px;
}

.author-bio p {
    margin: 0;
}

/* Article Tags */
.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}

.article-tags span {
    font-weight: 600;
    color: var(--dark);
}

.article-tags a {
    background: var(--light-gray);
    color: var(--gray);
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.article-tags a:hover {
    background: var(--primary);
    color: white;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--light-gray);
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.twitter:hover { background: #1DA1F2; color: white; }
.share-btn.facebook:hover { background: #4267B2; color: white; }
.share-btn.linkedin:hover { background: #0077B5; color: white; }
.share-btn.pinterest:hover { background: #E60023; color: white; }
.share-btn.copy:hover { background: var(--primary); color: white; }

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-box {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.sidebar-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
}

.sidebar-box li {
    margin-bottom: 12px;
}

.sidebar-box a {
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.sidebar-box a:hover {
    color: var(--primary);
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
.blog-footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .article-wrapper {
        grid-template-columns: 1fr;
    }
    
    .blog-article {
        padding: 25px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .grid-cards {
        grid-template-columns: 1fr;
    }
    
    .toc ul {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-bar {
        top: 115px; /* adjust for taller nav */
    }
}

@media (max-width: 480px) {
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}