/* ==========================================================
   Cabeçalho da Notícia (Título -> Resumo -> Meta)
   ========================================================== */

.us-single-header {
    margin-bottom: 24px;
    text-align: left;
}

.us-single-title {
    color: #fff;
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.18;
    margin: 0 0 16px;
}

.us-single-excerpt {
    color: #a8a8ae;
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.5;
    margin: 0 0 20px;
}

.us-single-excerpt p {
    margin: 0;
}

.us-single-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ==========================================================
   Imagem Principal Destacada (Largura Total da Página)
   ========================================================== */

/* ==========================================================
   Imagem Principal Destacada (Largura Total da Página)
   ========================================================== */

.us-single-featured-image {
    background: #18181b;
    border-radius: 14px;
    margin: 0 0 36px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.us-image-source {
    background: rgba(0, 0, 0, 0.72);
    border-radius: 5px;
    bottom: 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    padding: 5px 8px;
    position: absolute;
    right: 10px;
    z-index: 2;
}

.us-image-source-label {
    font-weight: 700;
}

.us-single-featured-image img {
    aspect-ratio: 16/9;
    display: block;
    height: auto;
    max-height: 640px;
    object-fit: cover;
    width: 100%;
}

.us-single-main .entry-content .wp-block-image {
    position: relative;
}
/* ==========================================================
   Layout Principal em 2 Colunas (70 / 30)
   ========================================================== */

.us-single-layout {
    align-items: start;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 7fr) minmax(270px, 3fr);
}

.us-single-main {
    min-width: 0;
}

.us-single-article {
    min-width: 0;
}

/* ==========================================================
   Sidebar e Widgets
   ========================================================== */

.us-single-sidebar {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.us-single-widget {
    background: linear-gradient(145deg, #18181b, #111113);
    border: 1px solid #28282c;
    border-radius: 15px;
    overflow: hidden;
    padding: 22px;
}

.us-single-widget h2 {
    color: #fff;
    font-size: 19px;
    margin: 0 0 18px;
}

.us-single-widget h2::after {
    background: #ff3b30;
    content: '';
    display: block;
    height: 2px;
    margin-top: 10px;
    width: 34px;
}

.us-single-widget-heading {
    align-items: start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.us-single-widget-heading h2 {
    flex: 1;
}

.us-single-period-switch {
    display: flex;
    flex-shrink: 0;
}

.us-single-period-switch button {
    background: transparent;
    border: 1px solid #39393e;
    color: #b9b9be;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 9px;
}

.us-single-period-switch button:first-child {
    border-radius: 7px 0 0 7px;
}

.us-single-period-switch button:last-child {
    border-left: 0;
    border-radius: 0 7px 7px 0;
}

.us-single-period-switch button.is-active {
    background: #ff3b30;
    border-color: #ff3b30;
    color: #fff;
}

.us-single-compact-list {
    display: grid;
    gap: 16px;
}

.us-single-compact-post {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 105px minmax(0, 1fr);
    min-width: 0;
}

.us-single-compact-post.has-rank {
    position: relative;
}

.us-single-rank {
    align-items: center;
    background: #ff3b30;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    height: 25px;
    justify-content: center;
    left: -7px;
    position: absolute;
    top: -7px;
    width: 25px;
    z-index: 3;
}

.us-single-compact-image {
    background: #242429;
    border-radius: 8px;
    display: block;
    height: 68px;
    overflow: hidden;
    position: relative;
}

.us-single-compact-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.us-single-compact-score.us-review-score-small {
    bottom: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    font-size: 11px;
    font-weight: 800;
    height: 26px;
    left: 4px;
    position: absolute;
    width: 26px;
    z-index: 2;
}

.us-single-compact-content {
    min-width: 0;
}

.us-single-compact-post h3 {
    font-size: 14px;
    line-height: 1.25;
    margin: 0 0 6px;
}

.us-single-compact-post h3 a {
    color: #fff;
    text-decoration: none;
}

.us-single-compact-post h3 a:hover {
    color: #ff3b30;
}

.us-single-compact-post time,
.us-single-empty {
    color: #a8a8ae;
    font-size: 12px;
}

.us-single-empty {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 900px) {
    .us-single-layout {
        grid-template-columns: 1fr;
    }
    .us-single-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .us-single-sidebar {
        grid-template-columns: 1fr;
    }
    .us-single-widget-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .us-single-widget-heading h2 {
        margin-bottom: 0;
    }
}

/* ==========================================================
   Leia Mais e Comentários (Alinhamento com o eixo de leitura)
   ========================================================== */

.ct-related-posts-container .ct-container-narrow,
.ct-comments-container .ct-container-narrow {
    margin-inline: auto;
    max-width: var(--theme-normal-container-max-width, 1290px);
    padding-inline: var(--theme-container-padding, 30px);
    width: var(--theme-container-width, 100%);
}

.ct-related-posts,
.ct-comments {
    margin-left: 0;
    margin-right: auto;
    max-width: 860px;
    text-align: left;
}

.ct-related-posts .ct-module-title {
    justify-content: flex-start;
    margin-left: 0;
    text-align: left;
}

.ct-related-posts-items,
.ct-related-posts [data-layout*="grid"],
.ct-related-posts .related-entry-title,
.ct-related-posts .related-entry-title a,
.ct-related-posts article,
.ct-related-posts .hentry {
    justify-items: start;
    text-align: left;
}

.ct-comments-title,
#comments-title,
.ct-comment-list,
.ct-comment-inner,
.ct-comment-content,
.ct-comment-meta,
.ct-comment-author,
.comment-respond {
    margin-left: 0;
    text-align: left;
}

#reply-title,
.comment-reply-title {
    gap: 12px;
    justify-content: flex-start;
    margin-left: 0;
    text-align: left;
}

.comment-form,
#commentform {
    justify-items: start;
    margin-left: 0;
    text-align: left;
}

.comment-form .comment-notes,
.comment-form .logged-in-as {
    margin-left: 0;
    text-align: left;
}

.comment-form [class*="comment-form-field"] {
    text-align: left;
    width: 100%;
}

.comment-form [class*="comment-form-field"] label {
    justify-content: flex-start;
    text-align: left;
}

.comment-form-cookies-consent {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    text-align: left;
}

.comment-form .form-submit {
    display: flex;
    justify-content: flex-start;
    margin-left: 0;
    text-align: left;
    width: 100%;
}

.comment-form .form-submit button,
.comment-form .form-submit input[type="submit"] {
    margin-left: 0;
}

/* ==========================================================
   Tags do Artigo
   ========================================================== */

/* Oculta a tag "Destaque" na página do post.
   A tag continua existindo para alimentar o Hero da Home,
   mas não é exibida ao leitor. */
.entry-tags-items a[href$="/tag/destaque/"] {
    display: none;
}

/* Remove o caractere "#" inserido automaticamente pelo tema
   antes de cada tag. */
.entry-tags-items a span {
    display: none;
}

/* ==========================================================
   Seção "Leia Mais" - Ícones e Marcadores
   ========================================================== */

/* Adiciona o ícone de disquete antes do título "LEIA MAIS",
   reforçando a identidade visual do Último Save. */
.ct-related-posts .ct-module-title::before {
    content: "💾 ";
}

/* Organiza o título de cada notícia relacionada utilizando Flexbox,
   permitindo posicionar um marcador personalizado antes do texto. */
.related-entry-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Cria uma bolinha vermelha antes de cada título da seção
   "Leia Mais", substituindo listas tradicionais. */
.related-entry-title::before {
    content: "";
    width: 7px;
    height: 7px;
    background: #ff3b30;
    border-radius: 50%;
    margin-top: 0.55em;
    flex-shrink: 0;
}

/* ==========================================================
   Jogos Mencionados
   ========================================================== */

.us-mentioned-games {
    margin-top: 48px;
    width: 100%;
}

.us-mentioned-games-title {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 24px;
    padding-bottom: 12px;
    position: relative;
}

.us-mentioned-games-title::after {
    background: #ff3b30;
    bottom: 0;
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    width: 34px;
}


/* ==========================================================
   Grade com múltiplos jogos
   ========================================================== */

.us-mentioned-games-grid {
    display: grid;
    gap: 24px 18px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.us-mentioned-game-card {
    min-width: 0;
}

.us-mentioned-game-card-image {
    background: #18181b;
    border-radius: 10px;
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.us-mentioned-game-card-image img {
    aspect-ratio: 2 / 3;
    display: block;
    height: auto;
    object-fit: cover;
    transition: transform 0.25s ease;
    width: 100%;
}

.us-mentioned-game-card-image:hover img {
    transform: scale(1.035);
}

.us-mentioned-game-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 10px 0 0;
}

.us-mentioned-game-card-title a {
    color: #fff;
    text-decoration: none;
}

.us-mentioned-game-card-title a:hover {
    color: #ff3b30;
}


/* ==========================================================
   Ficha — apenas um jogo relacionado
   ========================================================== */

.us-mentioned-game-single {
    align-items: stretch;
    background: linear-gradient(145deg, #18181b, #111113);
    border: 1px solid #28282c;
    border-radius: 14px;
    display: grid;
    gap: 24px;
    grid-template-columns: 200px minmax(0, 1fr);
    margin-right: auto;
    max-width: 90%;
    overflow: hidden;
}

.us-mentioned-game-cover {
    min-height: 100%;
    overflow: hidden;
    position: relative;
}

.us-mentioned-game-cover-backdrop {
    background-position: center;
    background-size: cover;
    filter: blur(18px);
    inset: -20px;
    opacity: 0.35;
    position: absolute;
    transform: scale(1.08);
}

.us-mentioned-game-cover-frame {
    display: block;
    height: 100%;
    position: relative;
    width: 100%;
    z-index: 1;
}

.us-mentioned-game-cover-frame img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.us-mentioned-game-info {
    align-self: center;
    padding: 24px 24px 24px 0;
}

.us-mentioned-game-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px;
}

.us-mentioned-game-title a {
    color: #fff;
    text-decoration: none;
}

.us-mentioned-game-title a:hover {
    color: #ff3b30;
}

.us-mentioned-game-detail {
    border-bottom: 1px solid #28282c;
    display: flex;
    gap: 12px;
    padding: 10px 0;
}

.us-mentioned-game-detail:first-of-type {
    border-top: 1px solid #28282c;
}

.us-mentioned-game-detail strong {
    color: #a8a8ae;
    flex: 0 0 100px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.us-mentioned-game-detail span {
    color: #fff;
    font-size: 14px;
}

.us-mentioned-game-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}


/* ==========================================================
   Responsividade
   ========================================================== */

@media (max-width: 1100px) {

    .us-mentioned-games-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .us-mentioned-game-single {
        grid-template-columns: 220px minmax(0, 1fr);
    }

}


@media (max-width: 900px) {

    .us-mentioned-games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .us-mentioned-game-single {
        grid-template-columns: 180px minmax(0, 1fr);
        max-width: 100%;
    }

}


@media (max-width: 650px) {

    .us-mentioned-games {
        margin-top: 40px;
    }

    .us-mentioned-games-title {
        font-size: 20px;
    }

    .us-mentioned-games-grid {
        gap: 22px 14px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .us-mentioned-game-card-title {
        font-size: 14px;
    }

    /* Ficha de jogo único: layout vertical no mobile.
       Evita que capa e informações disputem espaço
       em telas estreitas. */
    .us-mentioned-game-single {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 100%;
    }

    .us-mentioned-game-cover {
        width: 70%;
        margin: 20px auto 0;
        aspect-ratio: 2 / 3;
        min-height: 0;
    }

    .us-mentioned-game-info {
        padding: 22px 20px;
    }

    .us-mentioned-game-title {
        font-size: 21px;
        margin-bottom: 18px;
    }

}


@media (max-width: 480px) {

    .us-mentioned-games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* =========================================================
   SIDEBAR STICKY — POSTS E REVIEWS
   ========================================================= */

@media (min-width: 901px) {

    .us-single-sidebar {
        position: sticky;
        top: 120px;
        align-self: start;
    }

}
