/* Member-facing class schedule page */

.classes-section {
    background: var(--dark-bg, #0b1220);
    color: #fff;
    padding: 30px 0 60px;
    min-height: calc(100vh - 200px);
}

.week-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.week-nav-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.15s;
}
.week-nav-btn:hover {
    background: var(--primary-color, #f97316);
    border-color: var(--primary-color, #f97316);
}
.week-nav-btn.secondary {
    background: transparent;
    margin-left: auto;
}
.week-label {
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0 8px;
    flex: 1;
    text-align: center;
    min-width: 180px;
}

.classes-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.class-day-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color, #f97316);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 8px;
}
.class-day-date {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-weight: 500;
}

.class-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.class-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.15s, background 0.15s;
}
.class-card.mine {
    border-color: var(--primary-color, #f97316);
    background: rgba(249,115,22,0.06);
}

.class-card-time {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
}

.class-card-name {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
}
.class-card-desc {
    margin: 0 0 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    line-height: 1.4;
}
.class-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}
.class-card-meta i {
    margin-right: 4px;
    color: var(--primary-color, #f97316);
    opacity: 0.8;
}
.class-card-meta em {
    color: rgba(255,255,255,0.45);
    font-style: normal;
}

.class-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.class-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.class-badge.confirmed { background: rgba(74,222,128,0.15); color: #4ade80; }
.class-badge.waitlist  { background: rgba(251,191,36,0.15); color: #fbbf24; }
.class-badge.full      { background: rgba(248,113,113,0.15); color: #f87171; }
.class-badge.open      { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.65); }

.class-action {
    background: var(--primary-color, #f97316);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: opacity 0.15s, transform 0.1s;
}
.class-action:hover:not(:disabled) { opacity: 0.9; }
.class-action:active:not(:disabled) { transform: scale(0.97); }
.class-action:disabled { opacity: 0.5; cursor: wait; }
.class-action.waitlist { background: #b45309; }
.class-action.cancel {
    background: transparent;
    border: 1px solid rgba(248,113,113,0.4);
    color: #f87171;
}
.class-action.cancel:hover:not(:disabled) { background: rgba(248,113,113,0.12); }

.loading-state, .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.55);
}
.loading-state i, .empty-state i { font-size: 2rem; margin-bottom: 12px; color: var(--primary-color, #f97316); }
.empty-state.error i { color: #f87171; }
.empty-state h2 { margin: 0 0 6px; color: #fff; }
