/* Enhanced Blog Details Page - Beautiful Modern Design */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #e41407, #ff6b6b);
    z-index: 9999;
    transition: width 0.3s ease;
    box-shadow: 0 2px 4px rgba(228, 20, 7, 0.3);
}

/* Blog Details Header */
.blog-details-header {
    background: linear-gradient(135deg, #043370 0%, #4385f6 50%, #667eea 100%);
    padding: 80px 0 60px;
    margin-top: 52px;
    position: relative;
    overflow: hidden;
    color: white;
}

.blog-details-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float-bg 20s ease-in-out infinite;
}

@keyframes float-bg {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Enhanced Breadcrumb */
.enhanced-breadcrumb {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.breadcrumb-item.active span {
    color: white;
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.breadcrumb-item:not(:last-child)::after {
    content: '?';
    color: rgba(255, 255, 255, 0.6);
    margin-left: 15px;
    font-weight: bold;
}

/* Blog Header Content */
.blog-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.post-category {
    margin-bottom: 20px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(228, 20, 7, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(228, 20, 7, 0.3);
}

.blog-title {
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.2;
    margin: 20px 0 30px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    font-size: 1.1em;
}

.author-title {
    opacity: 0.8;
    font-size: 0.9em;
}

.post-meta-details {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95em;
    opacity: 0.9;
}

.meta-item i {
    color: #ff6b6b;
}

/* Main Content Area */
.blog-details-main {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    min-height: 70vh;
}

.blog-article {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.08);
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Featured Image Section */
.featured-image-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(4, 51, 112, 0.7), rgba(228, 20, 7, 0.7));
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.blog-article:hover .featured-image {
    transform: scale(1.05);
}

.blog-article:hover .image-overlay {
    opacity: 1;
}

.image-caption {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Article Content */
.article-content {
    padding: 60px 50px 40px;
}

.content-wrapper {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.2em;
    line-height: 1.8;
    color: #333;
    text-rendering: optimizeLegibility;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
    font-family: 'Open Sans', sans-serif;
    color: #043370;
    margin-top: 2.5em;
    margin-bottom: 1em;
    font-weight: 600;
    line-height: 1.3;
}

.content-wrapper h2 {
    font-size: 1.8em;
    position: relative;
    padding-bottom: 15px;
}

.content-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e41407, #ff6b6b);
    border-radius: 2px;
}

.content-wrapper h3 {
    font-size: 1.5em;
    color: #4385f6;
}

.content-wrapper p {
    margin-bottom: 1.8em;
    text-align: justify;
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 1.8em;
    padding-left: 2em;
}

.content-wrapper li {
    margin-bottom: 0.8em;
}

.content-wrapper blockquote {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.3em;
    line-height: 1.6;
    margin: 2.5em 0;
    padding: 30px 40px;
    border-left: 5px solid #e41407;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 0 15px 15px 0;
    position: relative;
}

.content-wrapper blockquote::before {
    content: '"';
    font-size: 4em;
    color: #e41407;
    position: absolute;
    top: 10px;
    left: 15px;
    opacity: 0.3;
    font-family: serif;
}

.content-wrapper code {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    color: #e41407;
    font-family: 'Monaco', monospace;
    font-size: 0.9em;
}

.content-wrapper pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2em 0;
    border: 1px solid #e9ecef;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2em 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.content-wrapper a {
    color: #4385f6;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.content-wrapper a:hover {
    color: #043370;
    border-bottom-color: #e41407;
    text-decoration: none;
}

/* Article Footer */
.article-footer {
    padding: 40px 50px 50px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.article-tags {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.tags-title {
    color: #043370;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tags-title i {
    color: #e41407;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-item {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    color: #555;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tag-item:hover {
    background: linear-gradient(135deg, #4385f6, #667eea);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 133, 246, 0.3);
}

/* Social Share Section */
.social-share-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

.share-title {
    color: #043370;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-title i {
    color: #e41407;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #3b5998, #4c70ba);
    color: white;
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #00669c);
    color: white;
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #20ba5a);
    color: white;
}

.share-btn.copy {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.share-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.share-btn.loading::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.share-btn.success {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.share-btn.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

/* Author Bio Section */
.author-bio-section {
    margin-bottom: 40px;
}

.author-bio-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #043370, #4385f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(4, 51, 112, 0.3);
}

.author-bio-content {
    flex: 1;
}

.author-bio-name {
    color: #043370;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-bio-title {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.author-bio-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-social-links {
    display: flex;
    gap: 12px;
}

.author-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.author-social-link:hover {
    background: linear-gradient(135deg, #4385f6, #667eea);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 133, 246, 0.3);
    text-decoration: none;
}

/* Navigation Section */
.blog-navigation-section {
    margin: 50px 0;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.nav-item {
    display: flex;
}

.nav-previous {
    justify-content: flex-start;
}

.nav-next {
    justify-content: flex-end;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.nav-link:hover {
    background: linear-gradient(135deg, #043370, #4385f6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 51, 112, 0.3);
    text-decoration: none;
}

.nav-link-center {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #e41407, #ff6b6b);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link-center:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff8a80);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 20, 7, 0.3);
    color: white;
    text-decoration: none;
}

.nav-icon {
    font-size: 1.2em;
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-label {
    font-size: 0.8em;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-weight: 600;
}

/* Call to Action Section */
.blog-cta-section {
    margin: 50px 0;
}

.cta-card {
    background: linear-gradient(135deg, #043370 0%, #4385f6 100%);
    border-radius: 25px;
    padding: 50px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float-bg 15s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-description {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-btn.primary {
    background: #ffffff;
    color: #043370;
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.cta-btn.primary:hover {
    background: #f8f9fa;
    color: #043370;
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

/* Debug Section */
.debug-section {
    margin: 40px 0;
}

.debug-card {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 15px;
    padding: 25px;
}

.debug-title {
    color: #856404;
    font-size: 1.2em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.debug-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.debug-item h5 {
    color: #856404;
    margin-bottom: 10px;
    font-weight: 600;
}

.debug-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.debug-list li {
    color: #664d03;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.debug-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.debug-btn {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.debug-btn.facebook {
    background: #3b5998;
    color: white;
}

.debug-btn.twitter {
    background: #1da1f2;
    color: white;
}

.debug-btn.linkedin {
    background: #0077b5;
    color: white;
}

.debug-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-details-header {
        padding: 60px 0 40px;
    }
    
    .blog-title {
        font-size: 2.2em;
    }
    
    .blog-meta-info {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .post-meta-details {
        justify-content: center;
    }
    
    .featured-image-section {
        height: 300px;
    }
    
    .article-content {
        padding: 40px 25px 30px;
    }
    
    .content-wrapper {
        font-size: 1.1em;
        line-height: 1.7;
        text-align: left;
    }
    
    .content-wrapper h2 {
        font-size: 1.5em;
    }
    
    .article-footer {
        padding: 30px 25px 40px;
    }
    
    .author-bio-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .author-avatar-large {
        align-self: center;
    }
    
    .nav-container {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .nav-item {
        justify-content: center;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.8em;
    }
    
    .breadcrumb-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        content: '?';
        margin-left: 0;
    }
    
    .article-content {
        padding: 30px 20px 25px;
    }
    
    .content-wrapper {
        font-size: 1.05em;
    }
    
    .article-footer {
        padding: 25px 20px 30px;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-card {
        padding: 40px 25px;
    }
    
    .cta-title {
        font-size: 1.8em;
    }
}