/* Modern Blog Detail Page Styles */

/* Remove top spacing */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

body.single-post {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Blog Detail Section */
.blog-detail-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-detail-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    margin: 0 auto;
}

/* Main Content Area */
.blog-detail-main {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Featured Image */
.post-featured-image {
    position: relative;
    overflow: hidden;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-featured-image:hover img {
    transform: scale(1.05);
}

/* Post Meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 35px 50px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.post-meta-item:hover {
    background: #e5e7eb;
    color: var(--logisko-red);
}

.post-meta-item svg {
    width: 18px;
    height: 18px;
    fill: var(--logisko-red);
    flex-shrink: 0;
}

.post-meta-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-meta-item a:hover {
    color: var(--logisko-red);
}

/* Post Content */
.post-content {
    padding: 50px;
    font-size: 17px;
    line-height: 1.9;
    color: #374151;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--logisko-dark);
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 32px;
    border-left: 5px solid var(--logisko-red);
    padding-left: 20px;
}

.post-content h3 {
    font-size: 26px;
}

.post-content h4 {
    font-size: 22px;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 35px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.post-content ul,
.post-content ol {
    margin: 25px 0;
    padding-left: 40px;
}

.post-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.post-content ul li::marker {
    color: var(--logisko-red);
}

.post-content blockquote {
    border-left: 5px solid var(--logisko-red);
    padding: 25px 35px;
    margin: 35px 0;
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4b5563;
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 60px;
    color: var(--logisko-red);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.post-content a {
    color: var(--logisko-red);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.post-content a:hover {
    border-bottom-color: var(--logisko-red);
}

.post-content code {
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e11d48;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 25px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 30px 0;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Post Tags */
.post-tags {
    margin-top: 50px;
    padding: 35px 50px;
    border-top: 2px solid #f3f4f6;
    background: #fafafa;
}

.post-tags h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--logisko-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-tags h4::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--logisko-red);
    border-radius: 2px;
}

.tag-item {
    display: inline-block;
    background: #fff;
    color: #6b7280;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 5px;
    border: 2px solid #e5e7eb;
}

.tag-item:hover {
    background: var(--logisko-red);
    color: #fff;
    border-color: var(--logisko-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(223, 17, 25, 0.3);
}

/* Post Navigation */
.post-navigation {
    margin-top: 50px;
    padding: 0 50px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.nav-post {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.nav-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--logisko-red) 0%, #c00f16 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-post:hover::before {
    opacity: 0.05;
}

.nav-post:hover {
    border-color: var(--logisko-red);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.nav-post span {
    color: var(--logisko-red);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: 12px;
    letter-spacing: 1px;
    position: relative;
}

.nav-post h4 {
    color: var(--logisko-dark);
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
    position: relative;
}

.nav-next {
    text-align: right;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.widget-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--logisko-dark);
    margin: 0 0 25px 0;
    padding-bottom: 18px;
    border-bottom: 3px solid var(--logisko-red);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--logisko-blue);
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 12px;
}

.search-form input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.search-form input:focus {
    outline: none;
    border-color: var(--logisko-red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(223, 17, 25, 0.1);
}

.search-form button {
    background: linear-gradient(135deg, var(--logisko-red) 0%, #c00f16 100%);
    color: #fff;
    border: none;
    padding: 14px 22px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(223, 17, 25, 0.3);
}

.search-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(223, 17, 25, 0.4);
}

.search-form button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Widget List */
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: 0;
}

.widget-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #4b5563;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 8px;
    background: #f9fafb;
}

.widget-list a:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--logisko-red);
    padding-left: 22px;
    box-shadow: 0 2px 10px rgba(223, 17, 25, 0.1);
}

.widget-list a svg {
    width: 14px;
    height: 14px;
    fill: var(--logisko-red);
    margin-right: 12px;
    flex-shrink: 0;
}

.widget-list .count {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Widget Posts */
.widget-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-post-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f3f4f6;
}

.widget-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-post-item:first-child {
    padding-top: 0;
}

.widget-post-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.widget-post-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(223, 17, 25, 0.3) 0%, rgba(4, 34, 62, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.widget-post-thumb:hover::after {
    opacity: 1;
}

.widget-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.widget-post-thumb:hover img {
    transform: scale(1.15);
}

.widget-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-post-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.widget-post-content h4 a {
    color: var(--logisko-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget-post-content h4 a:hover {
    color: var(--logisko-red);
}

.widget-post-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}

.widget-post-date svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* Widget Tags */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.widget-tags .tag-item {
    background: #f3f4f6;
    color: #6b7280;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.widget-tags .tag-item:hover {
    background: var(--logisko-red);
    color: #fff;
    border-color: var(--logisko-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 17, 25, 0.3);
}

/* Comments Section */
.post-comments {
    margin-top: 60px;
    padding: 50px;
    border-top: 2px solid #f3f4f6;
}

/* Responsive */
@media (max-width: 1200px) {
    .blog-detail-layout {
        grid-template-columns: 1fr 340px;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: 2;
    }

    .post-featured-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .blog-detail-section {
        padding: 60px 0;
    }

    .blog-detail-section .container {
        padding: 0 20px;
    }

    .post-featured-image {
        height: 300px;
    }

    .post-meta {
        padding: 25px 30px;
        gap: 15px;
    }

    .post-content {
        padding: 35px 30px;
        font-size: 16px;
    }

    .post-content h2 {
        font-size: 26px;
    }

    .post-tags {
        padding: 25px 30px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
        padding: 0 30px 30px;
    }

    .nav-next {
        text-align: left;
    }

    .sidebar-widget {
        padding: 25px;
    }

    .widget-title {
        font-size: 20px;
    }
}