/**
 * Estilos Específicos para el Repositorio À l'école
 * Extiende style.css y añade temas de neón y HUD
 */

/* Contenedores de Formulario */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 3rem;
    background: rgba(15, 20, 30, 0.5);
    border: 1px solid rgba(0, 102, 178, 0.2);
    border-radius: 1.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.form-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--tech-gray);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 18, 38, 0.8);
    border: 1px solid rgba(0, 102, 178, 0.3);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color-scheme: dark;
}

.form-control:focus {
    border-color: var(--glow-blue);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

textarea.form-control {
    resize: vertical;
}

input[type="date"].form-control {
    color-scheme: dark !important;
    color: #ffffff !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(10) !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

/* Alertas de Sistema */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}

.alert-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #e74c3c;
}

.alert-info {
    background: rgba(0, 102, 178, 0.15);
    border: 1px solid rgba(0, 102, 178, 0.4);
    color: var(--glow-blue);
}

/* Botones de Envío */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 102, 178, 0.2);
    border: 1px solid var(--ucr-blue);
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-submit:hover {
    background: var(--ucr-blue);
    box-shadow: 0 0 15px var(--ucr-blue);
}

/* Rejilla de Administración */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .admin-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.admin-card {
    background: rgba(15, 20, 30, 0.4);
    border: 1px solid rgba(0, 102, 178, 0.15);
    border-radius: 1.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    margin-bottom: 2rem;
}

.admin-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 102, 178, 0.2);
    padding-bottom: 0.75rem;
}

/* Buscador y Filtros */
.search-block {
    background: rgba(15, 20, 30, 0.4);
    border: 1px solid rgba(0, 102, 178, 0.15);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(12px);
}

.search-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input-group {
    flex: 1;
    position: relative;
}

.search-btn {
    padding: 1rem 2rem;
    background: rgba(0, 102, 178, 0.2);
    border: 1px solid var(--ucr-blue);
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.search-btn:hover {
    background: var(--ucr-blue);
    box-shadow: 0 0 15px var(--ucr-blue);
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--interface-gray);
}

.filter-select {
    padding: 0.5rem 1rem;
    background: rgba(0, 18, 38, 0.8);
    border: 1px solid rgba(0, 102, 178, 0.2);
    color: var(--text-main);
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Grid de Materiales */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.material-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding: 2rem;
    text-align: left;
    min-height: 250px;
    background: rgba(15, 20, 30, 0.4);
    border: 1px solid rgba(0, 102, 178, 0.15);
    border-radius: 1.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
    text-decoration: none;
    color: var(--text-main);
}

.material-card:hover {
    transform: translateY(-5px);
    border-color: var(--glow-blue);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.15);
}

/* Bordes y efectos para tarjetas según estado */
.material-card.status-sin_iniciar {
    border-color: rgba(231, 76, 60, 0.25);
}
.material-card.status-sin_iniciar:hover {
    border-color: #e74c3c;
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.25);
}

.material-card.status-pendiente_cambios {
    border-color: rgba(241, 196, 15, 0.25);
}
.material-card.status-pendiente_cambios:hover {
    border-color: #f1c40f;
    box-shadow: 0 10px 25px rgba(241, 196, 15, 0.2);
}

.material-card.status-pendiente_aprobacion {
    border-color: rgba(0, 212, 255, 0.2);
}
.material-card.status-pendiente_aprobacion:hover {
    border-color: var(--glow-blue);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.material-card.status-terminado {
    border-color: rgba(46, 204, 113, 0.25);
}
.material-card.status-terminado:hover {
    border-color: #2ecc71;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.2);
}

.material-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--interface-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.material-type {
    color: var(--glow-blue);
    font-weight: bold;
}

.material-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.material-card p {
    font-size: 0.85rem;
    color: var(--tech-gray);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Estados de los Audios (Neon badges) */
.badge-status {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Space Grotesk', monospace;
    display: inline-block;
    letter-spacing: 1px;
}

.badge-status.terminado {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

.badge-status.pendiente_aprobacion {
    background: rgba(0, 102, 178, 0.15);
    border: 1px solid var(--glow-blue);
    color: var(--glow-blue);
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.badge-status.pendiente_cambios {
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid #f1c40f;
    color: #f1c40f;
    text-shadow: 0 0 5px rgba(241, 196, 15, 0.3);
}

.badge-status.sin_iniciar {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    text-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

/* Leyenda de Estados */
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--tech-gray);
}

.legend-color {
    width: 25px;
    height: 12px;
    border-radius: 3px;
}

/* Área de Carga Drag & Drop */
.upload-drag-zone {
    border: 2px dashed rgba(0, 102, 178, 0.3);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    background: rgba(0, 18, 38, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-drag-zone:hover, .upload-drag-zone.dragover {
    border-color: var(--glow-blue);
    background: rgba(0, 102, 178, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--ucr-blue);
}

.upload-text h4 {
    margin-bottom: 0.3rem;
    color: var(--text-main);
    font-size: 1.1rem;
}

.upload-text p {
    font-size: 0.75rem;
    color: var(--interface-gray);
}

/* Paginador */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(15, 20, 30, 0.6);
    border: 1px solid rgba(0, 102, 178, 0.2);
    color: var(--tech-gray);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: 0.3s;
    text-transform: uppercase;
}

.pagination-btn:hover {
    border-color: var(--glow-blue);
    color: var(--glow-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.pagination-btn.active {
    background: rgba(0, 102, 178, 0.2);
    border-color: var(--glow-blue);
    color: var(--glow-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    font-weight: bold;
}

.pagination-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Reproductores e Inputs */
.audio-wrapper {
    background: rgba(0, 18, 38, 0.9);
    border: 1px solid rgba(0, 102, 178, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.audio-player-element {
    width: 100%;
    margin-top: 1rem;
}

/* Compensación de Header Estático */
section {
    padding-top: 19.5rem !important;
}

@media (max-width: 768px) {
    section {
        padding-top: 14rem !important;
    }
}
