/* Berber Online - Müşteri Tarafı CSS (Modern Minimalist) */

:root {
    --bg: #f7f7f5;
    --card: #ffffff;
    --text: #1a1a1a;
    --text-light: #6b6b6b;
    --border: #e8e8e6;
    --primary: #1a1a1a;
    --accent: #d4a437;
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
}

* { 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(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    padding: 24px 16px 48px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page { max-width: 560px; margin: 0 auto; }

/* Hero */
.hero { text-align: center; padding: 40px 0 32px; }
.hero-emoji {
    font-size: 56px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(212,164,55,0.3));
}
.hero-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}
.hero-sub {
    color: var(--text-light);
    font-size: 17px;
    margin-bottom: 20px;
}
.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
}

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

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 4px;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
}
.step span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.25s;
}
.step.active span {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--accent);
}
.step.done span {
    background: var(--success);
    border-color: var(--success);
    color: white;
}
.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 6px 14px;
    transition: background 0.25s;
}
.step-line.done { background: var(--success); }

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

.step-h {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.step-p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Services */
.services { display: flex; flex-direction: column; gap: 10px; }
.service-item {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}
.service-item:hover { border-color: var(--text); }
.service-item.selected {
    border-color: var(--accent);
    background: #fdfcf5;
}
.service-name { font-weight: 600; margin-bottom: 2px; }
.service-desc { font-size: 13px; color: var(--text-light); }
.service-meta { display: flex; align-items: center; gap: 12px; text-align: right; }
.service-duration { font-size: 12px; color: var(--text-light); }
.service-price { font-weight: 700; font-size: 17px; min-width: 70px; }

.loading {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
    font-size: 14px;
}

/* Days */
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day-chip {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card);
}
.day-chip:hover:not(.closed) { border-color: var(--text); }
.day-chip.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.day-chip.closed {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}
.day-name {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2px;
}
.day-chip.selected .day-name { color: rgba(255,255,255,0.7); }
.day-num { font-size: 18px; font-weight: 700; }
.day-today {
    font-size: 10px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 2px;
}
.day-chip.selected .day-today { color: var(--accent); }

/* Slots */
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.slot-chip {
    padding: 12px 6px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    background: var(--card);
}
.slot-chip:hover:not(.taken) { border-color: var(--text); }
.slot-chip.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.slot-chip.taken {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}
.empty-note {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    padding: 12px;
    font-size: 14px;
}

/* Select / Inputs */
.select, .field input, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    background: var(--card);
    color: var(--text);
    transition: border-color 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
.select:focus, .field input:focus, .field textarea:focus { border-color: var(--primary); }
.employee-select-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    margin-top: 8px;
}

/* Form */
.form { display: flex; flex-direction: column; gap: 14px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.field textarea { resize: vertical; min-height: 60px; }

/* Buttons */
.btn-primary, .btn-ghost {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text); }

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

/* Salon Info */
.salon-info {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}
.salon-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}
.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}
.info-row:last-child { border-bottom: none; }
.info-row:hover { color: var(--accent); }
.info-icon { font-size: 18px; }

/* Footer */
.footer {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    padding: 8px 0;
}

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

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}
.modal-card {
    background: var(--card);
    border-radius: 18px;
    padding: 36px 28px 28px;
    max-width: 400px;
    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: 800;
    margin-bottom: 10px;
}
.modal-text {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}
.modal-text strong { color: var(--text); }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-btn { width: 100%; }

/* Responsive */
@media (max-width: 480px) {
    body { padding: 16px 12px 32px; }
    .hero-title { font-size: 30px; }
    .card { padding: 22px 18px; }
    .step-h { font-size: 19px; }
    .day-name { font-size: 10px; }
    .day-num { font-size: 16px; }
    .step span { width: 26px; height: 26px; font-size: 12px; }
    .step { font-size: 11px; }
}
@media (max-width: 360px) {
    .step span, .step-line { display: none; }
    .stepper { gap: 12px; flex-wrap: wrap; justify-content: center; }
}
