/* tutors.tredicik.com — bilingual tutor directory (matches iSixazululi app palette) */
:root {
	--primary: #1976d2;
	--primary-dark: #004ba0;
	--secondary: #ff9800;
	--bg: #faf8f5;
	--surface: #ffffff;
	--card: #f5f2ed;
	--text: #212121;
	--text-secondary: #757575;
	--border: #e0e0e0;
	--success: #25d366;
	--radius: 16px;
	--shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
	background: var(--primary);
	color: #fff;
	padding: 28px 20px 32px;
}
.site-header .inner { max-width: 1000px; margin: 0 auto; }
.site-header h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.site-header p { opacity: 0.9; margin-top: 4px; font-size: 15px; }

/* Layout */
.container { max-width: 1000px; margin: 0 auto; padding: 24px 20px 64px; }

.section-title { font-size: 22px; font-weight: 800; }
.section-subtitle { color: var(--text-secondary); font-size: 15px; margin-bottom: 20px; }

/* Filter chips */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 16px; margin-bottom: 8px; }
.chip {
	flex: 0 0 auto;
	border: 1px solid var(--border);
	background: var(--surface);
	border-radius: 999px;
	padding: 8px 16px;
	cursor: pointer;
	font-size: 14px;
	text-align: center;
	transition: all 0.15s;
}
.chip small { display: block; font-size: 11px; color: var(--text-secondary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.active small { color: rgba(255, 255, 255, 0.85); }

/* Tutor grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.tutor-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform 0.15s, box-shadow 0.15s;
}
.tutor-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); }

.tutor-top { display: flex; align-items: center; gap: 14px; }
.avatar {
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--primary); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 20px; flex: 0 0 auto;
}
.tutor-name { font-size: 18px; font-weight: 700; }
.tutor-meta { font-size: 13px; color: var(--text-secondary); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
	font-size: 12px; padding: 4px 10px; border-radius: 999px;
	background: var(--card); color: var(--text-secondary);
}
.badge.subject { background: #e3f0fc; color: var(--primary-dark); }

.tutor-bio { font-size: 14px; color: var(--text-secondary); }

.tutor-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.rate { font-weight: 800; color: var(--text); }
.rate small { font-weight: 500; color: var(--text-secondary); }
.rating { font-size: 14px; color: var(--text-secondary); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: none; border-radius: 12px; padding: 12px 18px;
	font-size: 15px; font-weight: 700; cursor: pointer; width: 100%;
}
.btn-wa { background: var(--success); color: #fff; }
.btn-wa:hover { filter: brightness(0.95); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--primary); }

/* States */
.state { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.spinner {
	width: 36px; height: 36px; margin: 0 auto 16px;
	border: 3px solid var(--border); border-top-color: var(--primary);
	border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Booking page */
.book-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.book-hero .avatar { width: 72px; height: 72px; font-size: 26px; }
.book-card {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
	display: flex; flex-direction: column; gap: 18px;
}
.detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--divider, #eee); }
.detail-row:last-child { border-bottom: none; }
.detail-row .k { color: var(--text-secondary); font-size: 14px; }
.detail-row .v { font-weight: 600; text-align: right; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--primary); font-weight: 600; }

.footer { text-align: center; color: var(--text-secondary); font-size: 13px; padding: 32px 20px; }
