/* ===== NADA MAHMOUD - BLOG PAGE STYLES (SYNCED) ===== */

/* ===== Blog Grid (Listing Page) ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.blog-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

/* Blog Content */
.blog-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--text-primary);
}

.blog-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--accent);
    font-weight: 700;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
}

/* ===== Article Single Page (article.php) ===== */
.article-container {
    padding: 60px 0 100px;
    background: var(--bg-primary);
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.article-main {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .article-main {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: #1e293b;
}

/* Metadata Styles */
.blog-meta-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.meta-divider {
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.6;
}

/* Modern ToC Component */
.article-toc-new {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--primary);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
}

[data-theme="dark"] .article-toc-new {
    background: rgba(255, 255, 255, 0.03);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--primary);
}

.toc-header i {
    font-size: 1.2rem;
}

.toc-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}

.toc-list-new {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px 24px;
}

.toc-list-new a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.toc-dot {
    width: 6px;
    height: 6px;
    background: var(--border-color);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toc-list-new a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.toc-list-new a:hover .toc-dot {
    background: var(--primary);
    transform: scale(1.5);
}

.toc-item-3 {
    padding-right: 20px;
}

/* Content Typography */
.article-content {
    line-height: 1.9;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 25px;
}

.article-content strong,
.article-content b {
    color: #C5A059;
    font-weight: 700;
}

.article-content h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin: 50px 0 25px;
    font-weight: 800;
    position: relative;
    padding-bottom: 12px;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to left, var(--primary), transparent);
    border-radius: 2px;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin: 40px 0 20px;
    font-weight: 700;
}

/* Sidebar Widgets */
.article-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .sidebar-widget {
    background: #1e293b;
}

.sidebar-widget h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    color: var(--primary);
}

/* WhatsApp CTA */
.whatsapp-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: #25D366;
    color: white !important;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-btn-large:hover {
    background: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Share Area */
.share-area {
    margin-top: 50px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

[data-theme="dark"] .share-area {
    background: rgba(255, 255, 255, 0.03);
}

.share-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

.share-links {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: white !important;
}

.btn-whatsapp {
    background: #25D366;
}

.btn-facebook {
    background: #1877F2;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 1200px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        order: 2;
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 30px 20px;
        border-radius: 0;
        border: none;
    }

    .article-container {
        padding: 0 0 60px;
    }

    .article-content {
        font-size: 1.05rem;
    }

    .toc-list-new {
        grid-template-columns: 1fr;
    }

    .share-area {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .share-links {
        width: 100%;
    }

    .share-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ===== CTA Box Dark Mode Fix (Global Override) ===== */
[data-theme="dark"] .nada-cta-box {
    background: #1e293b !important;
    border-color: #C5A059 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .nada-cta-title {
    color: #d4af37 !important;
}

[data-theme="dark"] .nada-cta-text {
    color: #e0e0e0 !important;
}