:root {
    /* Colores Netflix */
    --primary-color: #E50914;
    --secondary-color: #B81D24;
    --accent-color: #F5F5F1;
    --background-color: #141414;
    --card-color: #181818;
    --text-color: #FFFFFF;
    --light-text: #999999;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    --card-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
    
    /* Colores para tags */
    --tag-bg: #333333;
    --tag-text: #FFFFFF;
    --tag-border: #444444;
    --tag-hover-bg: #E50914;
    --tag-hover-text: #FFFFFF;
    --tag-active-bg: #E50914;
    --tag-active-text: #FFFFFF;
    --tag-active-border: #E50914;
    --tag-badge-bg: #E50914;
    --tag-badge-text: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 30px;
    text-align: justify;
}

header {
    background-color: #000000;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--primary-color);
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--primary-color);
    text-align: center;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.2rem;
    opacity: 0.9;
    text-align: center;
}

.search-container {
    margin: 1.2rem auto;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.search-container .form-control {
    background-color: rgba(60, 60, 60, 0.8) !important;
    color: white !important;
    border: 1px solid #333 !important;
    border-radius: 4px !important;
    height: 50px;
    transition: all 0.3s ease;
}

.search-container .form-control:focus {
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.5) !important;
    background-color: rgba(80, 80, 80, 0.9) !important;
    border-color: #E50914 !important;
}

.search-container .btn {
    background-color: #E50914;
    border: none;
    color: white;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    transition: all 0.3s ease;
}

.search-container .btn:hover {
    background-color: #C30710;
}

#searchInput::placeholder {
    color: #999;
}

.summary-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1.5rem;
}

.summary-card {
    background-color: var(--card-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease;
    margin-bottom: 2rem;
    border: 1px solid #333;
}

.summary-card:hover {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.8);
    border-color: #444;
}

.summary-header {
    background-color: #000;
    color: white;
    padding: 1.2rem 1.5rem;
    position: relative;
    border-bottom: 3px solid var(--primary-color);
}

.summary-id {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    opacity: 0.7;
    color: #999;
}

.summary-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: white;
    text-align: left;
}

.summary-content {
    padding: 1.8rem;
    color: #ccc;
    text-align: justify;
}

.summary-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.5px;
    font-size: 1.6rem;
    text-align: left;
}

.summary-content p, .summary-content ul {
    margin-bottom: 1.2rem;
    text-align: justify;
    line-height: 1.6;
    color: #ccc;
}

.collapse-btn {
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    position: absolute;
    right: 1.2rem;
    top: 1.2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.collapse-btn:hover {
    background-color: var(--primary-color);
}

.collapsed .summary-content {
    display: none;
}

.points {
    margin-top: 1rem;
}

.points li {
    margin-left: 1.5rem;
    margin-bottom: 0.8rem;
    text-align: justify;
    color: #ccc;
}

.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--light-text);
}

.error {
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem;
    margin: 1.2rem 0;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 400;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.6rem;
    letter-spacing: 0.5px;
    text-align: left;
}

.date-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.date-button {
    background-color: #333;
    border: none;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    margin: 0.4rem;
}

.date-button:hover, .date-button.active {
    background-color: var(--primary-color);
    color: white;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.tag-filter {
    background-color: #333;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    margin: 0.4rem;
}

.tag-filter:hover {
    background-color: var(--primary-color);
    color: white;
}

.tag-filter.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.tag-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    white-space: nowrap;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tags-section {
    margin-top: 1.5rem;
}

.empty-result {
    background-color: #333;
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
    margin: 2rem 0;
}

.term-word {
    position: relative;
    color: var(--primary-color);
    cursor: help;
    border-bottom: 1px dashed var(--primary-color);
    display: inline-block;
}

.term-explanation {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: white;
    width: 300px;
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.term-word.active .term-explanation {
    opacity: 1;
    visibility: visible;
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.pdf-download {
    display: inline-flex;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.pdf-download:hover {
    background-color: var(--primary-color);
}

.dark-mode {
    /* Ya estamos en modo oscuro por defecto, así que esto es redundante */
    background-color: var(--background-color);
    color: var(--text-color);
}

.daily-summary-container {
    margin-bottom: 2rem;
}

.daily-summary-card {
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid #333;
    margin-bottom: 2rem;
    position: relative;
}

.daily-summary-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    padding: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    text-align: left;
}

.daily-summary-content {
    padding: 1.5rem;
    color: #ccc;
    text-align: justify;
}

.daily-summary-topics-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.daily-summary-topics-list {
    list-style-type: none;
    padding: 0;
}

.daily-summary-topics-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    text-align: justify;
}

/* Estilos para el reproductor de audio */
.audio-section {
    margin: 1.5rem 0;
}

.audio-player {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #333;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.play-button:hover {
    background-color: var(--secondary-color);
}

.timeline {
    background-color: #333;
    height: 6px;
    border-radius: 3px;
    flex-grow: 1;
    position: relative;
    cursor: pointer;
}

.progress {
    background-color: var(--primary-color);
    height: 100%;
    border-radius: 3px;
    width: 0;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -4px;
    width: 14px;
    height: 14px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    display: none;
}

.timeline:hover .progress::after {
    display: block;
}

.time-info {
    color: #999;
    font-size: 0.85rem;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

/* Estilos para el reproductor en el resumen diario */
.daily-summary-audio {
    padding: 0 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.daily-summary-audio-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: left;
}

/* Mejoras para dispositivos móviles */
@media (max-width: 767px) {
    .container-fluid {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    main.container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .search-container {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .summary-header {
        padding: 0.8rem;
    }
    
    .summary-content {
        padding: 0.8rem;
    }
    
    .daily-summary-content {
        padding: 0.8rem;
    }
    
    .summary-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-top: 1.2rem;
    }
    
    .term-explanation {
        width: 90vw;
        left: 5%;
        transform: none;
        font-size: 0.8rem;
    }
    
    .date-selector,
    .tags-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .date-button,
    .tag-filter {
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0.2rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .lead {
        font-size: 1.2rem !important;
    }
    
    .summary-content p, 
    .summary-content ul,
    .daily-summary-content p,
    .daily-summary-topics-list li,
    .points li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .points li {
        margin-left: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .summary-id {
        font-size: 0.85rem;
    }
    
    .tag-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        margin-bottom: 0.3rem;
        margin-left: 0.3rem;
    }
    
    .navbar-brand {
        font-size: 2rem !important;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .daily-summary-title {
        font-size: 1.7rem;
        padding: 1rem;
    }
    
    .daily-summary-audio-title {
        font-size: 1.3rem;
    }
    
    .time-info {
        font-size: 0.75rem;
        min-width: 70px;
    }
    
    .audio-controls {
        flex-wrap: wrap;
    }
    
    .timeline {
        order: 2;
        width: 100%;
        margin-top: 10px;
    }
    
    .time-info {
        order: 1;
        margin-left: auto;
    }
    
    .play-button {
        width: 35px;
        height: 35px;
    }
    
    #emptyResult, #error, #loading p {
        font-size: 0.9rem;
    }
    
    .pdf-download {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    footer p {
        font-size: 0.8rem;
    }
    
    .summary-section {
        margin-top: 1.2rem;
    }
    
    .summary-card {
        margin-bottom: 1.5rem;
    }
} 