/* Single Post Styles - Planet MCPE Theme */
/* Post Content Styling */
.post-content {
    max-width: 100%;
}
.post-content h1 {
    font-size: 1.9rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}
.post-content h2 {
    font-size: 2rem;
    color: var(--accent);
    margin: 30px 0 15px;
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}
.post-content h3 {
    font-size: 1.6rem;
    margin: 25px 0 12px;
    color: var(--primary);
    font-weight: 600;
}
.post-content h4 {
    font-size: 1.3rem;
    margin: 20px 0 10px;
    font-weight: 600;
    color: var(--text-primary);
}
.post-content h5 {
    font-size: 1.1rem;
    margin: 15px 0 8px;
    font-weight: 600;
    color: var(--text-primary);
}
.post-content h6 {
    font-size: 1rem;
    margin: 12px 0 6px;
    font-style: italic;
    font-weight: 600;
    color: var(--text-secondary);
}
.post-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}
.post-content ul,
.post-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}
.post-content ul {
    list-style: disc;
}
.post-content ol {
    list-style: decimal;
}
.post-content ul li,
.post-content ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin-top: 8px;
    margin-bottom: 0;
}
.post-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}
.post-content a:hover {
    color: var(--accent);
    text-decoration: none;
}
.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.05rem;
    background: rgba(0, 255, 136, 0.05);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
}
.post-content table th,
.post-content table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.95rem;
}
.post-content table th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-content table td {
    color: var(--text-secondary);
}
.post-content table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}
.post-content table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}
/* Post Images */
.post-image1 {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
.post-image:hover {
    transform: scale(1.02);
}
/* Responsive Video Embed */
.post-video,
.post-main-content iframe {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.post-main-content .wp-block-embed {
    margin: 20px 0;
    max-width: 100%;
}
.post-main-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}
.post-main-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* Table of Contents */
.toc {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    margin: 25px 0;
    width: 100%;
    max-width: 100%;
}
.toc h2 {
    font-size: 1.2rem;
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    font-weight: 600;
    margin: 0;
    transition: all 0.3s ease;
}
.toc h2:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transform: translateY(-2px);
}
.toc ul {
    list-style: none;
    padding: 8px 0;
    display: none;
    margin: 8px 0 0 0;
}
.toc ul.visible {
    display: block;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.toc ul li {
    margin: 4px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.9rem;
}
.toc ul li::before {
    content: attr(data-level) '.';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: 600;
    top: 0;
}
.toc ul li a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 0;
    border-radius: 4px;
    display: block;
}
.toc ul li a:hover {
    color: var(--accent);
    padding-left: 8px;
}
.toc ul ul {
    padding-left: 20px;
    margin-top: 4px;
}
.toc ul ul li::before {
    content: attr(data-level) '.';
}
/* Post Notifications */
.pin-notification,
.important-notification,
.faq-notification {
    margin-bottom: 20px;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}
.pin-notification {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(78, 205, 196, 0.1));
    border: 2px solid var(--primary);
}
.important-notification {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 182, 71, 0.1));
    border: 2px solid var(--secondary);
}
.faq-notification {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(108, 92, 231, 0.1));
    border: 2px solid var(--accent);
}
/* Changes Block */
.changes-block {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid var(--secondary);
}
.changes-block h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
}
/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    padding: 25px;
    margin: 35px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}
.download-section h2 {
    font-size: 1.6rem;
    color: var(--bg-dark);
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: none;
    padding-bottom: 0;
}
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-dark);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 160px;
    justify-content: center;
}
.download-btn:hover {
    transform: translateY(-3px);
    background: var(--text-primary);
    color: var(--bg-dark);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}
.download-btn .icon {
    width: 28px;
    height: 28px;
}
.download-btn .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.download-btn .price-tag {
    background: var(--secondary);
    color: var(--bg-dark);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}
/* Post Meta Information */
.post-meta-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.post-meta-info span {
    position: relative;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: background 0.3s ease;
}
.post-meta-info span:hover {
    background: rgba(255, 255, 255, 0.08);
}
.post-meta-info a {
    color: var(--primary);
    text-decoration: none;
}
.post-meta-info a:hover {
    color: var(--accent);
    text-decoration: underline;
}
/* Inline Ad Blocks */
.ad-block.inline-ad {
    margin: 30px 0;
    border-radius: 16px;
    min-height: 120px;
}
/* Related Posts Section */
.related-posts {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}
.related-posts h2 {
    font-size: 1.6rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
}
.related-posts .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}
.related-posts .post-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    min-height: 100px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.related-posts .post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 255, 136, 0.3);
}
.related-posts .post-card .post-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 0 8px;
}
.related-posts .post-card .post-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.related-posts .post-card .post-content h3 {
    font-size: 1rem;
    margin: 0 0 5px;
    line-height: 1.4;
}
.related-posts .post-card .post-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
}
.related-posts .post-card .post-content h3 a:hover {
    color: var(--primary);
}
.related-posts .post-card .post-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-posts .post-card .post-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Responsive Design */
@media (max-width: 768px) {
    .post-content h1 {
        font-size: 1.9rem;
        margin-bottom: 15px;
    }
    .post-content h2 {
        font-size: 1.6rem;
        margin: 25px 0 12px;
    }
    .post-content h3 {
        font-size: 1.4rem;
        margin: 20px 0 10px;
    }
    .post-content h4 {
        font-size: 1.2rem;
        margin: 18px 0 8px;
    }
    .post-content h5 {
        font-size: 1rem;
        margin: 15px 0 6px;
    }
    .post-content h6 {
        font-size: 0.9rem;
        margin: 12px 0 5px;
    }
    .post-content p {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }
    .post-content table th,
    .post-content table td {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    .post-content blockquote {
        padding: 12px 16px;
        font-size: 1rem;
    }
    .toc {
        padding: 8px;
    }
    .toc h2 {
        font-size: 1.1rem;
        padding: 6px 10px;
    }
    .toc ul li {
        font-size: 0.85rem;
        padding-left: 20px;
    }
    .download-section {
        padding: 20px;
        margin: 25px 0;
    }
    .download-section h2 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }
    .download-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .download-btn {
        min-width: 140px;
        font-size: 0.85rem;
        padding: 10px 16px;
    }
    .download-btn .icon {
        width: 24px;
        height: 24px;
    }
    .download-btn .price-tag {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    .post-meta-info {
        flex-direction: column;
        gap: 12px;
        font-size: 0.85rem;
        text-align: center;
    }
    .post-meta-info span {
        padding: 6px 10px;
    }
    .related-posts {
        margin-top: 30px;
    }
    .related-posts h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    .related-posts .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .related-posts .post-card {
        min-height: 120px;
    }
    .related-posts .post-card .post-image {
        height: auto;
        max-height: 200px;
    }
    .related-posts .post-card .post-content h3 {
        font-size: 1.4rem;
    }
    .related-posts .post-card .post-content p {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
    }
    .related-posts .post-card .post-meta {
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {
    .post-content h1 {
        font-size: 1.8rem;
    }
    .post-content h2 {
        font-size: 1.4rem;
    }
    .post-content h3 {
        font-size: 1.2rem;
    }
    .post-content p {
        font-size: 0.9rem;
    }
    .toc h2 {
        font-size: 1rem;
    }
    .toc ul li {
        font-size: 0.8rem;
    }
    .download-section h2 {
        font-size: 1.2rem;
    }
    .download-btn {
        min-width: 120px;
        font-size: 0.8rem;
        padding: 8px 14px;
    }
    .related-posts h2 {
        font-size: 1.4rem;
    }
    .related-posts .post-card .post-content h3 {
        font-size: 1.2rem;
    }
    .related-posts .post-card .post-content p {
        font-size: 0.9rem;
    }
}