/**
 * Main Styles - Udemy/Coursera Professional Design
 *
 * @package Coursee
 * @since 1.0.0
 */

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #000000;
	background: #ffffff;
	margin: 0;
	padding: 0;
}

/* ============================================
   HEADER - UDEMY STYLE
   ============================================ */

.site-header {
	background: #ffffff;
	border-bottom: 1px solid #d1d5db;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
	max-width: 1340px;
	margin: 0 auto;
	padding: 0 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-logo img {
	height: 40px;
	width: auto;
}

.site-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #000000;
	text-decoration: none;
}

.site-title:hover {
	color: #000000;
	text-decoration: none;
}

/* Navigation */
.main-navigation {
	flex: 1;
	display: flex;
	justify-content: center;
}

.main-navigation ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 2rem;
	margin: 0;
	padding: 0;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	color: #000000;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.5rem 0;
	transition: color 0.2s ease;
	display: block;
}

.main-navigation a:hover {
	color: #5624d0;
	text-decoration: none;
}

/* Header Actions */
.header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.header-search {
	position: relative;
}

.header-search input {
	padding: 0.5rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: 0;
	font-size: 0.875rem;
	width: 300px;
}

.header-search input:focus {
	outline: 2px solid #000000;
	outline-offset: -2px;
	border-color: #000000;
}

.header-cart,
.header-notifications {
	position: relative;
}

.header-cart a,
.header-notifications a {
	color: #000000;
	text-decoration: none;
	font-size: 1.25rem;
	padding: 0.5rem;
	display: block;
}

.header-cart .count,
.header-notifications .count {
	position: absolute;
	top: 0;
	right: 0;
	background: #000000;
	color: #ffffff;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	font-size: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

/* User Menu */
.user-menu {
	position: relative;
}

.user-menu-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	padding: 0.5rem;
	border: none;
	background: transparent;
}

.user-menu-toggle img {
	border-radius: 50%;
	width: 32px;
	height: 32px;
}

.user-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background: #ffffff;
	border: 2px solid #000000;
	min-width: 200px;
	margin-top: 0.5rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	display: none;
}

.user-menu:hover .user-dropdown {
	display: block;
}

.user-dropdown a {
	display: block;
	padding: 0.75rem 1rem;
	color: #000000;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	border-bottom: 1px solid #e5e7eb;
}

.user-dropdown a:hover {
	background: #f9fafb;
	color: #000000;
}

.user-dropdown a:last-child {
	border-bottom: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: none;
	background: transparent;
	border: 2px solid #000000;
	padding: 0.5rem;
	cursor: pointer;
}

.menu-toggle .menu-icon {
	width: 24px;
	height: 2px;
	background: #000000;
	position: relative;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
	content: '';
	position: absolute;
	width: 24px;
	height: 2px;
	background: #000000;
	left: 0;
}

.menu-toggle .menu-icon::before {
	top: -8px;
}

.menu-toggle .menu-icon::after {
	bottom: -8px;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.site-main {
	min-height: calc(100vh - 200px);
	padding: 2rem 0;
}

.container {
	max-width: 1340px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* ============================================
   FOOTER - UDEMY STYLE
   ============================================ */

.site-footer {
	background: #ffffff;
	border-top: 1px solid #d1d5db;
	padding: 3rem 0 2rem;
	margin-top: 4rem;
}

.footer-container {
	max-width: 1340px;
	margin: 0 auto;
	padding: 0 1rem;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-widget h3 {
	font-size: 1rem;
	font-weight: 700;
	color: #000000;
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.footer-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-widget ul li {
	margin-bottom: 0.5rem;
}

.footer-widget a {
	color: #6b7280;
	text-decoration: none;
	font-size: 0.875rem;
}

.footer-widget a:hover {
	color: #000000;
	text-decoration: underline;
}

.footer-bottom {
	border-top: 1px solid #e5e7eb;
	padding-top: 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-copyright {
	font-size: 0.875rem;
	color: #6b7280;
}

.footer-links {
	display: flex;
	gap: 1.5rem;
}

.footer-links a {
	color: #6b7280;
	text-decoration: none;
	font-size: 0.875rem;
}

.footer-links a:hover {
	color: #000000;
	text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
	.header-search input {
		width: 200px;
	}
	
	.footer-widgets {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
	}
	
	.main-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #ffffff;
		border-top: 1px solid #d1d5db;
		padding: 1rem;
	}
	
	.main-navigation.toggled {
		display: block;
	}
	
	.main-navigation ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}
	
	.main-navigation li {
		width: 100%;
		border-bottom: 1px solid #e5e7eb;
	}
	
	.main-navigation a {
		padding: 1rem;
		width: 100%;
	}
	
	.header-search {
		display: none;
	}
	
	.footer-widgets {
		grid-template-columns: 1fr;
	}
	
	.footer-bottom {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}
}
