/**
 * Main Stylesheet
 *
 * @package Coursee
 * @since 1.0.0
 */

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.site-header {
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
}

.site-title a {
	text-decoration: none;
	color: #333;
}

.site-description {
	margin: 0;
	font-size: 14px;
	color: #666;
}

/* Navigation */
.main-navigation {
	display: flex;
	align-items: center;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2rem;
}

.main-navigation li {
	margin: 0;
}

.main-navigation a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
	padding: 0.5rem 0;
	transition: color 0.3s;
}

.main-navigation a:hover {
	color: #0073aa;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

/* Main Content */
.site-main {
	padding: 2rem 0;
	min-height: 60vh;
}

.entry-header {
	margin-bottom: 2rem;
}

.entry-title {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 1rem;
	color: #333;
}

.entry-content {
	line-height: 1.8;
	font-size: 16px;
}

.entry-content p {
	margin-bottom: 1.5rem;
}

.entry-content h2 {
	font-size: 28px;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.entry-content h3 {
	font-size: 24px;
	margin-top: 1.5rem;
	margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
	margin-bottom: 1.5rem;
	padding-left: 2rem;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	margin: 1.5rem 0;
}

/* Footer */
.site-footer {
	background: #333;
	color: #fff;
	padding: 2rem 0;
	margin-top: 4rem;
}

.site-footer .container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.site-footer h3 {
	margin-bottom: 1rem;
	font-size: 18px;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-info {
	grid-column: 1 / -1;
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid #555;
	margin-top: 2rem;
}

/* Coursee Messages */
.coursee-message {
	padding: 1rem;
	margin: 1rem 0;
	border-radius: 4px;
	border: 1px solid;
}

.coursee-message.coursee-error {
	background: #f8d7da;
	border-color: #f5c6cb;
	color: #721c24;
}

.coursee-message p {
	margin: 0;
}

/* Dashboard Styles */
.dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.stat-item {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 1.5rem;
	text-align: center;
}

.stat-item h3 {
	margin: 0 0 0.5rem 0;
	font-size: 14px;
	color: #666;
	font-weight: normal;
}

.stat-number {
	margin: 0;
	font-size: 32px;
	font-weight: bold;
	color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
	.menu-toggle {
		display: block;
	}

	.main-navigation ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		padding: 1rem;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	}

	.main-navigation.toggled ul {
		display: flex;
	}

	.entry-title {
		font-size: 28px;
	}

	.site-header .container {
		flex-wrap: wrap;
	}

	.dashboard-stats {
		grid-template-columns: 1fr;
	}
}

/* Utility Classes */
.text-center {
	text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
