/* MHMW Base Template Styles */

:root {
	--primary-color: #667eea;
	--primary-dark: #764ba2;
	--secondary-color: #f8f9fa;
	--text-color: #333;
	--text-light: #666;
	--border-color: #e0e0e0;
	--success-color: #28a745;
	--danger-color: #dc3545;
	--warning-color: #ffc107;
	--shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: var(--text-color);
	line-height: 1.6;
	background: #fff;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header Styles */
.mhmw-header {
	background: white;
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

.logo h1 {
	font-size: 1.8rem;
	font-weight: 700;
	margin: 0;
}

.logo h1 span {
	color: var(--primary-color);
}

.logo a {
	text-decoration: none;
	color: var(--text-color);
}

.main-nav ul {
	display: flex;
	list-style: none;
	align-items: center;
	gap: 30px;
}

.main-nav a {
	text-decoration: none;
	color: var(--text-color);
	font-weight: 500;
	transition: color 0.3s ease;
	position: relative;
}

.main-nav a:hover,
.main-nav a.active {
	color: var(--primary-color);
}

.main-nav a.active::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--primary-color);
}

.btn-login,
.btn-signup {
	padding: 10px 20px;
	border-radius: 6px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.btn-login {
	color: var(--text-color);
}

.btn-login:hover {
	color: var(--primary-color);
}

.btn-signup {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
	color: white;
}

.btn-signup:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* User Menu */
.user-menu {
	position: relative;
}

.user-menu-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	border-radius: 6px;
	background: var(--secondary-color);
	transition: all 0.3s ease;
}

.user-menu-btn:hover {
	background: #e9ecef;
}

.user-menu-btn i:first-child {
	font-size: 1.5rem;
	color: var(--primary-color);
}

.user-name {
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.user-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background: white;
	border-radius: 8px;
	box-shadow: var(--shadow-lg);
	min-width: 200px;
	margin-top: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	list-style: none;
	padding: 10px 0;
	z-index: 1000;
}

.user-menu.active .user-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.user-dropdown li {
	margin: 0;
}

.user-dropdown a,
.user-dropdown button {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	color: var(--text-color);
	text-decoration: none;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background 0.2s ease;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
	background: var(--secondary-color);
}

.user-dropdown .divider {
	height: 1px;
	background: var(--border-color);
	margin: 5px 0;
	padding: 0;
}

.user-dropdown .user-type-indicator {
	padding: 0.75rem 1rem;
	background: rgba(102, 126, 234, 0.1);
	border-left: 3px solid var(--primary-color);
	margin: 0.5rem 0;
	cursor: default;
}

.user-dropdown .user-type-indicator small {
	color: var(--primary-color);
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.user-dropdown .user-type-indicator i {
	font-size: 0.9rem;
}

.user-dropdown i {
	width: 20px;
	color: var(--text-light);
}

.signout-btn {
	color: var(--danger-color) !important;
}

.signout-btn:hover {
	background: #fff5f5 !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
	display: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--text-color);
}

/* Main Content */
.mhmw-main-content {
	min-height: calc(100vh - 200px);
}

/* Footer Styles */
.mhmw-footer {
	background: #2c3e50;
	color: white;
	padding: 60px 0 20px;
	margin-top: 80px;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-about h2 {
	font-size: 1.5rem;
	margin-bottom: 15px;
}

.footer-about h2 span {
	color: var(--primary-color);
}

.footer-about p {
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 20px;
	line-height: 1.6;
}

.social-icons {
	display: flex;
	gap: 15px;
}

.social-icons a {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: white;
	text-decoration: none;
	transition: all 0.3s ease;
}

.social-icons a:hover {
	background: var(--primary-color);
	transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
	font-size: 1.2rem;
	margin-bottom: 20px;
	color: white;
}

.footer-links ul,
.footer-contact ul {
	list-style: none;
}

.footer-links li,
.footer-contact li {
	margin-bottom: 12px;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: white;
}

.footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
	margin-top: 4px;
	color: var(--primary-color);
	width: 20px;
}

.footer-contact a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-contact a:hover {
	color: white;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.footer-bottom p {
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

.footer-bottom-links {
	display: flex;
	gap: 20px;
}

.footer-bottom-links a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
	color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
	.mobile-menu-btn {
		display: block;
	}
	
	.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: white;
		box-shadow: var(--shadow-lg);
		padding: 20px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-20px);
		transition: all 0.3s ease;
	}
	
	.main-nav.active {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	
	.main-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	
	.user-menu {
		width: 100%;
	}
	
	.user-dropdown {
		right: auto;
		left: 0;
		width: 100%;
	}
	
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}
}

/* Utility Classes */
.text-center {
	text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

