/* =====================================================
   Warsztaty Ceramiczne — styl frontendu
   ===================================================== */

.wcp-wrap {
    max-width: 780px;
    margin: 0 auto;
    font-family: inherit;
    color: #1e0f00;
}

/* ----- Nawigacja miesiacami ----- */

.wcp-miesiac-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.wcp-tab-mies {
    padding: 9px 26px;
    border: 2px solid #c8a882;
    border-radius: 30px;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: #5a3e28;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    letter-spacing: 0.01em;
    line-height: 1;
}

.wcp-tab-mies.aktywny {
    background: #5a3e28;
    color: #ffffff;
    border-color: #5a3e28;
}

.wcp-tab-mies:hover:not(.aktywny) {
    background: #f5e6d0;
    border-color: #a07850;
}

/* ----- Sekcja miesiaca ----- */

.wcp-sekcja {
    animation: wcpFadeIn 0.2s ease;
}

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

/* ----- Lista kart ----- */

.wcp-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ----- Karta warsztatu ----- */

.wcp-karta {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border: 1px solid #e2d4c5;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 5px rgba(90, 62, 40, 0.07);
    transition: box-shadow 0.18s, transform 0.18s;
}

.wcp-karta:hover {
    box-shadow: 0 5px 18px rgba(90, 62, 40, 0.15);
    transform: translateY(-2px);
}

.wcp-karta.wcp-pelna {
    opacity: 0.55;
    background: #f9f7f5;
}

.wcp-karta.wcp-pelna:hover {
    transform: none;
    box-shadow: 0 1px 5px rgba(90, 62, 40, 0.07);
}

/* ----- Slupek z data (lewy) ----- */

.wcp-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    background: linear-gradient(160deg, #6b4c32 0%, #3d2410 100%);
    color: #ffffff;
    border-radius: 10px;
    padding: 12px 8px;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(61, 36, 16, 0.28);
    flex-shrink: 0;
}

.wcp-dnr {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.wcp-dnaz {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
    opacity: 0.75;
    font-weight: 600;
}

/* ----- Srodkowa czesc informacyjna ----- */

.wcp-info {
    flex: 1;
    min-width: 0;
}

.wcp-nazwa {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e0f00;
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}

.wcp-czas {
    font-size: 0.88rem;
    color: #7a5c44;
    margin-bottom: 5px;
    font-weight: 500;
}

.wcp-opis {
    font-size: 0.82rem;
    color: #b0967e;
    margin-bottom: 6px;
    line-height: 1.4;
}

.wcp-miejsca {
    font-size: 0.83rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wcp-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wcp-dot-ok   { background: #3a9e4a; }
.wcp-dot-malo { background: #e07b00; }
.wcp-dot-brak { background: #cccccc; }

.wcp-malo {
    color: #b45309;
    font-weight: 700;
}

/* ----- Prawa czesc — przycisk ----- */

.wcp-akcja {
    flex-shrink: 0;
}

.wcp-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.wcp-btn-rez {
    background: linear-gradient(135deg, #6b4c32 0%, #3d2410 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(61, 36, 16, 0.22);
}

.wcp-btn-rez:hover {
    background: linear-gradient(135deg, #7d5a3e 0%, #4f3020 100%);
    box-shadow: 0 5px 14px rgba(61, 36, 16, 0.32);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.wcp-btn-pelny {
    background: #ececec;
    color: #aaaaaa !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* ----- Brak zajec ----- */

.wcp-puste {
    text-align: center;
    padding: 52px 24px;
    color: #aaaaaa;
    background: #fafafa;
    border-radius: 12px;
    border: 1px dashed #dddddd;
    font-size: 0.95rem;
}

/* ----- Alert bledu ----- */

.wcp-alert {
    background: #fde8e8;
    color: #900000;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ----- Overlay ----- */

#wcp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 0, 0.55);
    z-index: 9998;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* ----- Modal rezerwacji ----- */

.wcp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wcp-modal-in {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 30px 28px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.22);
    max-height: 92vh;
    overflow-y: auto;
}

.wcp-modal-x {
    position: absolute;
    top: 16px;
    right: 18px;
    background: #f5f0eb;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.wcp-modal-x:hover {
    background: #e8ddd4;
    color: #333;
}

.wcp-modal-in h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    color: #1e0f00;
    font-weight: 800;
    letter-spacing: -0.02em;
    padding-right: 36px;
}

.wcp-modal-info {
    background: linear-gradient(135deg, #fdf5ec 0%, #f5e8d4 100%);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #5a3e28;
    border-left: 3px solid #c8a882;
    line-height: 1.5;
}

/* ----- Formularz ----- */

.wcp-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wcp-para {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wcp-pole {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wcp-pole label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #5a3e28;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wcp-pole input {
    padding: 10px 13px;
    border: 1.5px solid #e0d0c0;
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fdfaf7;
    color: #1e0f00;
}

.wcp-pole input:focus {
    border-color: #5a3e28;
    outline: none;
    box-shadow: 0 0 0 3px rgba(90, 62, 40, 0.1);
    background: #ffffff;
}

.wcp-rodo {
    font-size: 0.74rem;
    color: #cccccc;
    margin: 0;
    line-height: 1.4;
}

.wcp-btn-submit {
    background: linear-gradient(135deg, #6b4c32 0%, #3d2410 100%);
    color: #ffffff;
    padding: 13px;
    font-size: 0.95rem;
    font-weight: 700;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    margin-top: 4px;
    box-shadow: 0 3px 12px rgba(61, 36, 16, 0.28);
    letter-spacing: 0.03em;
    cursor: pointer;
    border: none;
    transition: background 0.15s, box-shadow 0.15s;
}

.wcp-btn-submit:hover {
    background: linear-gradient(135deg, #7d5a3e 0%, #4f3020 100%);
    box-shadow: 0 6px 18px rgba(61, 36, 16, 0.36);
}

/* ----- Potwierdzenie ----- */

.wcp-potwierdzenie {
    text-align: center;
    padding: 60px 24px;
    max-width: 480px;
    margin: 0 auto;
}

.wcp-ok-ikona {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    font-size: 2.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 18px rgba(46, 125, 50, 0.2);
}

.wcp-potwierdzenie h3 {
    font-size: 1.7rem;
    color: #1e0f00;
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.wcp-potwierdzenie p {
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.wcp-potwierdzenie .wcp-btn {
    background: linear-gradient(135deg, #6b4c32 0%, #3d2410 100%);
    color: #ffffff !important;
    margin-top: 20px;
    box-shadow: 0 3px 12px rgba(61, 36, 16, 0.28);
}

/* ----- Responsive ----- */

@media (max-width: 560px) {
    .wcp-karta {
        flex-wrap: wrap;
        gap: 12px;
    }
    .wcp-akcja {
        width: 100%;
    }
    .wcp-btn-rez,
    .wcp-btn-pelny {
        width: 100%;
        text-align: center;
        display: block;
    }
    .wcp-para {
        grid-template-columns: 1fr;
    }
    .wcp-modal-in {
        padding: 24px 18px 20px;
    }
    .wcp-tab-mies {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ----- Filtry tygodniowe ----- */

.wcp-filtry {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0e8e0;
}

.wcp-filtr {
    padding: 9px 22px;
    border: 2px solid #c8a882;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: #5a3e28;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.01em;
}

.wcp-filtr.aktywny {
    background: #5a3e28;
    color: #ffffff;
    border-color: #5a3e28;
}

.wcp-filtr:hover:not(.aktywny) {
    background: #f5e6d0;
    border-color: #a07850;
}

.wcp-filtr-cnt {
    background: #c8a882;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 10px;
    padding: 2px 7px;
    line-height: 1.3;
    min-width: 18px;
    text-align: center;
}

.wcp-filtr.aktywny .wcp-filtr-cnt {
    background: rgba(255,255,255,0.3);
}

.wcp-widok { animation: wcpFadeIn 0.18s ease; }

.wcp-miesiac-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.wcp-tab-mies {
    padding: 7px 20px;
    border: 2px solid #c8a882;
    border-radius: 30px;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #5a3e28;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.wcp-tab-mies.aktywny { background: #5a3e28; color: #ffffff; border-color: #5a3e28; }
.wcp-tab-mies:hover:not(.aktywny) { background: #f5e6d0; border-color: #a07850; }
