/* =========================================================
   ARCHIVO CSS - EFECTO CRISTAL (GLASSMORPHISM)
   ========================================================= */

/* 1. Hacemos transparente el fondo principal para ver el bosque */
.archive-main {
    background: transparent !important;
    min-height: 80vh;
    display: flex;
    justify-content: center;
}

.archive-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

/* 2. CABECERA (Textos blancos con sombra) */
.archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.archive-header h1,
h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.8rem;
    color: #f1f5f9 !important;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.archive-header p,
.subtitle {
    color: #93c5fd !important;
    /* Azul clarito elegante */
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* 3. GRID/LISTA DE TARJETAS */
.archive-list,
.archive-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* 4. TARJETAS (Placas de cristal oscuro) */
.archive-btn,
.archive-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px;

    /* El truco del cristal */
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

/* Efecto al pasar el ratón */
.archive-btn:hover,
.archive-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08) !important;
    /* Brilla un poco */
    border-color: rgba(59, 130, 246, 0.5) !important;
    /* Borde azulado */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* 5. TEXTOS DENTRO DE LAS TARJETAS */
.archive-date,
.card-date {
    font-size: 1.8rem;
    font-weight: 900;
    color: #f1f5f9 !important;
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.archive-meta,
.card-title {
    font-size: 1rem;
    color: #cbd5e1 !important;
    /* Gris claro */
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 6. MENSAJES DE ESTADO (Cargando, Vacío, Error) */
.loading-msg,
.empty-msg,
.error-msg {
    text-align: center;
    padding: 40px;
    color: #f1f5f9 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.error-msg {
    border-color: rgba(239, 68, 68, 0.5) !important;
    background: rgba(239, 68, 68, 0.1) !important;
}
/* =========================================================
   SCROLLBAR MODERNO (GLASSMORPHISM)
   ========================================================= */

/* 1. Para Firefox (Usa propiedades más nuevas y simples) */
* {
    scrollbar-width: thin; /* Hace la barra más fina */
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(15, 23, 42, 0.2); /* Color del pulgar y color del fondo */
}

/* 2. Para navegadores WebKit (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar {
    width: 10px;  /* Ancho de la barra vertical */
    height: 10px; /* Alto de la barra horizontal (por si la hay en el móvil) */
}

/* El "carril" de la barra (fondo) */
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2) !important; /* Azul muy oscuro y casi transparente */
    border-radius: 10px;
}

/* El "pulgar" (la barrita que arrastras) */
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important; /* Blanco cristalino */
    border-radius: 10px; /* Bordes totalmente redondeados */
    
    /* Este borde transparente hace de "margen" para que la barra no toque los bordes de la pantalla */
    border: 2px solid transparent; 
    background-clip: padding-box;
}

/* Cuando pasas el ratón por encima del scroll */
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4) !important; /* Brilla más al tocarlo */
    border: 2px solid transparent; 
    background-clip: padding-box;
}