/* MIT Professional Education Style */
:root {
    --mit-red: #A31F34;
    --mit-gray: #8A8B8C;
    --mit-dark-gray: #2F2F2F;
    --mit-light-gray: #F5F5F5;
    --mit-white: #FFFFFF;
    --mit-black: #000000;
    --header-height: 50px;
    --footer-height: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--mit-white);
    color: var(--mit-dark-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Header Styles */
header, .main-header {
    background: var(--mit-white);
    border-bottom: 2px solid var(--mit-red);
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 14px !important;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px !important;
}

.mit-title {
    font-weight: 700;
    color: var(--mit-red);
    text-transform: uppercase;
    font-size: 14px !important;
}

.facilitator {
    color: var(--mit-gray);
    font-size: 14px !important;
}

.facilitator a {
    color: var(--mit-dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 5px;
}

.facilitator a:hover {
    color: var(--mit-red);
    text-decoration: underline;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px !important;
}

.office-hours-indicator {
    font-size: 14px !important;
    color: var(--mit-dark-gray);
    font-weight: 600;
}

.oh-badge-header {
    background: #A31F34;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem !important;
    letter-spacing: 1px;
    margin-right: 12px;
}

.office-indicator {
    font-size: 14px !important;
    color: var(--mit-dark-gray);
    font-weight: 600;
}

.header-nav {
    display: flex;
    gap: 15px;
}

.header-nav a {
    color: var(--mit-red);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid var(--mit-red);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header-nav a:hover {
    background: var(--mit-red);
    color: var(--mit-white);
}

/* Main Content - Optimizado para máximo aprovechamiento de pantalla */
main {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--mit-light-gray) 0%, var(--mit-white) 100%);
    height: calc(100vh - var(--header-height) - var(--footer-height));
    overflow: hidden;
}

/* Welcome Page Specific */
.welcome-container {
    text-align: center;
    max-width: 1200px;
    width: 100%;
    animation: fadeIn 0.8s ease-in;
}

.course-title {
    font-size: 42px;
    font-weight: 300;
    color: var(--mit-red);
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -1px;
}

.welcome-message {
    margin-bottom: 30px;
}

.welcome-message p {
    font-size: 20px;
    color: var(--mit-dark-gray);
    margin-bottom: 10px;
}

.welcome-message .subtitle {
    font-size: 18px;
    color: var(--mit-gray);
}

/* Office Hours Grid */
.office-hours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.office-hour-card {
    background: var(--mit-white);
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 20px 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}


.office-hour-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--mit-red);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.office-hour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(163, 31, 52, 0.2);
}

.office-hour-card:hover::before {
    transform: translateX(0);
}

.card-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--mit-black);
    margin-bottom: 8px;
}

.card-title {
    font-size: 14px;
    color: var(--mit-red);
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

/* Footer */
.main-footer {
    background: var(--mit-dark-gray);
    color: var(--mit-white);
    height: var(--footer-height);
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.footer-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-name {
    font-size: 14px;
    opacity: 0.9;
}

.navigation-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-hint {
    font-size: 12px;
    opacity: 0.7;
}

.nav-icons {
    display: flex;
    gap: 5px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--mit-white);
    font-size: 12px;
}

.nav-icon:hover {
    background: var(--mit-red);
    border-color: var(--mit-red);
}

.nav-icon.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-icon.disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Content Pages */
.content-container {
    max-width: 1200px;
    width: 100%;
    background: var(--mit-white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.content-header {
    border-bottom: 2px solid var(--mit-red);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.content-header h1 {
    font-size: 36px;
    color: var(--mit-red);
    font-weight: 300;
}

.section {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease forwards;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 24px;
    color: var(--mit-dark-gray);
    margin-bottom: 15px;
    font-weight: 500;
}

.section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--mit-dark-gray);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .office-hours-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .course-title {
        font-size: 32px;
    }

    .office-hours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .main-header {
        padding: 0 20px;
    }

    .header-left {
        font-size: 14px;
    }

    .mit-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .office-hours-grid {
        grid-template-columns: 1fr;
    }

    .course-title {
        font-size: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/* Page Number Styling */
.page-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.footer-navigation {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Portada Minimalista Styles */
.welcome-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.course-title-main {
    font-size: 3rem;
    font-weight: 300;
    color: #222;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.mit-subtitle {
    font-size: 1.2rem;
    color: #A31F34;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.welcome-divider {
    width: 100px;
    height: 3px;
    background-color: #A31F34;
    margin: 2rem auto;
}

.welcome-page .welcome-message {
    font-size: 1.3rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-weight: 300;
}

.start-button {
    background-color: #A31F34;
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.start-button:hover {
    background-color: #8B1A2B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 31, 52, 0.3);
}

/* ===== ESTILOS OPTIMIZADOS PARA MÁXIMO APROVECHAMIENTO DE PANTALLA ===== */

/* Principios de diseño para Office Hours */
.optimized-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 0;
}

/* Contenedor principal sin restricciones */
.fullscreen-content {
    width: 100%;
    height: 100%;
    background: transparent;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Títulos grandes y legibles */
.main-title-large {
    font-size: 4rem;
    color: #A31F34;
    font-weight: 300;
    letter-spacing: -0.03em;
}

/* Subtítulos prominentes */
.subtitle-large {
    font-size: 2rem;
    color: #2d3748;
    font-weight: 400;
}

/* Texto de contenido optimizado */
.content-text-large {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #4a5568;
}

/* Listas con mejor legibilidad */
.list-large {
    font-size: 1.4rem;
    line-height: 1.6;
    padding: 0.8rem 0;
}

/* Tarjetas expandidas */
.card-expanded {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

/* Grid optimizado para pantalla completa */
.grid-fullscreen {
    display: grid;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    gap: 3rem;
    padding: 0 3rem;
}

/* Elementos destacados */
.highlight-box {
    padding: 2rem 3rem;
    background: linear-gradient(135deg, #A31F34 0%, #8B1A2D 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(163, 31, 52, 0.3);
}

/* Badges y números grandes */
.number-badge-large {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #A31F34 0%, #8B1A2D 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(163, 31, 52, 0.3);
}

/* Media queries actualizadas para mantener proporción */
@media (max-height: 768px) {
    .main-title-large { font-size: 3rem; }
    .subtitle-large { font-size: 1.5rem; }
    .content-text-large { font-size: 1.3rem; }
    .list-large { font-size: 1.2rem; }
}

@media (max-height: 650px) {
    .main-title-large { font-size: 2.5rem; }
    .subtitle-large { font-size: 1.3rem; }
    .content-text-large { font-size: 1.1rem; }
    .list-large { font-size: 1rem; }
}

/* ===== DRAG-DROP FUNCTIONALITY STYLES ===== */

/* Toggle button styling */
.drag-toggle {
    position: relative;
}

.drag-toggle.active {
    background: var(--mit-red);
    border-color: var(--mit-red);
}

/* Drag mode active styles */
body.drag-mode-active {
    user-select: none;
}

/* Draggable elements when mode is active */
.draggable-active {
    border: 1px dashed var(--mit-red);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.draggable-active:hover {
    box-shadow: 0 0 0 3px rgba(163, 31, 52, 0.2);
    background-color: rgba(163, 31, 52, 0.05);
}

/* Visual feedback during drag */
.dragging {
    opacity: 0.9;
    box-shadow: 0 8px 16px rgba(163, 31, 52, 0.3);
}
