/* apuntes_detalle.css */
:root {
    --color-negro: #121212;
    --color-naranja: #FF5722;
    --color-gris-claro: #f5f5f5;
    --color-blanco: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--color-negro);
    color: var(--color-blanco);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    margin-bottom: 2rem;
    color: #aaa;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--color-naranja);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

.subject-header {
    background-color: #1E1E1E;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
}

.subject-header-content {
    padding: 2rem;
}

.subject-title-section {
    margin-bottom: 1.5rem;
}

.subject-title {
    font-size: 2rem;
    color: var(--color-naranja);
    margin-bottom: 0.5rem;
}

.subject-subtitle {
    font-size: 1.1rem;
    color: #aaa;
}

.subject-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.subject-description {
    color: #ddd;
}

.filters-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-dropdown {
    background-color: #2A2A2A;
    border: none;
    color: var(--color-blanco);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.search-box {
    display: flex;
    background-color: #2A2A2A;
    border-radius: 4px;
    overflow: hidden;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    background-color: transparent;
    color: var(--color-blanco);
    font-size: 0.9rem;
    outline: none;
}

.search-button {
    background-color: var(--color-naranja);
    color: var(--color-blanco);
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #e64a19;
}

.apuntes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.apunte-card {
    background-color: #1E1E1E;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #333;
}

.apunte-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.apunte-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apunte-tipo {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.apunte-tipo.resumen {
    background-color: rgba(33, 150, 243, 0.2);
    color: #42a5f5;
}

.apunte-tipo.completo {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.apunte-tipo.ejercicios {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffb74d;
}

.apunte-tipo.examenes {
    background-color: rgba(156, 39, 176, 0.2);
    color: #ba68c8;
}

.apunte-fecha {
    color: #aaa;
    font-size: 0.8rem;
}

.apunte-content {
    padding: 1.5rem;
}

.apunte-titulo {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--color-naranja);
}

.apunte-descripcion {
    color: #ddd;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.apunte-temas {
    margin-bottom: 1rem;
}

.temas-label {
    font-size: 0.8rem;
    color: #aaa;
    margin-right: 0.5rem;
}

.tema-tag {
    display: inline-block;
    background-color: rgba(255, 87, 34, 0.2);
    color: var(--color-naranja);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
}

.apunte-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.apunte-autor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ddd;
    font-size: 0.9rem;
}

.autor-icon {
    color: var(--color-naranja);
}

.apunte-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #aaa;
}

.stat-icon {
    color: var(--color-naranja);
}

.apunte-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: center;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    justify-content: center;
    min-width: 140px;
}

.btn-primary {
    background-color: var(--color-naranja);
    color: var(--color-blanco);
}

.btn-primary:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #333;
    color: var(--color-blanco);
}

.btn-secondary:hover {
    background-color: #444;
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #1E1E1E;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state h3 {
    color: var(--color-naranja);
    margin-bottom: 1rem;
}

.empty-state p {
    color: #aaa;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contribute-section {
    margin: 3rem 0;
}

.contribute-card {
    background-color: #1E1E1E;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    border: 2px dashed #333;
    transition: border-color 0.3s;
}

.contribute-card:hover {
    border-color: var(--color-naranja);
}

.contribute-icon {
    font-size: 3rem;
    color: var(--color-naranja);
    margin-bottom: 1rem;
}

.contribute-content h3 {
    color: var(--color-naranja);
    margin-bottom: 1rem;
}

.contribute-content p {
    color: #ddd;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .subject-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .apuntes-grid {
        grid-template-columns: 1fr;
    }
    
    .apunte-actions {
        flex-direction: column;
    }
}