/**
 * Estilos Específicos para el Repositorio Éter
 * Extiende style.css
 */

/* 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;
}

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

select.form-control option {
    background-color: var(--deep-sea);
    color: var(--text-main);
}

/* 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);
}

/* Botón 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;
}

.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);
}

.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;
}

/* Tablas Administrativas */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    padding: 1rem;
    background: rgba(0, 102, 178, 0.15);
    border-bottom: 2px solid rgba(0, 102, 178, 0.3);
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 102, 178, 0.1);
    color: var(--tech-gray);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Botones de Acción */
.btn-action {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: bold;
}

.btn-approve {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.btn-approve:hover {
    background: #2ecc71;
    color: #000;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.btn-delete {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.btn-delete:hover {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

/* Área de Carga Fragmentada (Drag & Drop) */
.upload-drag-zone {
    border: 2px dashed rgba(0, 102, 178, 0.3);
    border-radius: 12px;
    padding: 3rem;
    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: 3rem;
    margin-bottom: 1rem;
    color: var(--ucr-blue);
}

.upload-text h4 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

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

/* Barras de Progreso */
.progress-container {
    display: none;
    margin-top: 1.5rem;
    background: rgba(0, 18, 38, 0.8);
    border: 1px solid rgba(0, 102, 178, 0.3);
    border-radius: 8px;
    padding: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--tech-gray);
    margin-bottom: 0.5rem;
}

.progress-bar-wrapper {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--ucr-blue), var(--glow-blue));
    border-radius: 5px;
    transition: width 0.1s ease;
}

/* 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;
}

/* Nube de Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-badge {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 102, 178, 0.15);
    border: 1px solid rgba(0, 102, 178, 0.3);
    border-radius: 20px;
    color: var(--tech-gray);
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
}

.tag-badge:hover, .tag-badge.active {
    background: var(--ucr-blue);
    color: #fff;
    border-color: var(--glow-blue);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

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

.material-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding: 2rem;
    text-align: left;
    min-height: 280px;
}

.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: var(--text-main);
}

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

/* Reproductores y Visores integrados */
.media-container {
    width: 100%;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}

.custom-audio {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    background: #001226;
    outline: none;
}

.custom-video {
    width: 100%;
    max-height: 200px;
    background: #000;
    border-radius: 8px;
    border: 1px solid rgba(0, 102, 178, 0.2);
    margin-bottom: 1rem;
}

.pdf-preview-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    background: rgba(0, 102, 178, 0.1);
    border: 1px solid rgba(0, 102, 178, 0.3);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: 0.3s;
}

.pdf-preview-btn:hover {
    background: rgba(0, 102, 178, 0.3);
    border-color: var(--glow-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

/* Modal del Visor de PDF */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 18, 38, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.pdf-modal-content {
    position: relative;
    width: 85%;
    height: 85%;
    background: var(--deep-sea);
    border: 1px solid rgba(0, 102, 178, 0.3);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdf-modal-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 102, 178, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-modal-close {
    font-size: 1.5rem;
    color: var(--tech-gray);
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.3s;
}

.pdf-modal-close:hover {
    color: #ff4a4a;
}

.pdf-iframe {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Espaciado de Secciones (Compensación de Header Estático Alto)
   ========================================================================== */
section {
    padding-top: 19.5rem;
}

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

