/* Shared styles for all detail pages (News, Game, Peripheral, Meiriyile) */

/* Unified Page Container for all detail pages */
.page-container {
    max-width: 960px !important;
    /* Match the game detail page width */
    margin: 30px auto !important;
    background-color: #fff !important;
    border-radius: 8px !important;
    /* Consistent border radius */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
}

/* Shared Article/Content Styles */
.article-title {
    font-size: 2em;
    margin-bottom: 0.5em;
    color: #1c1c1c;
}

.article-meta {
    color: #666;
    margin-bottom: 1.5em;
    font-size: 0.9em;
}

.article-content p {
    line-height: 1.7;
    margin-bottom: 1.2em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 760px) {
    .article-content img {
        max-width: 95%;
    }
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-bottom: 0.8em;
    font-weight: 600;
    line-height: 1.4;
}

.article-content h2 {
    font-size: 1.8em;
}

.article-content h3 {
    font-size: 1.5em;
}

.article-content a,
.article-content a:link,
.article-content a:visited,
.article-content a:hover,
.article-content a:active {
    color: blue;
    text-decoration: underline;
}

/* Skeleton Loader Styles */
.skeleton {
    background-color: #e0e0e0;
    border-radius: 4px;
    animation: shimmer 1.5s infinite linear;
    background-image: linear-gradient(90deg, #e0e0e0 0px, #f0f0f0 40px, #e0e0e0 80px);
    background-size: 600px 100%;
}

@keyframes shimmer {
    0% {
        background-position: -600px 0;
    }

    100% {
        background-position: 600px 0;
    }
}

.skeleton-title {
    width: 70%;
    height: 2.2em;
    margin-bottom: 0.7em;
}

.skeleton-meta {
    width: 40%;
    height: 1em;
    margin-bottom: 1.5em;
}

.skeleton-text {
    width: 100%;
    height: 1.2em;
    margin-bottom: 1.2em;
}

.share-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.share-button:hover {
    background-color: #0056b3;
}

.comment-form-actions {
    display: flex !important;
    /* Use !important to override conflicting styles */
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
    /* Increased gap for better spacing */
}

#comment-form .comment-form-actions button,
.comment-form-actions .share-button {
    display: inline-block;
    width: auto;
    margin-left: 0;
}

/* Hide default file input */
.comment-form-actions input[type="file"] {
    display: none;
}