/* Reset & Base */
* {
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	margin: 0;
	padding: 0;
	background-color: #f4f4f9;
	color: #333;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

a {
	text-decoration: none;
	color: #3b82f6;
}

a:hover {
	text-decoration: underline;
}

/* Layout */
header {
	background: #2c3e50;
	color: white;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
	margin: 0;
	font-size: 1.5rem;
}

header nav a {
	color: white;
	margin-left: 20px;
	font-weight: 500;
}

header .btn-cta {
	background: #e74c3c;
	padding: 8px 16px;
	border-radius: 4px;
	color: white;
	text-decoration: none;
}

main {
	flex: 1;
	padding: 2rem;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

footer {
	background: #bdc3c7;
	text-align: center;
	padding: 1rem;
	margin-top: auto;
}

/* UI Components */
.card {
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
}

.btn {
	display: inline-block;
	padding: 10px 20px;
	background: #3498db;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	font-size: 1rem;
}

.btn-secondary {
	background: #95a5a6;
}

.btn-success {
	background: #27ae60;
}

.btn-danger {
	background: #c0392b;
}

.btn:hover {
	opacity: 0.9;
	text-decoration: none;
}

/* NEW STYLES FOR HERO & HOMEPAGE */
.hero-section {
	background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
	color: white;
	padding: 80px 20px;
	position: relative;
	overflow: hidden;
}

.hero-overlay-shape {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0.1;
	background-image: radial-gradient(#fff 2px, transparent 2px);
	background-size: 30px 30px;
}

.hero-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 50px;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.hero-text-col {
	flex: 1.2;
	text-align: left;
}

.hero-form-col {
	flex: 1;
	max-width: 550px;
}

.hero-trust-list {
	list-style: none;
	padding: 0;
	margin: 20px 0;
}

.hero-trust-list li {
	margin-bottom: 12px;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	gap: 10px;
}

@media (max-width: 900px) {
	.hero-content {
		flex-direction: column;
		text-align: center;
	}

	.hero-text-col {
		text-align: center;
		margin-bottom: 30px;
	}

	.hero-trust-list {
		display: inline-block;
		text-align: left;
	}
}

.hero-title {
	font-size: 3rem;
	margin-bottom: 10px;
	font-weight: 700;
}

.hero-subtitle {
	font-size: 1.2rem;
	margin-bottom: 40px;
	opacity: 0.9;
}

.search-card {
	background: white;
	color: #333;
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	text-align: left;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.form-group label {
	color: #555;
	font-size: 0.9rem;
	margin-bottom: 5px;
	display: block;
}

.form-group select,
.form-group input {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #f9f9f9;
}

.ai-input-group {
	background: #f3e8ff;
	padding: 15px;
	border-radius: 8px;
	border: 1px solid #d8b4fe;
	margin-bottom: 20px;
}

.ai-input-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #6b21a8;
	margin-bottom: 8px;
	font-weight: bold;
}

.section-categories {
	padding: 60px 20px;
	text-align: center;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 15px;
	margin-top: 30px;
}

.category-card {
	background: white;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	transition: transform 0.2s;
	cursor: pointer;
	border: 1px solid #eee;
}

.category-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	border-color: #3498db;
}

.category-icon {
	font-size: 2rem;
	margin-bottom: 10px;
	display: block;
}


.btn:hover {
	opacity: 0.9;
	text-decoration: none;
}

input,
textarea,
select {
	width: 100%;
	padding: 10px;
	margin: 5px 0 15px 0;
	border: 1px solid #ddd;
	border-radius: 4px;
}

label {
	font-weight: bold;
	margin-top: 10px;
	display: block;
}

/* Chat Hero Mode */
.hero-chat-mode {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 100px 20px;
}

.hero-content-chat {
	max-width: 800px;
	width: 100%;
	text-align: center;
	z-index: 2;
}

.chat-interface-container {
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	text-align: left;
	color: #333;
	margin-top: 30px;
}

.chat-box-display {
	background: #f9f9f9;
	padding: 20px;
	border-bottom: 1px solid #eee;
	min-height: 120px;
}

.msg-system {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.msg-system .avatar {
	width: 35px;
	height: 35px;
	background: #2c3e50;
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.msg-system .bubble {
	background: #e3f2fd;
	padding: 12px;
	border-radius: 12px;
	border-top-left-radius: 0;
	max-width: 80%;
	font-size: 1rem;
	line-height: 1.5;
}

.chat-input-area {
	padding: 20px;
	background: white;
}

.chat-input-area textarea {
	width: 100%;
	border: 1px solid #ddd;
	padding: 15px;
	border-radius: 8px;
	font-size: 1rem;
	resize: vertical;
	margin-bottom: 15px;
	outline: none;
}

.chat-input-area textarea:focus {
	border-color: #3498db;
}

.chat-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.toggles {
	display: flex;
	gap: 15px;
	font-size: 0.9rem;
	color: #555;
}

.safety-note {
	font-size: 0.75rem;
	color: #999;
	padding: 10px 20px;
	background: #fdfdfd;
	border-top: 1px solid #eee;
	margin: 0;
	text-align: center;
}

.coach-list-item {
	display: flex;
	gap: 20px;
	border-bottom: 1px solid #eee;
	padding-bottom: 20px;
	margin-bottom: 20px;
}

.coach-avatar {
	width: 100px;
	height: 100px;
	background: #ddd;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.coach-info {
	flex: 1;
}

.ai-reasoning {
	background: #f3e8ff;
	border-left: 4px solid #9333ea;
	padding: 10px;
	margin-top: 10px;
	font-style: italic;
	font-size: 0.9rem;
}

.dashboard-grid {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 20px;
}

.sidebar {
	background: white;
	padding: 20px;
	border-radius: 8px;
	height: fit-content;
}

.sidebar ul {
	list-style: none;
	padding: 0;
}

.sidebar li {
	margin-bottom: 10px;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

/* Utilities */
.text-center {
	text-align: center;
}

.flex-row {
	display: flex;
	gap: 10px;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.8em;
	font-weight: bold;
}

.badge-verified {
	background: #d4edda;
	color: #155724;
}

.badge-pending {
	background: #fff3cd;
	color: #856404;
}

/* Mockup Overlay */
.mockup-note {
	position: fixed;
	bottom: 10px;
	right: 10px;
	background: #ffeb3b;
	padding: 10px;
	border: 1px solid #daa520;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	font-size: 12px;
	z-index: 9999;
}
/* --- Store & Product Styles --- */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.product-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 10px;
    width: fit-content;
}
.badge-pdf { background: #ffebee; color: #c62828; }
.badge-video { background: #e3f2fd; color: #1565c0; }

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.author-link {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}
.problem-tag {
    background: #f8f9fa;
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 10px;
    color: #555;
    margin-right: 5px;
}

/* --- Calendar Styles --- */
.calendar-container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.week-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 20px;
}
.day-column {
    text-align: center;
}
.day-header {
    font-weight: bold;
    margin-bottom: 15px;
    color: #555;
}
.time-slot {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #2ecc71;
    color: #2ecc71;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    text-align: center;
}
.time-slot:hover {
    background: #2ecc71;
    color: white;
}
.time-slot.booked {
    border-color: #eee;
    background: #f9f9f9;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}
