/* ===================================
   Arkadia — News page
   Depende de variables.css + style.css
   =================================== */

.news-section {
    padding: 56px 0 64px;
    background: var(--fondo-claro);
    color: var(--texto-principal);
}

.news-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    position: relative;
}

/* =============================
   Sidebar — filtros (STICKY)
   ============================= */
.news-filters {
    align-self: start;
    position: sticky;
    top: calc(var(--header-height, 150px) + 16px);
    padding: 10px 6px;
    background: var(--fondo-claro);
    z-index: 1;
    height: max-content;
}

.news-filters h3,
.filters-title {
    font-family: var(--fuente-titulos);
    font-size: 1rem;
    margin: 0 0 8px;
    color: var(--texto-principal);
}

/* etiqueta “Categories” con rombo y caret */
.news-filters label:has(#filter-game) {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 16px;
    margin: 2px 0 18px;
    font-family: var(--fuente-ui);
    font-size: .92rem;
    color: var(--texto-principal);
}

.news-filters label:has(#filter-game)::before {
    content: "";
    position: absolute;
    left: 0;
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    background: color-mix(in srgb, var(--linea-dorada) 85%, transparent);
    border: 1px solid var(--linea-dorada);
    border-radius: 2px;
    top: 50%;
    translate: 0 -50%;
}

#filter-game {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--linea-dorada);
    padding: .25rem 26px .34rem 0;
    font-family: var(--fuente-titulos);
    font-size: 1rem;
    color: var(--texto-principal);
    line-height: 1.15;
    outline: none;
    min-width: 160px;
    cursor: pointer;
}

.news-filters label:has(#filter-game)::after {
    content: "";
    position: absolute;
    right: 6px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--texto-principal);
    border-bottom: 2px solid var(--texto-principal);
    transform: rotate(45deg);
    pointer-events: none;
    transition: border-color .2s ease;
}

#filter-game:hover,
#filter-game:focus {
    border-bottom-color: var(--linea-dorada);
}

.filter-group {
    display: grid;
    gap: 6px;
    margin: 12px 0;
}

.filter-group label {
    font-family: var(--fuente-ui);
    font-size: .92rem;
    color: color-mix(in srgb, var(--texto-principal) 80%, black 0%);
}

.news-filters input[type="text"],
.news-filters input[type="date"],
.news-filters select:not(#filter-game) {
    width: 100%;
    padding: .7rem .8rem;
    border-radius: var(--radius);
    border: var(--rule) solid #cfcabf;
    background: #fff;
    color: var(--texto-principal);
    font-family: var(--fuente-ui);
    font-size: .95rem;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.news-filters input:focus,
.news-filters select:not(#filter-game):focus {
    border-color: var(--linea-dorada);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--linea-dorada) 30%, transparent);
}

/* =============================
   Lista de noticias + línea dorada
   ============================= */
.news-list {
    display: grid;
    gap: 18px 0;
    position: relative;
    padding-left: 28px;
}

.news-list::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--rule);
    background: var(--linea-dorada);
    opacity: .8;
}

.news-list>.section-title {
    margin: 0 0 10px;
    position: relative;
}

.news-list>.section-title .title-line {
    display: block;
    margin-left: -28px;
}

.news-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 22px;
    align-items: start;
    padding: 18px 0 24px;
    border-bottom: var(--rule) solid rgba(0, 0, 0, .08);
}

.news-item:last-child {
    border-bottom: 0;
}

.news-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #0f0e0c;
    border-radius: 12px;
    outline: var(--rule) solid rgba(255, 255, 255, .06);
    box-shadow: var(--shadow-1, 0 10px 28px rgba(0, 0, 0, .18));
    clip-path: polygon(0 0,
            calc(100% - 16px) 0,
            100% 16px,
            100% 100%,
            16px 100%,
            0 calc(100% - 16px));
    position: relative;
}

.news-content {
    display: grid;
    gap: 8px;
}

.news-category {
    display: inline-block;
    font-family: var(--fuente-ui);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .02em;
    color: var(--texto-oscuro, #2b261f);
    background: var(--linea-dorada);
    padding: .35rem .6rem;
    border-radius: 4px;
    width: max-content;
    max-width: 100%;
}

.news-date {
    font-size: .85rem;
    opacity: .7;
    margin-top: -2px;
}

.news-title {
    font-family: var(--fuente-titulos);
    font-size: clamp(1.05rem, 1.2vw + .8rem, 1.35rem);
    line-height: 1.25;
    color: var(--texto-principal);
    margin: 2px 0 6px;
    position: relative;
}

.news-title::after {
    content: "";
    display: block;
    height: var(--rule);
    background: var(--linea-dorada);
    margin-top: 6px;
    width: 72%;
    max-width: 420px;
}

.news-content p {
    margin: 0 0 8px;
}

/* =============================
   Botón Read More
   ============================= */
.read-more {
    display: inline-block;
    margin-top: 2px;
    color: var(--texto-principal);
    font-family: var(--fuente-ui);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: color .2s ease;
}

.read-more::after {
    content: "";
    display: block;
    height: var(--rule);
    background: var(--texto-principal);
    width: 0;
    transition: width .18s ease, background .2s ease;
    margin-top: 2px;
}

.read-more:hover {
    color: var(--texto-dorado);
}

.read-more:hover::after {
    width: 15%;
    background: var(--texto-dorado);
}

.news-item:hover .news-title::after {
    width: 78%;
    transition: width .18s ease;
}

.news-item:hover img {
    filter: saturate(1.03) contrast(1.02);
}

.news-item img[alt=""],
.news-item img:not([src]) {
    background: #161513;
}

/* =============================
   Dropdown (categorías/juegos)
   ============================= */
.dropdown {
    position: relative;
    display: block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .6rem .8rem;
    font-family: var(--fuente-ui);
    font-size: .95rem;
    color: var(--texto-principal);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--linea-dorada);
    cursor: pointer;
    transition: color .2s ease;
}

.dropdown-toggle i {
    font-size: .8rem;
    margin-left: 6px;
    transition: transform .2s ease, color .2s ease;
    color: var(--texto-principal);
}

.dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-toggle:hover,
.dropdown-toggle:hover i {
    color: var(--texto-dorado);
}

.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--linea-dorada);
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    z-index: 10;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    display: none;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: .6rem .9rem;
    cursor: pointer;
    font-family: var(--fuente-ui);
    font-size: .92rem;
    color: #fff;
    transition: background .2s ease;
}

.dropdown-menu li:hover {
    background: color-mix(in srgb, var(--linea-dorada) 85%, black 20%);
}

.game-search {
    margin-top: 8px;
}

.game-search input {
    width: 100%;
    padding: .5rem .7rem;
    border: 1px solid var(--linea-dorada);
    border-radius: 4px;
    font-family: var(--fuente-ui);
    font-size: .9rem;
}