/* Elit Erkek Kuaförü - Siyah & Beyaz Tema */

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f4f4f4;
    --gray-200: #e8e8e8;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-100);
    color: var(--black);
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Topbar --- */
.topbar {
    background: var(--black);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow);
}
.topbar-inner {
    max-width: 560px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.2px;
}
.panel-btn {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border: 1.5px solid var(--gray-700);
    border-radius: 100px;
    transition: all 0.2s;
}
.panel-btn:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* --- Page --- */
.page {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.welcome {
    text-align: center;
    margin-bottom: 28px;
}
.welcome h1 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.welcome p {
    color: var(--gray-500);
    font-size: 15px;
}

/* --- Stepper --- */
.stepper {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.step span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--gray-400);
    transition: all 0.2s;
}
.step i {
    font-style: normal;
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 600;
}
.step.active span {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}
.step.active i { color: var(--black); }
.step.done span {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}
.step.done span::before { content: '✓'; }
.step.done span .num { display: none; }
.step-line {
    flex: 1;
    height: 2px;
    background: var(--gray-300);
    margin: 0 6px 16px;
}
.step-line.done { background: var(--black); }

/* --- Card --- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.step-pane { display: none; animation: fadeIn 0.25s ease; }
.step-pane.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}
.step-sub {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 20px;
}

/* --- List (services, barbers) --- */
.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.list-item {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.18s;
    background: var(--white);
}
.list-item:hover {
    border-color: var(--black);
    transform: translateX(2px);
}
.list-item.selected {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}
.list-item-name { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.list-item-meta { font-size: 13px; color: var(--gray-500); }
.list-item.selected .list-item-meta { color: var(--gray-300); }
.list-item-price { font-weight: 800; font-size: 17px; }

/* Barber items */
.barbers .list-item-name { display: flex; align-items: center; gap: 10px; }
.barber-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}
.list-item.selected .barber-avatar {
    background: var(--white);
    color: var(--black);
}

.loading, .empty-note {
    text-align: center;
    color: var(--gray-400);
    padding: 24px;
    font-size: 14px;
}

/* --- Calendar --- */
.calendar-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-600);
    margin: 18px 0 10px;
}
#timeLabel { display: none; }

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.day-chip {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 4px 8px;
    text-align: center;
    cursor: pointer;
    background: var(--white);
    transition: all 0.18s;
}
.day-chip:hover:not(.closed) {
    border-color: var(--black);
}
.day-chip.selected {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
.day-chip.closed {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}
.day-wk {
    font-size: 9px;
    color: var(--gray-400);
    text-transform: uppercase;
    font-weight: 600;
}
.day-chip.selected .day-wk { color: var(--gray-300); }
.day-num { font-size: 16px; font-weight: 800; }
.day-mon { font-size: 9px; color: var(--gray-500); margin-top: 1px; }
.day-chip.selected .day-mon { color: var(--gray-300); }
.day-today {
    font-size: 8px;
    background: var(--black);
    color: var(--white);
    padding: 1px 4px;
    border-radius: 3px;
    margin-top: 3px;
    display: inline-block;
}
.day-chip.selected .day-today { background: var(--white); color: var(--black); }

/* --- Slots --- */
.slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.slot-chip {
    padding: 12px 4px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    background: var(--white);
    transition: all 0.18s;
}
.slot-chip:hover:not(.taken) {
    border-color: var(--black);
}
.slot-chip.selected {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
.slot-chip.taken {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    background: var(--gray-100);
}

/* --- Form --- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}
.field input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    background: var(--white);
    color: var(--black);
    transition: border-color 0.18s;
    outline: none;
}
.field input:focus { border-color: var(--black); }

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    padding: 15px 24px;
    border: 1.5px solid var(--black);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.18s;
}
.btn-primary {
    background: var(--black);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--gray-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}
.btn-secondary {
    background: var(--white);
    color: var(--black);
}
.btn-secondary:hover { background: var(--gray-100); }

.nav-buttons {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}
#nextBtn { flex: 1; }
#prevBtn { flex: 0 0 100px; }

/* --- Salon Info --- */
.salon-info {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.salon-info h3 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
}
.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    color: var(--gray-800);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    transition: color 0.2s;
}
.info-row:last-child { border-bottom: none; }
.info-row:hover { color: var(--black); }
.info-icon { font-size: 16px; }

/* --- Footer --- */
.footer {
    text-align: center;
    color: var(--gray-400);
    font-size: 12px;
    padding: 12px 0;
    font-weight: 500;
}

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--black);
    color: var(--white);
    padding: 14px 26px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    transition: all 0.3s;
    max-width: 90vw;
    text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #dc2626; }
.toast.success { background: var(--black); }

/* --- Modal --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    animation: fadeIn 0.2s;
}
.modal-card {
    background: var(--white);
    border-radius: 18px;
    padding: 36px 28px 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.modal-icon {
    font-size: 56px;
    margin-bottom: 12px;
}
.modal-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
}
.modal-text {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.6;
}
.modal-text strong { color: var(--black); }
.modal-summary {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 22px;
    text-align: left;
    font-size: 13px;
}
.modal-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}
.modal-summary-label { color: var(--gray-500); }
.modal-summary-value { font-weight: 700; }
.modal-card .btn-primary { width: 100%; }

/* --- Responsive --- */
@media (max-width: 480px) {
    .page { padding: 24px 16px 32px; }
    .welcome h1 { font-size: 24px; }
    .card { padding: 22px 18px; }
    .step-title { font-size: 18px; }
    .days { grid-template-columns: repeat(7, 1fr); gap: 4px; }
    .day-chip { padding: 8px 2px 6px; }
    .day-wk { font-size: 8px; }
    .day-num { font-size: 14px; }
    .day-mon { font-size: 8px; }
    .day-today { font-size: 7px; padding: 1px 3px; }
    .slots { grid-template-columns: repeat(3, 1fr); }
    .slot-chip { font-size: 14px; padding: 12px 4px; }
    .step span { width: 28px; height: 28px; font-size: 13px; }
    .step i { font-size: 10px; }
}
