/* ============================================================ 
   UX ENHANCEMENTS & PREMIUM THEMES 
   ============================================================ */

/* 1. PROGRESS BAR (LECTURA) */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    pointer-events: none;
}

#reading-progress-bar {
    height: 100%;
    background: var(--primary-color, #1e3a8a);
    width: 0%;
    box-shadow: 0 0 10px rgba(30, 58, 138, 0.5);
    transition: width 0.1s ease-out;
}

/* 2. BOTONERA PREMIUM THEMES */

/* Glass Theme */
.glass-theme .panel-link-card .card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-theme .panel-link-card:hover .card {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

.glass-theme .icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Institutional Solid Theme */
.solid-theme .panel-link-card .card {
    background: white;
    border: none;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.solid-theme .panel-link-card:hover .card {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.solid-theme .panel-link-card:hover .card-title,
.solid-theme .panel-link-card:hover .card-text,
.solid-theme .panel-link-card:hover .icon-wrapper,
.solid-theme .panel-link-card:hover .arrow-hint {
    color: white !important;
}

.solid-theme .icon-wrapper {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Minimalist Theme */
.minimal-theme .panel-link-card .card {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: all 0.4s ease;
}

.minimal-theme .panel-link-card:hover .card {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.minimal-theme .icon-wrapper {
    font-size: 1.8rem;
    color: var(--text-light);
    transition: color 0.3s;
}

.minimal-theme .panel-link-card:hover .icon-wrapper {
    color: var(--primary-color);
}

/* Transiciones comunes */
.transition-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.arrow-hint {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.panel-link-card:hover .arrow-hint {
    opacity: 1;
    transform: translateX(5px);
}

/* ELIMINADOS OVERRIDES DE MODO OSCURO */

/* 3. SMART SEARCH STYLES */
.search-live-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-body, white);
    z-index: 1050;
    border-radius: 12px;
    margin-top: 5px;
    border: 1px solid var(--border-main);
}

.search-live-results .list-group-item {
    border: none;
    border-bottom: 1px solid var(--border-main);
    background: transparent;
    color: var(--text-main);
}

.search-live-results .list-group-item:last-child {
    border-bottom: none;
}

.search-live-results .list-group-item:hover {
    background: var(--bg-surface);
}
