/**
 * Single Blog Page Styles
 * Primary: #19868b | Secondary: #e1273d | Dark: #0d6b6f
 */

/* ===========================================
   Hero Section
   =========================================== */
.blog-hero-section {
    min-height: 450px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-hero-gradient {
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 50%, #095456 100%);
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 0 80px;
    max-width: 900px;
    margin: 0 auto;
}

.blog-hero-section .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.blog-hero-section .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.blog-hero-section .breadcrumb-item a:hover {
    color: #ffffff;
}

.blog-hero-section .breadcrumb-item.active {
    color: #ffffff;
}

.blog-hero-section .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.blog-hero-category a {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.blog-hero-category a:hover {
    background: linear-gradient(135deg, #0d6b6f 0%, #095456 100%);
    text-decoration: none;
    color: #ffffff;
    transform: translateY(-2px);
}

.blog-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.blog-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.blog-hero-meta .blog-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.blog-hero-meta .blog-date i {
    color: #19868b;
    background: rgba(255, 255, 255, 0.9);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* ===========================================
   Content Section
   =========================================== */
.blog-content-section {
    background: #f8fafc;
}

.blog-article {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.blog-featured-image {
    margin: -40px -40px 40px -40px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================================
   Article Body
   =========================================== */
.blog-body {
    font-size: 17px;
    line-height: 1.9;
    color: #4a5568;
}

.blog-body h1,
.blog-body h2,
.blog-body h3,
.blog-body h4,
.blog-body h5,
.blog-body h6 {
    color: #1a1a2e;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-body h2 {
    font-size: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(25, 134, 139, 0.2);
}

.blog-body h3 {
    font-size: 24px;
}

.blog-body h4 {
    font-size: 20px;
}

.blog-body p {
    margin-bottom: 20px;
}

.blog-body a {
    color: #19868b;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-body a:hover {
    color: #0d6b6f;
}

.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.blog-body ul,
.blog-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.blog-body li {
    margin-bottom: 10px;
}

.blog-body blockquote {
    border-left: 4px solid #19868b;
    padding: 20px 25px;
    margin: 25px 0;
    background: linear-gradient(135deg, rgba(25, 134, 139, 0.05) 0%, rgba(25, 134, 139, 0.02) 100%);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #5a5a5a;
}

.blog-body pre {
    background: #1a1a2e;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
}

.blog-body code {
    background: rgba(25, 134, 139, 0.1);
    color: #19868b;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.blog-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.blog-body th,
.blog-body td {
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    text-align: left;
}

.blog-body th {
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    color: #ffffff;
}

.blog-body tr:nth-child(even) {
    background: #f8fafc;
}

/* ===========================================
   Tags Section
   =========================================== */
.blog-tags {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.tags-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
}

.tags-label i {
    color: #19868b;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #19868b;
    color: #ffffff;
}

/* ===========================================
   Share Section
   =========================================== */
.blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.share-label {
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
}

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

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.copy-link {
    background: #19868b;
}

.share-btn.copy-link.copied {
    background: #10b981;
}

/* ===========================================
   Navigation
   =========================================== */
.blog-navigation {
    display: flex;
    justify-content: flex-start;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    color: #ffffff;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: linear-gradient(135deg, #0d6b6f 0%, #095456 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(25, 134, 139, 0.3);
}

/* ===========================================
   Sidebar (reusing from blogs-page.css)
   =========================================== */
.blog-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #19868b 0%, #0d6b6f 100%);
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 10px;
    color: #5a5a5a;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.category-list li a:hover,
.category-list li.active a {
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    color: #ffffff;
    text-decoration: none;
}

.category-list li a .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: rgba(25, 134, 139, 0.1);
    color: #19868b;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.category-list li a:hover .count,
.category-list li.active a .count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.recent-post-item:hover .recent-post-image img {
    transform: scale(1.1);
}

.recent-post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.recent-post-placeholder i {
    font-size: 24px;
    color: #19868b;
    opacity: 0.5;
}

.recent-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.recent-post-title a {
    color: #1a1a2e;
    transition: color 0.3s ease;
}

.recent-post-title a:hover {
    color: #19868b;
    text-decoration: none;
}

.recent-post-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #94a3b8;
}

.recent-post-date i {
    color: #19868b;
}

/* ===========================================
   Responsive Styles
   =========================================== */
@media (max-width: 991px) {
    .blog-hero-title {
        font-size: 32px;
    }
    
    .blog-article {
        padding: 25px;
    }
    
    .blog-featured-image {
        margin: -25px -25px 25px -25px;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .blog-hero-section {
        min-height: 380px;
    }
    
    .blog-hero-content {
        padding: 80px 0 60px;
    }
    
    .blog-hero-title {
        font-size: 26px;
    }
    
    .blog-body {
        font-size: 16px;
    }
    
    .blog-tags,
    .blog-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-article {
        padding: 20px;
    }
    
    .blog-featured-image {
        margin: -20px -20px 20px -20px;
        border-radius: 20px 20px 0 0;
    }
}

/* ===========================================
   RTL Support
   =========================================== */
[dir="rtl"] .blog-body blockquote {
    border-left: none;
    border-right: 4px solid #19868b;
    border-radius: 12px 0 0 12px;
}

[dir="rtl"] .blog-body ul,
[dir="rtl"] .blog-body ol {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] .widget-title::after {
    left: auto;
    right: 0;
}

