/**
 * Site overrides — loaded after the theme stylesheet.
 * Vendor CSS stays untouched so it can be replaced without losing these fixes.
 */

/* ---------- long-form content ---------- */
.game-content,
.description-content {
    line-height: 1.7;
    font-size: 15.5px;
}

.game-content p,
.game-content li,
.description-content p,
.description-content li {
    line-height: 1.7;
}

.game-content h2,
.description-content h2 {
    margin: 30px 0 12px;
    font-size: 24px;
    line-height: 1.3;
}

.game-content h3,
.description-content h3 {
    margin: 24px 0 10px;
    font-size: 19px;
    line-height: 1.35;
}

.game-content ul,
.game-content ol,
.description-content ul,
.description-content ol {
    margin: 14px 0 18px;
    padding-left: 24px;
}

.game-content li,
.description-content li {
    margin-bottom: 8px;
}

.game-content img,
.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.game-content a,
.description-content a {
    text-decoration: underline;
}

/* controls tables and any other table inside long-form content */
.game-content table,
.description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    font-size: 15px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.game-content thead th,
.description-content thead th {
    background: #f4f6fb;
    color: #1f2937;
    font-weight: 700;
    text-align: left;
}

.game-content th,
.game-content td,
.description-content th,
.description-content td {
    padding: 11px 14px;
    border: 1px solid #e6eaf2;
    vertical-align: top;
}

.game-content tbody tr:nth-child(even) td,
.description-content tbody tr:nth-child(even) td {
    background: #fafbfe;
}

.game-content tbody tr:hover td,
.description-content tbody tr:hover td {
    background: #f4f7ff;
}

.dark-content .game-content table,
.dark-content .description-content table {
    background: #fff;
    color: #1f2937;
}

@media (max-width: 767.98px) {
    .game-content table,
    .description-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ---------- game thumbnails ---------- */
/* Keep every card image inside its box, whatever size the source file is. */
.cr-item-content img,
.cr-item img,
.sides-games img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.cr-item-content,
.sides-games .cr-item-content {
    overflow: hidden;
}

/* ---------- comments ---------- */
/* The stock block is a floating white card with its own shadows and a gradient
   button, which reads as a different product next to the game page. Flatten it
   to a section that inherits the theme. */
.comments-section {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-top: 1px solid rgba(0, 0, 0, 0.12) !important;
    margin-top: 24px !important;
    padding-top: 22px !important;
}

.comments-section .comments-title {
    margin-bottom: 14px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: inherit !important;
}

.comment-form-box {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 16px !important;
}

.comment-form-box .form-control {
    background: #fff !important;
    border: 1px solid #e3e8f0 !important;
    border-radius: 10px !important;
    padding: 9px 12px !important;
    font-size: 14px !important;
    color: #1f2937 !important;
    box-shadow: none !important;
}

.comment-form-box .form-control:focus {
    border-color: #6c5ce7 !important;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15) !important;
}

.comment-form-box textarea.form-control {
    min-height: 84px !important;
}

.comment-form-box small {
    color: #6b7280 !important;
    font-size: 12px !important;
}

#comment-submit-btn {
    background: #6c5ce7 !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 9px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

#comment-submit-btn:hover {
    background: #5b4dd1 !important;
    transform: none !important;
    box-shadow: none !important;
}

.comments-list .text-center {
    padding: 12px 0 !important;
}
