/* ===========================
   Školní kroužky – Frontend CSS
   v1.2.0
   Barvy:
     Primární modrá : #2b4290
     Hover          : #1e2f6b
     Text           : #000000
     Pozadí karet   : #ffffff
   =========================== */

/* ---------- Kontejner – bez gradientu ---------- */
.scr-wizard-container {
    background: #f0f2f7;
    padding: 40px 20px;
    border-radius: 12px;
    margin: 30px 0;
}

.scr-wizard {
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
}

/* ---------- Progress bar ---------- */
.scr-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 20px;
}
.scr-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}
.scr-progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: all .3s ease;
    margin-bottom: 10px;
}
.scr-progress-step.active    .scr-progress-circle { background: #2b4290; color: #fff; transform: scale(1.1); }
.scr-progress-step.completed .scr-progress-circle { background: #2b4290; color: #fff; opacity: .7; }
.scr-progress-label { font-size: 13px; color: #555; text-align: center; font-weight: 500; }
.scr-progress-step.active .scr-progress-label { color: #2b4290; font-weight: bold; }
.scr-progress-line { flex: 1; height: 3px; background: #e0e0e0; margin: 0 10px; position: relative; top: -20px; }

/* ---------- Kroky ---------- */
.scr-step { display: none; }
.scr-step.active { display: block; animation: scrFadeIn .4s ease; }

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

.scr-step h2 {
    color: #2b4290;
    font-size: 26px;
    margin: 0 0 28px;
    text-align: center;
}

/* ---------- Spinner ---------- */
.scr-clubs-loading { text-align: center; padding: 40px; }
.scr-spinner {
    border: 4px solid #e0e0e0;
    border-top: 4px solid #2b4290;
    border-radius: 50%;
    width: 50px; height: 50px;
    animation: scrSpin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes scrSpin { to { transform: rotate(360deg); } }

/* ---------- Seznam kroužků ---------- */
.scr-clubs-list { display: grid; gap: 16px; }

.scr-club-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all .25s ease;
    background: #ffffff;
}
.scr-club-card:hover {
    border-color: #2b4290;
    box-shadow: 0 4px 12px rgba(43,66,144,.15);
    transform: translateY(-2px);
}
.scr-club-card.disabled {
    opacity: .55;
    cursor: not-allowed;
    background: #f8f8f8;
}
.scr-club-card.disabled:hover {
    border-color: #e0e0e0;
    box-shadow: none;
    transform: none;
}

.scr-club-name { font-size: 20px; font-weight: bold; color: #2b4290; margin: 0 0 10px; }
.scr-club-info { font-size: 14px; color: #000; line-height: 1.6; }
.scr-club-info-item { margin: 4px 0; }
.scr-club-info-item strong { color: #000; min-width: 80px; display: inline-block; }

.scr-club-capacity { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e0e0e0; }
.scr-capacity-bar { height: 8px; background: #e0e0e0; border-radius: 4px; overflow: hidden; margin-top: 5px; }
.scr-capacity-fill { height: 100%; background: #2b4290; transition: width .3s ease; }
.scr-capacity-fill.full { background: #c0392b; }

.scr-club-status { display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: bold; margin-top: 10px; }
.scr-club-status.available { background: #edf0f9; color: #2b4290; }
.scr-club-status.full      { background: #fdecec; color: #c0392b; }
.scr-club-status.deadline  { background: #fff3e0; color: #b45000; }

/* ---------- Formulář ---------- */
.scr-selected-club-info {
    background: #edf0f9;
    border-left: 4px solid #2b4290;
    padding: 14px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
}

.scr-form { margin-top: 10px; }

.scr-form-group { margin-bottom: 22px; }

.scr-form-group label {
    display: block;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Všechna pole identického vzhledu */
.scr-form-group input[type="text"],
.scr-form-group input[type="email"],
.scr-form-group input[type="tel"],
.scr-form-group select {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.4;
    color: #000;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.scr-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.scr-form-group input:focus,
.scr-form-group select:focus {
    outline: none;
    border-color: #2b4290;
    box-shadow: 0 0 0 3px rgba(43,66,144,.15);
}

/* Oddělovač sekce */
.scr-form-divider {
    position: relative;
    text-align: center;
    margin: 28px 0 22px;
}
.scr-form-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: #e0e0e0;
}
.scr-form-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 14px;
    font-size: 12px;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
}

/* ---------- Tlačítka ---------- */
.scr-form-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 30px; }

.scr-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.scr-btn-primary {
    background: #2b4290;
    color: #ffffff;
}
.scr-btn-primary:hover {
    background: #1e2f6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43,66,144,.30);
}
.scr-btn-secondary {
    background: #e0e0e0;
    color: #000;
}
.scr-btn-secondary:hover { background: #d0d0d0; }
.scr-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Potvrzení ---------- */
.scr-success-message { text-align: center; padding: 40px 20px; }
.scr-success-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: #2b4290; color: #fff; font-size: 48px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    animation: scrScaleIn .5s ease;
}
@keyframes scrScaleIn { from { transform: scale(0); } to { transform: scale(1); } }
.scr-success-message h2 { color: #2b4290; margin-bottom: 14px; }
.scr-confirmation-text { font-size: 16px; color: #000; line-height: 1.6; }

/* ---------- Chybová hláška ---------- */
.scr-error-message {
    background: #fdecec;
    border-left: 4px solid #c0392b;
    padding: 14px 16px;
    margin: 20px 0;
    border-radius: 4px;
    color: #c0392b;
    font-size: 14px;
}

/* ---------- Responzivita ---------- */
@media (max-width: 768px) {
    .scr-wizard-container { padding: 20px 10px; }
    .scr-wizard { padding: 25px 18px; }
    .scr-progress { padding: 0 8px; }
    .scr-progress-circle { width: 40px; height: 40px; font-size: 16px; }
    .scr-progress-label { font-size: 11px; }
    .scr-step h2 { font-size: 22px; }
    .scr-form-buttons { flex-direction: column; }
    .scr-btn { width: 100%; }
}
@media (max-width: 480px) {
    .scr-progress-label { display: none; }
    .scr-club-name { font-size: 18px; }
    .scr-club-info { font-size: 13px; }
}

/* ==============================================
   Theme mode – přizpůsobení aktivní WP šabloně
   ============================================== */
.scr-theme-mode {
    background: none;
    padding: 20px 0;
}
.scr-theme-mode .scr-wizard {
    box-shadow: none;
    border: 1px solid rgba(0,0,0,.1);
}
.scr-theme-mode .scr-step h2,
.scr-theme-mode .scr-club-name { color: inherit; }
.scr-theme-mode .scr-progress-circle { background: #f0f0f0; color: inherit; }
.scr-theme-mode .scr-club-card:hover { border-color: currentColor; }
.scr-theme-mode .scr-selected-club-info { background: rgba(0,0,0,.04); border-left-color: currentColor; }
.scr-theme-mode .scr-form-divider span { background: transparent; }

@supports (color: var(--wp--preset--color--primary)) {
    .scr-theme-mode .scr-progress-step.active .scr-progress-circle {
        background: var(--wp--preset--color--primary, #2b4290); color: #fff;
    }
    .scr-theme-mode .scr-club-name { color: var(--wp--preset--color--primary, inherit); }
    .scr-theme-mode .scr-selected-club-info { border-left-color: var(--wp--preset--color--primary, currentColor); }
    .scr-theme-mode .scr-form-group input:focus,
    .scr-theme-mode .scr-form-group select:focus {
        border-color: var(--wp--preset--color--primary, #2b4290);
        box-shadow: 0 0 0 3px rgba(0,0,0,.08);
    }
    .scr-theme-mode .scr-btn-primary {
        background: var(--wp--preset--color--primary, #2b4290);
        color: var(--wp--preset--color--base, #fff);
    }
    .scr-theme-mode .scr-btn-primary:hover {
        filter: brightness(.85);
    }
    .scr-theme-mode .scr-spinner { border-top-color: var(--wp--preset--color--primary, #2b4290); }
    .scr-theme-mode .scr-success-icon { background: var(--wp--preset--color--primary, #2b4290); }
    .scr-theme-mode .scr-success-message h2 { color: var(--wp--preset--color--primary, #2b4290); }
}
