/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.banner-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.header-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.header-text {
    flex: 1;
}

.header-text h1 {
    margin: 0 0 10px 0;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-text p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .header-text h1 {
        font-size: 1.8rem;
    }
}

/* Secciones principales */
.main-content {
    display: grid;
    gap: 30px;
}

/* Área de subida */
.upload-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.upload-area {
    border: 3px dashed #ff6b35;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d6 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
}

.upload-area:hover {
    border-color: #e55a2b;
    background: linear-gradient(135deg, #ffe8d6 0%, #ffd4b3 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.upload-area.dragover {
    border-color: #27ae60;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    transform: scale(1.02);
}

.upload-content i {
    font-size: 3rem;
    color: #ff6b35;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.upload-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.upload-content p {
    color: #666;
    font-size: 1.1rem;
}

/* Barra de progreso */
.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    width: 0%;
    transition: width 0.3s ease;
}

/* Sección de metadatos */
.metadata-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.metadata-section h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Botones */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #e55a2b, #e0841a);
}

.btn-secondary {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 44, 44, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.btn-outline:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Menú de navegación */
.navigation-menu {
    background: linear-gradient(135deg, #f4f4f4, #e8e8e8);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(135deg, #fff, #f8f8f8);
    border: 2px solid #ddd;
    color: #666;
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    border-color: #bbb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-btn.active {
    background: linear-gradient(135deg, #ff8c42, #ff7829);
    color: white;
    border-color: #ff6b1a;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.nav-btn.active:hover {
    background: linear-gradient(135deg, #ff7829, #ff6b1a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.nav-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.episode-count {
    background: linear-gradient(135deg, #333, #555);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive para el menú */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-filters {
        justify-content: center;
    }
    
    .nav-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .nav-stats {
        justify-content: center;
    }
}

/* Sección de episodios */
.episodes-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.episodes-section h3 {
    color: #333;
    margin-bottom: 30px;
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    color: #333;
    font-size: 1.8rem;
}

.episodes-list {
    display: grid;
    gap: 15px;
}

.episode-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #ff6b35;
    transition: all 0.3s ease;
}

.episode-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.episode-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.episode-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.episode-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.episode-description {
    color: #555;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .episode-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.episode-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.tracklist {
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.tracklist h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1rem;
}

.tracklist ul {
    list-style: none;
    padding-left: 0;
}

.tracklist li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.tracklist li:last-child {
    border-bottom: none;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ff6b35;
}

/* Estilos para el panel de administración */
.admin-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.admin-notice i {
    color: #856404;
    margin-right: 10px;
}

.admin-notice ol {
    margin: 10px 0 0 20px;
}

.admin-notice code {
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Información del podcast */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.info-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-card h4 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: #555;
    display: inline-block;
    min-width: 120px;
}

.description-card {
    grid-column: 1 / -1;
}

.description-card p {
    line-height: 1.6;
    color: #666;
}

/* Estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.latest-episode {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0 5px 0;
    line-height: 1.3;
}

.stat-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Episodios en admin */
.admin-episode {
    position: relative;
}

.no-tracklist {
    color: #999;
    font-style: italic;
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.no-tracklist i {
    margin-right: 8px;
    color: #ffc107;
}

/* Responsive */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    margin-bottom: 25px;
    color: #666;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Notificaciones */
.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.notification {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-left: 4px solid #28a745;
    animation: slideIn 0.3s ease;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .episode-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .episode-actions {
        margin-top: 10px;
    }
}
