﻿body {
    background-color: #1e1e1e;
    color: #e5e5e5;
}

/* NAVBAR */
.navbar {
    background-color: #121212;
    border-bottom: 1px solid #2b2b2b;
}

.navbar-item strong {
    color: #fff;
}

/* SEARCH BOX */
.search-box {
    margin-top: 15px;
    margin-bottom: 10px;
    padding: 0 12px;
}

    .search-box input {
        border-radius: 10px;
        padding: 12px;
        background: #2d2d2d;
        border: 1px solid #444;
        color: #e9e9e9;
    }

/* FILTER BAR */
.filter-bar {
    padding: 0 12px;
    margin-bottom: 18px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.filter-btn {
    border-radius: 30px !important;
    padding: 8px 18px !important;
    font-weight: 600;
    background: #2d2d2d !important;
    border: 1px solid #444 !important;
    color: #ddd !important;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

    .filter-btn:hover,
    .filter-btn-active {
        background: #00d1b2 !important;
        color: #fff !important;
        border-color: #00d1b2 !important;
    }

/* MAIN CONTENT */
#content-wrapper {
    padding: 0 12px 40px 12px;
}

/* News Card (handled in ainews.css) */

/* Scrollbar */
::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}


/* Tarjeta noticia */
.news-card {
    background: #252525;
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 34px; /* ✔ más separación entre tarjetas */
    border: 1px solid #333;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35); /* ✔ sombra más marcada */
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    position: relative;
}

    /* Línea superior de color del proveedor */
    .news-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px; /* ✔ más grueso para mayor separación visual */
        background: var(--provider-color, #444);
        border-radius: 16px 16px 0 0;
    }

    /* Hover estilizado */
    .news-card:hover {
        background: #2d2d2d;
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(0,0,0,0.45);
    }

/* Más espacio en título y resúmenes */
.news-title {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #ffffff;
}

.news-summary {
    color: #d0d0d0;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

/* Fecha */
.news-date {
    color: #aaa;
    font-size: 0.9rem;
}

/* Botón Leer más */
.news-readmore {
    font-weight: bold;
    color: #4fc3f7;
}

    .news-readmore:hover {
        color: #81d4fa;
    }

/* Colores proveedores */
.tag-openai {
    --provider-color: #0f9dff;
}

.tag-gemini {
    --provider-color: #673ab7;
}

.tag-claude {
    --provider-color: #ff9800;
}

.tag-llama {
    --provider-color: #4caf50;
}

.tag-githubcopilot {
    --provider-color: #00a2ff;
}

.tag-microsoftblog {
    --provider-color: #0078d4;
}

.tag-huggingface {
    --provider-color: #ffcc00;
}

.tag-deepseek {
    --provider-color: #5c8aff;
}

.tag-grok {
    --provider-color: #00e0c6;
}


/***para el resumen del dia*/

.news-accordion {
    background-color: #1a1a1a;
    color: #f2f2f2;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #333;
}

.accordion-header {
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #111;
}

    .accordion-header:hover {
        background: #161616;
    }

.accordion-icon {
    transition: transform 0.25s ease;
    font-size: 1.1rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background-color: #1a1a1a;
    padding: 0 1.2rem;
}

    /* cuando está abierta */
    .accordion-content.open {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

/* contenido interno */
#resumen {
    padding-left: 0;
}

    #resumen h3 {
        margin: 1.6rem 0 0.6rem 0;
        padding: 0;
        font-weight: 600;
        color: #fff;
    }

    #resumen ul {
        margin: 0.2rem 0 1rem 0;
        padding-left: 1.2rem;
    }

    #resumen li {
        margin: 0.3rem 0;
        padding-left: 0.2rem;
        line-height: 1.6;
    }



    /**para google translate**/
/* fondo del dropdown */
.goog-te-menu-frame {
    background-color: #111 !important;
}

/* texto */
.goog-te-menu2-item div,
.goog-te-menu2-item span {
    color: white !important;
}

/* selector original */
#google_translate_element select {
    background: #222 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    padding: 4px 6px;
    border-radius: 6px;
}
