/* =========================
   Página de Novidades
   Design baseado em servidores.css
   ========================= */

/* Override do #container do common.css (margin fixo 100px nas laterais) */
#container {
    margin: 1.25rem 0.5rem 2rem 0.5rem;
    max-width: 100%;
    box-sizing: border-box;
}

#news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    padding: 10px 0.5rem;
    margin: 0 auto;
    box-sizing: border-box;
}

.news-div {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: white;
    background-color: #0b0f15;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    flex: 1 1 280px;
    max-width: 380px;
}

/* Banner */
.news-div-banner {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.news-div-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Fallback quando não há imagem de banner */
.news-div-banner-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: rgba(255, 255, 255, 0.85);
    background-color: rgba(255, 255, 255, 0.03);
    transition: transform 0.4s ease;
}

.news-div:hover .news-div-banner-fallback {
    transform: scale(1.08);
}

/* Conteúdo */
.news-div-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    box-sizing: border-box;
}

.news-div-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.news-div-desc {
    margin: 0;
    color: #c5c5c5;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

/* Tag de categoria */
.news-div-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 6px;
    background-color: transparent;
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.news-div-tag[data-category="NerdSky"] {
    background-color: #B971DA;
}

.news-div-tag[data-category="Potato Nerd"] {
    background-color: #7DB9DF;
}

.news-div-tag[data-category="NerdDead"] {
    background-color: #E85D5D;
}

/* Footer com autor + data */
.news-div-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.author {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: #c5c5c5;
    font-size: 13px;
    margin: 0;
}

.author-head {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
}

.date {
    color: #c5c5c5;
    font-size: 13px;
    margin: 0;
}

/* Link "Ler mais" */
.news-div-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s ease;
}

.news-div:hover .news-div-link {
    gap: 14px;
}

/* Paleta por categoria */
.news-div[data-category="NerdSky"] {
    border-color: #B971DA;
    box-shadow: 0 0 15px rgba(185, 113, 218, 0.15);
}
.news-div[data-category="NerdSky"]:hover {
    box-shadow: 0 12px 30px rgba(185, 113, 218, 0.45);
    border-color: #D89BF0;
}
.news-div[data-category="NerdSky"] .news-div-link {
    color: #B971DA;
}

.news-div[data-category="Potato Nerd"] {
    border-color: #7DB9DF;
    box-shadow: 0 0 15px rgba(125, 185, 223, 0.15);
}
.news-div[data-category="Potato Nerd"]:hover {
    box-shadow: 0 12px 30px rgba(125, 185, 223, 0.45);
    border-color: #A6D4F0;
}
.news-div[data-category="Potato Nerd"] .news-div-link {
    color: #7DB9DF;
}

.news-div[data-category="NerdDead"] {
    border-color: #E85D5D;
    box-shadow: 0 0 15px rgba(232, 93, 93, 0.15);
}
.news-div[data-category="NerdDead"]:hover {
    box-shadow: 0 12px 30px rgba(232, 93, 93, 0.45);
    border-color: #F08080;
}
.news-div[data-category="NerdDead"] .news-div-link {
    color: #E85D5D;
}

/* Responsivo */
@media (max-width: 700px) {
    .news-div {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    #container {
        margin: 2.5rem auto 3rem auto;
        max-width: 1280px;
    }
}
.ver-mais-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1.5rem;
}

.ver-mais-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--border-color-1);
    border: 1.5px solid var(--border-color-1);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    transition: background-color 0.2s ease, color 0.2s ease, gap 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.ver-mais-btn:hover {
    background-color: var(--border-color-1);
    color: #030407;
    gap: 0.9rem;
    transform: translateY(-2px);
}

.ver-mais-btn i {
    transition: transform 0.2s ease;
}

.ver-mais-btn:hover i {
    transform: translateX(3px);
}
