:root {
    --pink: #e91e63;
    --pink-light: #fde4ec;
    --text: #2c2c2c;
    --muted: #777;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    color: var(--text);
}

.container {
    max-width: 1600px;
    margin: auto;
    padding: 50px 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    color: var(--pink);
    font-size: 36px;
    margin-bottom: 15px;
}

.week-nav {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: var(--pink-light);
    padding: 12px 25px;
    border-radius: 999px;
}

.week-nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--pink);
    font-size: 18px;
}

.today-btn {
    background: var(--pink);
    color: white !important;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px !important;
}

.week-range {
    font-weight: 600;
}

/* ANIMACJA */
.week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 25px;
    animation: fadeIn 0.35s ease;
}

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

.day {
    background: white;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    min-height: 150px;
}

.day.no-classes {
    background: repeating-linear-gradient(
        45deg,
        #fafbff,
        #fafbff 10px,
        #f3f3f9 10px,
        #f3f3f9 12px
    );
}

.today {
    border: 2px solid var(--pink);
    box-shadow: 0 0 0 4px rgba(233,30,99,0.1);
}

.day h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    position: sticky;
    top: 0;
    background: inherit;
    padding-bottom: 6px;
    z-index: 2;
}

.today h3 {
    color: var(--pink);
}

.date {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

/* KARTY */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 14px;
    transition: 0.2s ease;
    position: relative;
    border: 1px solid #eee;
}

/* WYSZARZENIE PRZESZŁYCH GODZIN */
.past {
    opacity: 0.45;
    filter: grayscale(60%);
}

/* KOLORY NA PODSTAWIE TYTUŁU */
.type-yoga { border-left: 4px solid #4CAF50; }
.type-pilates { border-left: 4px solid #3F51B5; }
.type-cardio { border-left: 4px solid #FF9800; }
.type-stretch { border-left: 4px solid #9C27B0; }
.type-default { border-left: 4px solid var(--pink); }

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.time {
    font-size: 13px;
    font-weight: 700;
}

.class-title {
    font-weight: 700;
    margin: 3px 0;
    font-size: 12px;
}

.meta {
    font-size: 11px;
    color: var(--muted);
}

.cancelled {
    background: #f2f2f2;
    color: #999;
    text-decoration: line-through;
}

.badge {
    position: absolute;
    top: 9px;
    right: 9px;
    background: #e0e0e0;
    color: #666;
    font-size: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.empty {
    font-size: 13px;
    color: var(--muted);
}

/* RESPONSYWNOŚĆ */
@media(max-width:1200px){
    .week { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width:768px){
    .week { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:480px){
    .week { grid-template-columns: 1fr; }
}

.schedule-wrapper.loading {
    opacity: 0.5;
    pointer-events: none;
}