﻿/* Base styling for blog details page */
.blog-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Rubik', 'Segoe UI', sans-serif;
    color: #333;
}

/* Hero section with featured image */
.blog-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-hero:hover {
    transform: translateY(-5px);
}

.blog-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 1.5s ease;
}

.blog-hero:hover .blog-hero-image {
    transform: scale(1.05);
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.blog-hero a, blog-hero button {
    color: #fff;
    outline: medium none;
}

.blog-title {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta-item i {
    font-size: 1.2rem;
}

/* Blog content section */
.blog-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    padding: 0 1rem;
}

@media (max-width: 992px) {
    .blog-content-wrapper {
        grid-template-columns: 1fr;
    }
}

.blog-main-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

.blog-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.blog-text p {
    margin-bottom: 1.5rem;
}

.blog-text h2 {
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.blog-text h3 {
    margin: 1.8rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.blog-text a {
    color: #a227ff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.blog-text a:hover {
    border-color: #a227ff;
}

.blog-text img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.blog-text blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid #a227ff;
    background-color: rgba(32, 112, 224, 0.05);
    font-style: italic;
    position: relative;
}

.blog-text blockquote:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    color: rgba(32, 112, 224, 0.2);
    font-family: Georgia, serif;
}

/* Blog sidebar */
.blog-sidebar {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

.sidebar-widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.sidebar-widget-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.sidebar-widget-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: #a227ff;
}

.sidebar-post {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.sidebar-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post:hover {
    transform: translateX(5px);
}

.sidebar-post-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sidebar-post:hover .sidebar-post-image img {
    transform: scale(1.1);
}

.sidebar-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-post-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-date {
    font-size: 0.8rem;
    color: #777;
}

/* Tags widget */
.tags-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: #f5f5f5;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #555;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #a227ff;
    color: #fff;
    transform: translateY(-2px);
}

/* Social sharing section */
.blog-social-share {
    margin: 2rem 0;
    display: flex;
    gap: 0.8rem;
}

.share-title {
    font-weight: 500;
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.social-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-button.facebook {
    background: #3b5998;
}

.social-button.twitter {
    background: #1da1f2;
}

.social-button.linkedin {
    background: #0077b5;
}

.social-button.whatsapp {
    background: #25d366;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* CTA section */
.blog-cta {
    background: linear-gradient(135deg, #a227ff, #1a56b0);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
    color: #fff;
    box-shadow: 0 10px 30px rgba(26, 86, 176, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1.1s;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color:#fff;
}

.cta-button {
    background: #fff;
    color: #a227ff;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #f5f5f5;
}

/* Like and share buttons with animations */
.blog-action-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    background: #f5f5f5;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.action-button.like-button {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.action-button.like-button:hover,
.action-button.like-button.active {
    background: #e74c3c;
    color: #fff;
}

.action-button.like-button i {
    transition: transform 0.3s ease;
}

.action-button.like-button:hover i,
.action-button.like-button.active i {
    transform: scale(1.2);
}

.action-button.share-button {
    color: #a227ff;
    background: rgba(32, 112, 224, 0.1);
}

.action-button.share-button:hover {
    background: #a227ff;
    color: #fff;
}

.action-button.bookmark-button {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.action-button.bookmark-button:hover,
.action-button.bookmark-button.active {
    background: #f39c12;
    color: #fff;
}

/* Heart animation for like button */
.heart-animation {
    position: relative;
}

.heart-animation:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.3);
    z-index: -1;
    opacity: 0;
}

.heart-animation.animate:before {
    animation: heartPulse 0.5s ease-out;
}

@keyframes heartPulse {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }

    100% {
        width: 50px;
        height: 50px;
        opacity: 0;
    }
}

/* Rich text content styling */
.rich-text-content {
    line-height: 1.8;
}

.rich-text-content h2 {
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.rich-text-content h3 {
    margin: 1.8rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.rich-text-content p {
    margin-bottom: 1.5rem;
}

.rich-text-content ul,
.rich-text-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.rich-text-content ul li,
.rich-text-content ol li {
    margin-bottom: 0.5rem;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Animation delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.delay-900 {
    animation-delay: 0.9s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Parallax scroll effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Blog editor specific styles */
.blog-editor-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.editor-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Fix for Summernote editor */
.note-editor.note-frame {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px;
    overflow: hidden;
}

.note-toolbar {
    background: #f8f9fa !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.note-btn {
    background: #fff !important;
    border: 1px solid #ddd !important;
    padding: 0.25rem 0.5rem !important;
}

    .note-btn:hover {
        background: #f0f0f0 !important;
    }

.note-editable {
    background: #fff !important;
    color: #333 !important;
    font-family: 'Rubik', 'Segoe UI', sans-serif !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    padding: 1rem !important;
}

/* Reading progress bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.reading-progress-bar {
    height: 4px;
    background: #a227ff;
    width: 0;
    transition: width 0.1s ease;
}

/* Comment section */
.blog-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1.3s;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.comment-form {
    margin-bottom: 2rem;
}

.comment-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

    .comment-input:focus {
        border-color: #a227ff;
        outline: none;
    }

.comment-submit {
    background: #a227ff;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .comment-submit:hover {
        background: #1a56b0;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(26, 86, 176, 0.3);
    }

/* Responsive styles */
@media (max-width: 768px) {
    .blog-hero {
        height: 50vh;
    }

    .blog-title {
        font-size: 1.8rem;
    }

    .blog-content-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-main-content {
        padding: 1.5rem;
    }

    .blog-text {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        height: 40vh;
    }

    .blog-title {
        font-size: 1.5rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-action-buttons {
        flex-wrap: wrap;
    }
}
.author-avatar img {
    width: 100px;
    border-radius: 50px;
    height: 100px;
    object-fit: cover;
}
