/* Post specific styles */
.post-container {
    padding-top: 30px;
    padding-bottom: 50px;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.post-article {
    padding: 40px;
    margin-bottom: 40px;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.2);
}

.post-header {
    margin-bottom: 25px;
    text-align: center;
}

.post-title {
    font-size: 2.5rem;
    color: var(--quaternary);
    margin: 15px 0;
    line-height: 1.3;
}

.category-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
}

.post-meta {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.post-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-body {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

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

.post-body h2, .post-body h3 {
    color: var(--primary);
    margin: 30px 0 15px 0;
}

.post-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.post-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 14px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-style: italic;
    /* !important overrides any leftover inline background/color that ends
       up baked into saved post content (e.g. pasted from Word/Google Docs
       in the admin editor) — without this, such posts render as an
       unreadable white box with near-invisible text in dark mode. */
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .post-body blockquote {
    background: rgba(255, 255, 255, 0.07) !important;
}

.post-body blockquote * {
    background: transparent !important;
    color: inherit !important;
}

.post-body .game-embed-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 20px 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    background: #111;
}

.post-body .game-embed-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.game-fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 1.15rem;
    cursor: pointer;
    line-height: 1;
}

.game-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .post-body .game-embed-wrapper {
        height: 450px;
    }
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.tag {
    background: rgba(0,0,0,0.05);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}

[data-theme="dark"] .tag {
    background: rgba(255,255,255,0.1);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

[data-theme="dark"] .share-buttons {
    border-top-color: rgba(255,255,255,0.1);
}

.share-buttons p {
    font-weight: bold;
    margin-right: 10px;
}

.share-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

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

.whatsapp { background: #25D366; }
.facebook { background: #1877F2; }
.twitter { background: #1DA1F2; }
.copy { background: #6c757d; }

/* Comments */
.comments-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

[data-theme="dark"] .comments-section {
    border-top-color: rgba(255,255,255,0.1);
}

.comments-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.comment-form {
    background: rgba(0,0,0,0.03);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 30px;
}

[data-theme="dark"] .comment-form {
    background: rgba(255,255,255,0.05);
}

.comment-form-row {
    margin-bottom: 12px;
}

.comment-form input[type="text"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-color);
    resize: vertical;
}

[data-theme="dark"] .comment-form input[type="text"],
[data-theme="dark"] .comment-form textarea {
    border-color: rgba(255,255,255,0.15);
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-note {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.75;
}

/* Honeypot — kept in the DOM/tab order out of the way but fully hidden
   from real visitors, so only bots that blindly fill every field trip it */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    background: rgba(0,0,0,0.03);
    border-radius: 12px;
    padding: 16px 18px;
}

[data-theme="dark"] .comment-item {
    background: rgba(255,255,255,0.05);
}

.comment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.comment-item-name {
    font-weight: 700;
    color: var(--primary);
}

.comment-item-date {
    font-size: 0.8rem;
    opacity: 0.65;
}

.comment-item-text {
    line-height: 1.6;
    word-wrap: break-word;
}

.related-posts {
    margin-top: 50px;
}

.related-posts h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

/* Skeletons */
.skeleton-title { height: 40px; width: 60%; margin: 0 auto 20px; border-radius: 10px; }
.skeleton-img { height: 300px; width: 100%; border-radius: 15px; margin-bottom: 30px; }
.skeleton-text { height: 20px; width: 100%; margin-bottom: 10px; border-radius: 5px; }

@media (max-width: 768px) {
    .post-article { padding: 20px; }
    .post-title { font-size: 2rem; }
    .post-body { font-size: 1.1rem; }
}
