/* Post Detail Page Styles */

.post-detail-container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* Hero Header */
.post-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 500px;
    overflow: hidden;
    margin-bottom: -100px;
    /* Overlap with content */
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) blur(2px);
    transition: transform 0.5s ease;
}

.post-hero:hover .post-hero-bg {
    transform: scale(1.05);
}

.post-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
    color: #fff;
}

.post-hero .post-title {
    font-family: 'Pirata One', cursive;
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    margin: 0 0 20px 0;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out;
}

.post-hero .post-meta {
    justify-content: center;
    gap: 25px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 1s ease-out;
}

.post-hero .post-meta i {
    color: #dc3545;
}

/* Content Area */
.post-main-card {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.post-content {
    flex: 2;
    min-width: 0;
}

.post-body {
    padding: 50px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.post-body p {
    margin-bottom: 25px;
}

.post-body h2 {
    font-family: 'Pirata One', cursive;
    color: #fff;
    margin: 50px 0 25px;
    font-size: 2.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.post-body h3 {
    color: #fff;
    margin: 40px 0 20px;
    font-size: 1.8rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.post-body blockquote {
    border-left: 4px solid #dc3545;
    background: rgba(220, 53, 69, 0.05);
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    color: #ccc;
    border-radius: 0 8px 8px 0;
}

/* List Styling */
.post-body ul,
.post-body ol {
    margin: 0 0 30px 25px;
    padding: 0;
}

.post-body li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 5px;
}

.post-body ul li {
    list-style: none;
}

.post-body ul li::before {
    content: "◈";
    color: #dc3545;
    position: absolute;
    left: -25px;
    font-size: 1.2rem;
    line-height: inherit;
}

.post-body ol {
    list-style-type: decimal;
}

.post-body ol li::marker {
    color: #dc3545;
    font-weight: bold;
    font-family: 'Pirata One', cursive;
    font-size: 1.3rem;
}

.post-body ul ul,
.post-body ol ol {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Sidebar */
.post-sidebar {
    flex: 1;
    max-width: 380px;
    padding-top: 100px;
}

.sidebar-sticky-wrapper {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-widget h3 {
    margin: 0 0 20px 0;
    font-family: 'Pirata One', cursive;
    color: #dc3545;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-widget h3 i {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Item Lists in Sidebar */
.sidebar-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px;
    border: 1px solid transparent;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(220, 53, 69, 0.3);
    transform: translateX(5px);
}

.sidebar-item a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.item-thumb {
    width: 64px;
    height: 64px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
    overflow: hidden;
}

.item-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.item-creator {
    color: #888;
    font-size: 0.8rem;
    display: block;
}

/* Warband Tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.warband-tag {
    background: rgba(220, 53, 69, 0.1);
    color: #fb8c96;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
    transition: all 0.2s;
    font-weight: 500;
}

.warband-tag:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

/* Related Posts Section */
.related-posts-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #333;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.related-posts-section h2 {
    font-family: 'Pirata One', cursive;
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 30px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.related-post-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #333;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.related-post-card:hover {
    transform: translateY(-8px);
    border-color: #dc3545;
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.1);
}

.related-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #333;
}

.related-card-content {
    padding: 20px;
}

.related-card-content h4 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.4;
    font-family: 'Pirata One', cursive;
}

.related-card-content .date {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Share Buttons */
.post-share {
    padding: 20px 50px;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #888;
    background: rgba(255, 255, 255, 0.01);
}

.share-links {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.fb:hover {
    background: #3b5998;
}

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

.share-btn.rd:hover {
    background: #ff4500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .post-detail-container {
        flex-direction: column;
    }

    .post-sidebar {
        max-width: none;
        padding-top: 0;
    }

    .post-hero .post-title {
        font-size: 3rem;
    }

    .post-body {
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .post-hero {
        height: 350px;
    }

    .post-hero .post-title {
        font-size: 2.2rem;
    }

    .post-body {
        padding: 20px;
        font-size: 1.1rem;
    }
}