/**
 * Blog Details Page Styles - Premium Design
 * Sharp edges, modern typography, responsive layout
 */

:root {
    --blog-primary: #212529;
    --blog-text-primary: #1a1a1a;
    --blog-text-secondary: #6c757d;
    --blog-border: #e5e5e5;
    --blog-bg: #ffffff;
    --blog-bg-light: #f8f9fa;
    --blog-accent: #212529;
}

/* Page Wrapper */
.blog-details-page-wrapper {
    width: 100%;
    min-height: 100vh;
    background: var(--blog-bg);
    overflow-x: hidden;
}

/* ============================================
   HERO BANNER SECTION
   ============================================ */
.blog-hero-banner {
    width: 100%;
    min-height: 500px;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.blog-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.blog-meta-date,
.blog-meta-views {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-meta-separator {
    opacity: 0.5;
}

.blog-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 25px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.blog-hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.blog-hero-tag {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-hero-tag:hover {
    background: #ffffff;
    color: var(--blog-primary);
}

.blog-hero-breadcrumbs {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    letter-spacing: 0.5px;
}

.blog-hero-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-hero-breadcrumbs a:hover {
    color: #ffffff;
}

.blog-hero-breadcrumbs .separator {
    margin: 0 12px;
    opacity: 0.5;
}

.blog-hero-breadcrumbs .current {
    color: #ffffff;
    font-weight: 500;
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.blog-content-section {
    padding: 60px 0 80px;
    background: var(--blog-bg);
}

.blog-content-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-article-content {
    font-size: 18px;
    line-height: 1.9;
    color: var(--blog-text-primary);
}

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

.blog-article-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 2em 0 1em;
    color: var(--blog-text-primary);
}

.blog-article-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 1.5em 0 0.75em;
    color: var(--blog-text-primary);
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

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

.blog-article-content blockquote {
    margin: 2em 0;
    padding: 25px 30px;
    background: var(--blog-bg-light);
    border-left: 4px solid var(--blog-primary);
    font-style: italic;
    color: var(--blog-text-secondary);
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
}

/* ============================================
   SHARE SECTION
   ============================================ */
.blog-share-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--blog-border);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--blog-text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blog-bg-light);
    border: 1px solid var(--blog-border);
    color: var(--blog-text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    background: var(--blog-primary);
    color: #ffffff;
    border-color: var(--blog-primary);
}

.share-facebook:hover { background: #1877f2; border-color: #1877f2; }
.share-twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.share-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.share-whatsapp:hover { background: #25d366; border-color: #25d366; }

/* ============================================
   RELATED BLOGS SECTION
   ============================================ */
.blog-related-section {
    padding: 80px 0;
    background: var(--blog-bg-light);
}

.blog-related-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.blog-related-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-related-section .section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--blog-text-secondary);
    margin-bottom: 15px;
    padding: 8px 20px;
    background: var(--blog-bg);
    border: 1px solid var(--blog-border);
}

.blog-related-section .section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--blog-text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.related-blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-blog-card {
    background: var(--blog-bg);
    border: 1px solid var(--blog-border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.related-blog-card:hover {
    border-color: var(--blog-primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.related-blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--blog-bg-light);
}

.related-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-blog-card:hover .related-blog-image img {
    transform: scale(1.08);
}

.related-blog-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--blog-primary);
    color: #ffffff;
    padding: 10px 14px;
    text-align: center;
    line-height: 1.1;
}

[dir="rtl"] .related-blog-date {
    left: auto;
    right: 15px;
}

.date-day {
    display: block;
    font-size: 22px;
    font-weight: 700;
}

.date-month {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-blog-content {
    padding: 25px;
}

.related-blog-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--blog-text-primary);
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.related-blog-card:hover .related-blog-title {
    color: var(--blog-text-secondary);
}

.related-blog-excerpt {
    font-size: 14px;
    color: var(--blog-text-secondary);
    line-height: 1.7;
    margin: 0 0 18px 0;
}

.related-blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blog-primary);
    transition: gap 0.2s ease;
}

.related-blog-card:hover .related-blog-readmore {
    gap: 12px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #28a745;
    color: white;
    padding: 15px 25px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.toast-error {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE - TABLET (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .blog-hero-banner {
        min-height: 450px;
    }

    .blog-hero-title {
        font-size: 40px;
    }

    .related-blogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .blog-related-section .section-title {
        font-size: 30px;
    }
}

/* ============================================
   RESPONSIVE - TABLET (768px)
   ============================================ */
@media (max-width: 768px) {
    .blog-hero-banner {
        min-height: 400px;
        margin-top: 20px;
    }

    .blog-hero-content {
        padding: 40px 20px;
    }

    .blog-hero-title {
        font-size: 32px;
    }

    .blog-hero-meta {
        font-size: 13px;
    }

    .blog-content-section {
        padding: 40px 0 60px;
    }

    .blog-content-section .container {
        padding: 0 20px;
    }

    .blog-article-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .blog-share-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-related-section {
        padding: 60px 0;
    }

    .blog-related-section .container {
        padding: 0 20px;
    }

    .blog-related-section .section-title {
        font-size: 26px;
    }

    .related-blogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .related-blog-image {
        height: 180px;
    }

    .related-blog-content {
        padding: 18px;
    }

    .related-blog-title {
        font-size: 16px;
    }

    .related-blog-excerpt {
        font-size: 13px;
        margin-bottom: 14px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
    .blog-hero-banner {
        min-height: 350px;
        margin-top: 25px;
    }

    .blog-hero-content {
        padding: 30px 15px;
    }

    .blog-hero-title {
        font-size: 26px;
    }

    .blog-hero-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }

    .blog-hero-tags {
        gap: 8px;
    }

    .blog-hero-tag {
        padding: 6px 12px;
        font-size: 10px;
    }

    .blog-hero-breadcrumbs {
        font-size: 11px;
    }

    .blog-content-section {
        padding: 30px 0 50px;
    }

    .blog-article-content {
        font-size: 15px;
    }

    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .blog-related-section {
        padding: 50px 0;
    }

    .blog-related-section .section-header {
        margin-bottom: 35px;
    }

    .blog-related-section .section-title {
        font-size: 22px;
    }

    .related-blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-blog-image {
        height: 200px;
    }

    .related-blog-content {
        padding: 20px;
    }

    .related-blog-title {
        font-size: 17px;
    }

    .related-blog-excerpt {
        font-size: 14px;
    }
}

/* ============================================
   RTL SUPPORT
   ============================================ */
[dir="rtl"] .blog-article-content {
    text-align: right;
}

[dir="rtl"] .blog-article-content blockquote {
    border-left: none;
    border-right: 4px solid var(--blog-primary);
}

[dir="rtl"] .blog-share-section {
    flex-direction: row-reverse;
}

[dir="rtl"] .share-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .related-blog-content {
    text-align: right;
}

[dir="rtl"] .related-blog-readmore {
    margin-right: auto;
    margin-left: 0;
}
