/* ==========================================================================
   Blog Detail Page - EZ Rankings Style with Sidebar
   ========================================================================== */

/* Main Wrapper */
.blog-detail-wrapper {
    background: #f8f9fa;
    padding: 40px 0 80px;
}

.blog-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.blog-detail-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #6c757d;
}

.breadcrumbs .current {
    color: #495057;
}

/* Post Header */
.blog-post-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #212529;
    margin: 20px 0;
}

/* Meta Info */
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-meta img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.meta-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.meta-separator {
    color: #dee2e6;
}

/* Social Share Top */
.social-share-top {
    display: flex;
    gap: 10px;
}

.share-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

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

.share-icon.pinterest {
    background: #e60023;
}

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

.share-icon:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Featured Image */
.blog-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

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

/* Post Content */
.blog-post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #212529;
    margin-bottom: 40px;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #212529;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
}

.blog-post-content h3 {
    font-size: 1.5rem;
}

.blog-post-content h4 {
    font-size: 1.25rem;
}

.blog-post-content a {
    color: #007bff;
    text-decoration: underline;
}

.blog-post-content a:hover {
    color: #0056b3;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
}

.blog-post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.blog-post-content ul li::marker {
    color: #007bff;
}

.blog-post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    font-style: italic;
    color: #495057;
}

.blog-post-content pre,
.blog-post-content code {
    background: #f8f9fa;
    color: #212529;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    border: 1px solid #e9ecef;
}

.blog-post-content pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post-content code {
    padding: 2px 6px;
    font-size: 0.95em;
}

.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border: 1px solid #dee2e6;
}

.blog-post-content table th,
.blog-post-content table td {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    text-align: left;
}

.blog-post-content table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #212529;
}

.blog-post-content table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Page Links */
.page-links {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.page-links-title {
    font-weight: 600;
    margin-right: 10px;
}

.page-links span,
.page-links a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Post Footer */
.blog-post-footer {
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.post-tags-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-tags-section strong {
    color: #212529;
}

.tag-link {
    display: inline-block;
    padding: 6px 14px;
    background: #f8f9fa;
    color: #495057;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Author Box */
.author-box-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.author-box-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.author-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    text-align: center;
}

.author-avatar-wrapper img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-bottom: 10px;
}

.author-social-links {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.author-social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.author-social-link.linkedin {
    background: #0a66c2;
}

.author-social-link.twitter {
    background: #1da1f2;
}

.author-social-link.facebook {
    background: #1877f2;
}

.author-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.author-info-wrapper {
    flex: 1;
}

.author-name-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
}

.author-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.view-all-posts {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-posts:hover {
    color: #0056b3;
    gap: 12px;
}

/* Navigation Arrows */
.post-navigation-arrows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.nav-arrow {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-arrow a {
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-arrow.next-arrow a {
    align-items: flex-end;
}

.arrow-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-top: 8px;
    letter-spacing: 0;
}

.nav-arrow a i {
    display: inline;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.blog-sidebar {
    position: sticky;
    top: 40px;
}

/* Widget Styling */
.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #22d3ee;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.95rem;
}

.search-submit {
    padding: 10px 20px;
    background: linear-gradient(135deg, #22d3ee 0%, #22d3ee 100%);
    color: #1e293b;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.search-submit:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #22d3ee 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* Popular Posts Widget */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.popular-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-post-thumb:hover img {
    transform: scale(1.05);
}

.popular-post-content {
    flex: 1;
}

.popular-post-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.popular-post-content h4 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post-content h4 a:hover {
    color: #007bff;
}

.popular-post-date {
    font-size: 0.8rem;
    color: #6c757d;
}

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

.recent-post-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.recent-post-item h4 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-item h4 a:hover {
    color: #007bff;
}

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

.categories-list li {
    margin-bottom: 12px;
}

.categories-list li a {
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.categories-list li a:hover {
    color: #007bff;
    padding-left: 8px;
}

/* What to Read Next Widget */
.read-next-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.read-next-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.read-next-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.read-next-thumb {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.read-next-thumb img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.read-next-thumb:hover img {
    transform: scale(1.05);
}

.read-next-item h5 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.read-next-item h5 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-next-item h5 a:hover {
    color: #007bff;
}

.read-next-date {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.read-more-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #007bff;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* ==========================================================================
   Comments Section
   ========================================================================== */

.blog-detail-content #comments {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-body {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #007bff;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.comment-author .fn {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    font-style: normal;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.comment-metadata a {
    color: #6c757d;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #007bff;
}

.comment-content {
    color: #495057;
    line-height: 1.7;
}

.comment-content p {
    margin-bottom: 1rem;
}

.reply {
    margin-top: 15px;
}

.comment-reply-link {
    display: inline-block;
    padding: 6px 16px;
    background: #007bff;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.children {
    list-style: none;
    padding-left: 50px;
    margin-top: 20px;
}

/* Comment Form */
#respond {
    background: #fff;
    padding: 0;
}

.comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 25px;
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form label {
    display: block;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    grid-column: 1 / -1;
}

.form-submit #submit {
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit #submit:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.comment-form-cookies-consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
}

.comment-notes,
.logged-in-as {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.logged-in-as a {
    color: #007bff;
    text-decoration: none;
}

.logged-in-as a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .blog-detail-container {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .blog-detail-container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-detail-content {
        padding: 25px;
    }
    
    .blog-post-title {
        font-size: 1.75rem;
    }
    
    .blog-post-meta {
        font-size: 0.85rem;
    }
    
    .blog-post-content {
        font-size: 1rem;
    }
    
    .post-navigation-arrows {
        grid-template-columns: 1fr;
    }
    
    .nav-arrow.next-arrow a {
        align-items: flex-start;
    }
    
    .author-box-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .blog-detail-wrapper {
        padding: 20px 0 40px;
    }
    
    .blog-detail-content {
        padding: 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .blog-post-title {
        font-size: 1.5rem;
    }
    
    .breadcrumbs {
        font-size: 0.8rem;
    }
}
