/* =================================
   Horario NamKun Styles v4.2
   ================================= */

/* Schedule Container */
.hnk-schedule-wrapper {
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hnk-schedule-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Schedule Table */
.hnk-schedule-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    min-width: 800px;
}

.hnk-schedule-table th,
.hnk-schedule-table td {
    border: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
}

/* Header Styles */
.hnk-schedule-table thead th {
    background-color: #424242;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 10px;
    height: 50px;
}

.hnk-time-header {
    width: 120px;
    min-width: 120px;
}

.hnk-day-header {
    width: auto;
}

.hnk-day-short {
    display: none;
}

/* Time Column */
.hnk-time-cell {
    background-color: #4a4a4a;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 8px;
    width: 120px;
    min-width: 120px;
    line-height: 1.3;
}

/* Class Cells */
.hnk-class-cell {
    padding: 12px;
    transition: all 0.2s ease;
    text-align: center;
    vertical-align: middle;
}

.hnk-class-cell:hover {
    opacity: 0.9;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Class Content Wrapper - Centrado */
.hnk-class-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Empty Cells */
.hnk-empty-cell {
    background-color: #1a1a1a;
}

/* Class Title */
.hnk-class-title {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    line-height: 1.3;
    text-align: center;
}

/* Category Name */
.hnk-category-name {
    font-size: 13px;
    font-weight: 400;
    color: #666666;
    line-height: 1.2;
    text-align: center;
}

/* Instructor Name */
.hnk-instructor-name {
    font-size: 12px;
    font-weight: 400;
    color: #999999;
    line-height: 1.2;
    text-align: center;
}

/* =================================
   RESPONSIVE STYLES
   ================================= */

/* Tablets */
@media screen and (max-width: 1024px) {
    .hnk-schedule-table {
        min-width: 700px;
    }
    
    .hnk-class-title {
        font-size: 14px;
    }
    
    .hnk-category-name {
        font-size: 12px;
    }
    
    .hnk-instructor-name {
        font-size: 11px;
    }
    
    .hnk-time-cell {
        font-size: 12px;
    }
}

/* Mobile Phones */
@media screen and (max-width: 768px) {
    .hnk-schedule-wrapper {
        margin: 10px 0;
    }
    
    .hnk-schedule-table {
        min-width: 600px;
    }
    
    .hnk-schedule-table thead th {
        font-size: 12px;
        padding: 12px 8px;
        height: 45px;
    }
    
    .hnk-day-full {
        display: none;
    }
    
    .hnk-day-short {
        display: block;
    }
    
    .hnk-time-cell {
        font-size: 11px;
        padding: 10px 6px;
        width: 100px;
        min-width: 100px;
    }
    
    .hnk-time-header {
        width: 100px;
        min-width: 100px;
    }
    
    .hnk-class-cell {
        padding: 8px;
    }
    
    .hnk-class-title {
        font-size: 13px;
    }
    
    .hnk-category-name {
        font-size: 11px;
    }
    
    .hnk-instructor-name {
        font-size: 10px;
    }
    
    .hnk-class-content {
        gap: 3px;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .hnk-schedule-table {
        min-width: 500px;
    }
    
    .hnk-schedule-table thead th {
        font-size: 11px;
        padding: 10px 5px;
        height: 40px;
    }
    
    .hnk-time-cell {
        font-size: 10px;
        padding: 8px 4px;
        width: 90px;
        min-width: 90px;
    }
    
    .hnk-time-header {
        width: 90px;
        min-width: 90px;
        font-size: 10px;
    }
    
    .hnk-class-cell {
        padding: 6px;
    }
    
    .hnk-class-title {
        font-size: 12px;
    }
    
    .hnk-category-name {
        font-size: 10px;
    }
    
    .hnk-instructor-name {
        font-size: 9px;
    }
    
    .hnk-class-content {
        gap: 2px;
    }
}

/* Print Styles */
@media print {
    .hnk-schedule-container {
        overflow: visible;
    }
    
    .hnk-schedule-table {
        min-width: auto;
    }
    
    .hnk-class-cell:hover {
        box-shadow: none;
        opacity: 1;
    }
}

/* Accessibility */
.hnk-class-cell:focus {
    outline: 2px solid #2196F3;
    outline-offset: -2px;
}

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

/* Empty State */
.hnk-schedule-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* Smooth Transitions */
.hnk-schedule-table td {
    transition: all 0.2s ease;
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .hnk-schedule-table {
        background-color: #1e1e1e;
    }
    
    .hnk-class-title {
        color: #e0e0e0;
    }
    
    .hnk-category-name {
        color: #b0b0b0;
    }
    
    .hnk-instructor-name {
        color: #909090;
    }
    
    .hnk-schedule-table th,
    .hnk-schedule-table td {
        border-color: #404040;
    }
}
