/* Weekly Schedule Wrapper */
.weekly-schedule {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    transition: opacity 0.2s;
}

/* Loading state */
.weekly-schedule.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.weekly-schedule.is-loading .schedule-mobile-list {
    position: relative;
}

.weekly-schedule.is-loading .schedule-mobile-list::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #764B90;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #764B90;
    border-radius: 12px;
    color: white;
}

.schedule-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.schedule-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    text-decoration: none;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    color: white;
}

.today-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #764B90;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.today-btn:hover {
    background: white;
    transform: scale(1.05);
    color: #764B90;
}

/* Grid nézet elrejtése */
.schedule-grid {
    display: none !important;
}

/* Lista nézet - alapértelmezett minden eszközön */
.schedule-mobile-list {
    display: block;
}

/* Day cards */
.mobile-day {
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-day.today {
    border: 2px solid #764B90;
    box-shadow: 0 4px 12px rgba(118, 75, 144, 0.2);
}

.mobile-day.no-events {
    opacity: 0.6;
}

.mobile-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8f7fa;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-day.today .mobile-day-header {
    background: #764B90;
    color: white;
}

.mobile-day-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-day-date {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Events list */
.mobile-events {
    padding: 0.75rem;
}

.mobile-event {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.mobile-event:hover {
    background: #f8f7fa;
}

.mobile-event + .mobile-event {
    border-top: 1px solid #f0f0f0;
}

.mobile-event-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: contain;
}

.mobile-event-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-event-time {
    font-size: 0.9rem;
    color: #764B90;
    font-weight: 600;
}

.mobile-event-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #374151;
}

/* Event Actions */
.mobile-event-actions {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.event-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.event-btn-details {
    background: transparent;
    color: #764B90;
    border: 1px solid #764B90;
}

.event-btn-details:hover {
    background: #764B90;
    color: white;
}

.event-btn-signup {
    background: #764B90;
    color: white;
    border: 1px solid #764B90;
}

.event-btn-signup:hover {
    background: #5a3a6e;
    border-color: #5a3a6e;
    color: white;
}

.mobile-no-events {
    padding: 1.5rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.95rem;
    font-style: italic;
}

/* Tablet / Desktop - szélesebb kártyák */
@media (min-width: 768px) {
    .weekly-schedule {
        padding: 0 2rem;
    }

    .mobile-day {
        margin-bottom: 1.25rem;
    }

    .mobile-event-icon {
        width: 64px;
        height: 64px;
    }

    .mobile-event-title {
        font-size: 1.15rem;
    }

    .mobile-event-actions {
        width: auto;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        margin-left: auto;
    }

    .event-btn {
        flex: none;
        padding: 0.5rem 1.25rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .weekly-schedule {
        padding: 0;
    }

    .schedule-header {
        padding: 1rem;
        border-radius: 0;
        margin-bottom: 1rem;
    }

    .schedule-title {
        font-size: 1rem;
    }

    .schedule-title-wrapper {
        gap: 0.25rem;
    }

    .today-btn {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .schedule-mobile-list {
        padding: 0 0.75rem 0.75rem;
    }

    .mobile-day {
        margin-bottom: 0.75rem;
    }

    .mobile-day-header {
        padding: 0.75rem 1rem;
    }

    .mobile-day-name {
        font-size: 0.95rem;
    }

    .mobile-day-date {
        font-size: 0.85rem;
    }

    .mobile-events {
        padding: 0.5rem;
    }

    .mobile-event {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .mobile-event-icon {
        width: 44px;
        height: 44px;
    }

    .mobile-event-time {
        font-size: 0.8rem;
    }

    .mobile-event-title {
        font-size: 0.95rem;
    }

    .mobile-event-actions {
        gap: 0.5rem;
    }

    .event-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .schedule-title {
        font-size: 0.9rem;
    }

    .nav-btn {
        width: 36px;
        height: 36px;
    }

    .schedule-mobile-list {
        padding: 0 0.5rem 0.5rem;
    }

    .mobile-day {
        margin-bottom: 0.5rem;
    }

    .mobile-day-header {
        padding: 0.6rem 0.75rem;
    }

    .mobile-day-name {
        font-size: 0.9rem;
    }

    .mobile-event {
        padding: 0.6rem;
        gap: 0.5rem;
    }

    .mobile-event-icon {
        width: 36px;
        height: 36px;
    }

    .mobile-event-time {
        font-size: 0.75rem;
    }

    .mobile-event-title {
        font-size: 0.85rem;
    }

    .event-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }
}

