/* Single Blog Page - Ultra Modern Dark Design */

/* Reset Bootstrap's box-sizing only for blog content */
.single__blog__page *,
.single__blog__page *::before,
.single__blog__page *::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #dc2626;
    --secondary-color: #991b1b;
    --dark-bg: #000000;
    --card-bg: #111827;
    --card-hover: #1f2937;
    --text-light: #f9fafb;
    --text-gray: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --gradient-start: #7f1d1d;
    --gradient-end: #111827;
}

.single__blog__page {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.single__blog__page::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 8s ease-in-out infinite;
}

.single__blog__page::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.single__blog__page .container {
    position: relative;
    z-index: 10;
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 1400px;
}

.single__blog__page .row {
    display: flex;
    flex-wrap: wrap;
}

/* Breadcrumb */
.blog-breadcrumb {
    margin-bottom: 30px;
}

.blog-breadcrumb .breadcrumb {
    background: rgba(17, 24, 39, 0.6);
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    margin-bottom: 0;
    font-size: 14px;
}

.blog-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--text-muted);
    padding: 0 10px;
}

.blog-breadcrumb .breadcrumb-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.blog-breadcrumb .breadcrumb-item.active {
    color: var(--text-muted);
}

/* Blog Article */
.blog-article {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.blog-article:hover {
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.2);
}

/* Blog Header */
.blog-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 25px;
}

.blog-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.blog__heading {
    font-size: 2.5rem;
    color: var(--text-light);
    font-weight: 800;
    line-height: 1.3;
    margin: 15px 0 20px 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .blog__heading {
        font-size: 1.75rem;
    }

    .blog-article {
        padding: 25px 20px;
    }
}

.blog__meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 0;
    gap: 20px;
    font-size: 14px;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: block;
}

.meta-info {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.author-name {
    font-weight: 600;
    color: var(--text-light);
    font-size: 14px;
}

.author-name::after {
    content: "";
    margin: 0;
}

.post-date {
    font-size: 14px;
    color: var(--text-muted);
}

.post-date::before {
    content: "";
    margin: 0;
}

.meta-stats {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.meta-stats::before {
    content: "";
    margin: 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 12px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(220, 38, 38, 0.2);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.stat-item::after {
    content: "";
    margin: 0;
}

.stat-item i {
    display: inline-block;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .meta-stats {
        margin-left: 0;
    }
}

/* Featured Image */
.featured-image {
    display: block;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.featured-image:hover img {
    transform: scale(1.05);
}

/* Blog Content */
.blog__content {
    margin-bottom: 50px;
    margin-top: 30px;
}

.content-text {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-gray);
    font-weight: 400;
}

.content-text p {
    margin-bottom: 24px;
    text-align: left;
}

.content-text h1,
.content-text h2,
.content-text h3,
.content-text h4,
.content-text h5,
.content-text h6 {
    color: var(--text-light);
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 20px;
}

.content-text h1::before,
.content-text h2::before,
.content-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.content-text h1 { font-size: 2rem; }
.content-text h2 { font-size: 1.75rem; }
.content-text h3 { font-size: 1.5rem; }
.content-text h4 { font-size: 1.25rem; }

.content-text ul,
.content-text ol {
    margin-left: 30px;
    margin-bottom: 24px;
    padding-left: 10px;
}

.content-text li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-gray);
}

.content-text strong,
.content-text b {
    font-weight: 700;
    color: var(--text-light);
}

/* Tags & Share Section */
.tags-share-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 25px;
    border: 1px solid var(--border-color);
}

.blog__tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 15px;
}

.tags-label i {
    color: var(--primary-color);
    margin-right: 8px;
}

.tags-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.blog__tags .tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.blog__tags .tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Share Section */
.share__section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 15px;
}

.share__icons {
    display: flex;
    gap: 12px;
}

.share-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    border: 2px solid transparent;
}

.share-icon:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.share-icon.linkedin { background: linear-gradient(135deg, #0077b5, #005885); }
.share-icon.facebook { background: linear-gradient(135deg, #1877f2, #0d5ecc); }
.share-icon.twitter { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.share-icon.pinterest { background: linear-gradient(135deg, #e60023, #bd001c); }
.share-icon.email { background: linear-gradient(135deg, #ea4335, #c1351d); }

/* Section Headings */
.section-heading {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 30px;
    margin-top: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.section-heading i {
    display: inline-block;
    color: var(--primary-color);
    margin-right: 12px;
}

/* Comments Section */
.comments__section {
    margin-bottom: 40px;
}

.comments-list {
    margin-top: 30px;
}

.comment {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.comment:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.comment:last-child {
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

@media (max-width: 768px) {
    .comment-avatar img {
        width: 50px;
        height: 50px;
    }

    .comment {
        padding: 20px;
        gap: 15px;
    }
}

.comment__details {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.commenter-name {
    font-weight: 700;
    color: var(--text-light);
    font-size: 17px;
}

.comment-date {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.comment-text p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.no-comments {
    text-align: center;
    padding: 60px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.no-comments i {
    font-size: 60px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-comments p {
    color: var(--text-gray);
    font-size: 17px;
    margin: 0;
}

/* Post Comment Form */
.post__comment {
    background: rgba(0, 0, 0, 0.2);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 40px;
}

.comment-form .form-group {
    margin-bottom: 25px;
}

.comment-form label {
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form label i {
    color: var(--primary-color);
    margin-right: 8px;
}

.comment-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.comment-form .form-control::placeholder {
    color: var(--text-muted);
}

.comment-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
    background: rgba(0, 0, 0, 0.4);
    outline: none;
}

.comment-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.submit__button {
    margin-top: 25px;
}

.submit__button button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.submit__button button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
}

.submit__button button i {
    font-size: 15px;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 20px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.sidebar-widget {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 45px;
    box-shadow: none;
    border: none;
    transition: none;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget:hover {
    box-shadow: none;
    border-color: transparent;
}

.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: left;
    position: relative;
}

.widget-title::after {
    display: none;
}

.widget-title i {
    display: none;
}

.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-post-card {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 16px 0;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: visible;
    margin-bottom: 0;
}

.sidebar-post-card:first-child {
    padding-top: 0;
}

.sidebar-post-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-post-card:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.06);
}

.sidebar-post-card:hover .sidebar-post-title {
    color: var(--primary-color);
}

.sidebar-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 0;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
}

.sidebar-post-thumb::after {
    display: none;
}

.sidebar-post-card:hover .sidebar-post-thumb::after {
    display: none;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

.sidebar-post-card:hover .sidebar-post-thumb img {
    transform: none;
}

.sidebar-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-thumb-placeholder i {
    font-size: 30px;
    color: rgba(255,255,255,0.2);
}

.sidebar-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 0;
}

.sidebar-post-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.2s ease;
}

.sidebar-post-date {
    font-size: 11px;
    color: rgba(156, 163, 175, 0.8);
    text-align: left;
    font-style: normal;
    font-weight: 400;
}

.sidebar-post-date i {
    margin-right: 4px;
    font-size: 10px;
    color: rgba(156, 163, 175, 0.6);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    padding: 18px 25px;
    margin-bottom: 25px;
    border: 2px solid;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    border-color: #10b981;
    color: #d1fae5;
}

.alert-success i {
    margin-right: 10px;
    color: #10b981;
}

/* SEO Keywords Section */
.seo-keywords-section {
    background: rgba(17, 24, 39, 0.5);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.keywords-heading {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.keywords-heading::before {
    content: "\f02b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(153, 27, 27, 0.1));
    color: var(--text-gray);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.keyword-tag:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(153, 27, 27, 0.2));
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .blog-sidebar {
        position: static;
        margin-top: 50px;
    }

    .single__blog__page .container {
        padding-top: 30px;
    }

    .blog-article {
        padding: 30px 20px;
    }

    .post__comment {
        padding: 25px 20px;
    }

    .tags-share-section {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .blog__heading {
        font-size: 1.5rem;
    }

    .section-heading {
        font-size: 1.4rem;
    }

    .share__icons {
        flex-wrap: wrap;
    }
}
