/**
 * Internal Schedule — UI profesional (Fase 2.2)
 */

.schedule-pro-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px 20px;
    background: var(--ui-bg, #161616);
    border: 1px solid var(--ui-border, #2e2e2e);
    border-radius: 12px;
}

.schedule-date-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.schedule-date-arrow,
.schedule-date-display {
    /* hereda de comments-date-* vía clases compartidas */
}

.schedule-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
}

.schedule-search-wrap {
    position: relative;
    flex: 1 1 200px;
    min-width: 0;
}

.schedule-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8a8a;
    pointer-events: none;
}

.schedule-search-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: var(--ui-bg, #161616);
    border: 1px solid var(--ui-border, #2e2e2e);
    border-radius: 10px;
    color: #fff;
    font-family: 'Montserrat', var(--font-body);
    font-size: 0.9rem;
}

.schedule-search-input:focus {
    outline: none;
    border-color: rgba(198, 40, 40, 0.55);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.schedule-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule-chip {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--ui-border, #2e2e2e);
    background: var(--ui-surface, #232323);
    color: #bdbdbd;
    font-family: 'Montserrat', var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}

.schedule-chip:hover {
    border-color: #444;
    color: #fff;
}

.schedule-chip.active {
    background: rgba(198, 40, 40, 0.15);
    border-color: rgba(198, 40, 40, 0.55);
    color: #fff;
}

.schedule-day-label-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 18px;
    background: rgba(198, 40, 40, 0.06);
    border: 1px solid rgba(198, 40, 40, 0.22);
    border-radius: 12px;
}

.schedule-day-label-bar label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #bdbdbd;
    width: 100%;
}

.schedule-day-label-bar input {
    flex: 1 1 200px;
    min-width: 0;
    padding: 12px 14px;
    background: var(--ui-bg, #161616);
    border: 1px solid var(--ui-border, #2e2e2e);
    border-radius: 10px;
    color: #fff;
    font-family: 'Montserrat', var(--font-body);
}

.schedule-day-feed {
    display: flex;
    flex-direction: column;
    gap: 28px;
    animation: scheduleFadeIn 0.35s ease;
}

@keyframes scheduleFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.schedule-group-section {
    animation: scheduleSlideUp 0.35s ease;
}

@keyframes scheduleSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.schedule-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.schedule-group-header span {
    flex: 1;
    height: 1px;
    background: var(--ui-border, #2e2e2e);
}

.schedule-group-header h4 {
    margin: 0;
    font-family: 'Bebas Neue', var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    color: #fff;
    white-space: nowrap;
}

.schedule-activity-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: var(--ui-surface, #232323);
    border: 1px solid var(--ui-border, #2e2e2e);
    border-left: 3px solid #c62828;
    border-radius: 12px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.schedule-activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    border-color: #3a3a3a;
}

.schedule-activity-main {
    flex: 1 1 200px;
    min-width: 0;
}

.schedule-activity-time {
    font-family: 'Bebas Neue', var(--font-heading);
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.schedule-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.schedule-activity-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid transparent;
}

.schedule-activity-badge.cat {
    background: rgba(255, 255, 255, 0.06);
    color: #ddd;
    border-color: #3a3a3a;
}

.schedule-activity-badge.grp-pitchers {
    background: rgba(33, 150, 243, 0.12);
    color: #90caf9;
    border-color: rgba(33, 150, 243, 0.3);
}

.schedule-activity-badge.grp-position {
    background: rgba(76, 175, 80, 0.12);
    color: #a5d6a7;
    border-color: rgba(76, 175, 80, 0.3);
}

.schedule-activity-badge.grp-ambos {
    background: rgba(198, 40, 40, 0.12);
    color: #ef9a9a;
    border-color: rgba(198, 40, 40, 0.3);
}

.schedule-activity-title {
    color: #f0f0f0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.schedule-activity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.schedule-activity-actions .action-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--ui-border, #2e2e2e);
    background: var(--ui-bg, #161616);
    color: #bdbdbd;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.schedule-activity-actions .action-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}

.schedule-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #8a8a8a;
    border: 1px dashed var(--ui-border, #2e2e2e);
    border-radius: 12px;
}

/* Vista mes compacta */
.schedule-month-overview {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--ui-border, #2e2e2e);
}

.schedule-month-overview h4 {
    font-family: 'Bebas Neue', var(--font-heading);
    color: #fff;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

#schedule .internal-cal-container {
    background: var(--ui-bg, #161616);
    border-color: var(--ui-border, #2e2e2e);
}

#schedule .int-day.internal-selected {
    border-color: #c62828 !important;
    background: rgba(198, 40, 40, 0.12) !important;
}

@media (max-width: 768px) {
    .schedule-pro-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-filter-chips {
        justify-content: flex-start;
    }

    .schedule-activity-card {
        flex-direction: column;
    }

    .schedule-activity-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .schedule-day-feed,
    .schedule-group-section,
    .schedule-activity-card {
        animation: none !important;
        transition: none !important;
    }
}
