/* ========================================
   MOBILE RESPONSIVE ADJUSTMENTS
   Mobile-first approach with breakpoints at 768px and 1024px
   ======================================== */

/* ========================================
   SMALL DEVICES - PHONES (up to 479px)
   ======================================== */

@media (max-width: 479px) {
	.container {
		padding: 0 15px;
	}

	h1 {
		font-size: 2.2rem;
	}

	h2 {
		font-size: 1.6rem;
	}

	h3 {
		font-size: 1.5rem;
	}

	.site-header {
	padding: 1rem 0;
}

	.header-content {
		gap: 0.5rem;
		flex-wrap: nowrap;
		padding-bottom: 2rem;
	}

	.site-title {
		font-size: 1.25rem;
	}

	.site-tagline {
		display: none;
	}
	.callout {
		flex-direction: column;
	}
	button.large-button {
		margin: 0 auto;
		position: relative;
		display: block;
	}

	.footer-content {
		grid-template-columns: 1fr;
	}

	.footer-widget {
		padding: 0;
	}

	.sidebar {
		padding: 2rem 0 0;
		border-top: 2px solid #f0f0f0;
	}

	.widget {
		margin-bottom: 1.5rem;
	}

	.entry-title {
		font-size: 2rem;
		margin-top: 1rem;
	}

	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="url"],
	textarea,
	select {
		font-size: 16px;
	}

	.pagination {
		gap: 0.25rem;
	}

	.pagination a,
	.pagination .page-numbers {
		padding: 0.4rem 0.6rem;
		font-size: 0.9rem;
	}

	button, input[type="button"], input[type="submit"] {
		padding: 10px 20px;
		font-size: 0.95rem;
	}
	#Cards {
    flex-wrap: wrap;
	}
}

/* ========================================
   MEDIUM DEVICES - PHONES & SMALL TABLETS (480px - 767px)
   ======================================== */

@media (min-width: 480px) and (max-width: 767px) {
	.container {
		padding: 0 20px;
	}

	.header-content {
		gap: 1rem;
		flex-wrap: nowrap;
	}

	.site-title {
		font-size: 1.4rem;
	}

	.site-tagline {
		display: block;
	}

	.mobile-nav-toggle {
		display: block;
	}

	.main-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: #fff;
		border-bottom: 2px solid #f0f0f0;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
		z-index: 99;
	}

	.main-nav.active {
		display: block;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 0;
		padding: 1rem;
	}

	.main-nav a {
		display: block;
		padding: 0.75rem;
		border-bottom: none;
	}

	.footer-content {
		grid-template-columns: repeat(2, 1fr);
	}

	.sidebar {
		padding: 2rem 0 0;
		border-top: 2px solid #f0f0f0;
	}

	.entry-title {
		font-size: 1.75rem;
	}
	#Cards {
    flex-wrap: wrap;
	}
}

/* ========================================
   LARGE TABLETS & SMALL DESKTOPS (768px - 1023px)
   ======================================== */

@media (min-width: 768px) {


	.main-nav {
		display: block !important;
	}

	.site-header {
		position: relative;
	}

	.sidebar {
		padding: 0;
		border-top: none;
	}

	.comment-list li {
		padding: 1.5rem;
	}

	.comment-list li li {
		margin-left: 2rem;
		margin-top: 1rem;
	}
}

/* ========================================
   MEDIUM TABLETS (768px - 899px)
   ======================================== */

@media (min-width: 768px) and (max-width: 899px) {
	.container {
		max-width: 800px;
		padding: 0 30px;
	}

	.main-nav ul {
		gap: 1rem;
	}

	.main-nav a {
		font-size: 0.95rem;
	}

	.footer-content {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ========================================
   LARGE TABLETS (900px - 1023px)
   ======================================== */

@media (min-width: 900px) and (max-width: 1023px) {
	.container {
		max-width: 1000px;
		padding: 0 40px;
	}

	.footer-content {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ========================================
   DESKTOPS & LARGE SCREENS (1024px+)
   ======================================== */

@media (min-width: 1024px) {
	.container {
		max-width: 1200px;
		padding: 0 40px;
	}

	.site-header {
		position: sticky;
		top: 0;
		z-index: 100;
	}

	.header-content {
		gap: 1rem;
	}

	.site-title {
		font-size: 1.8rem;
	}

	.main-nav ul {
		gap: 1rem;
	}

	.main-nav a {
		font-size: 1rem;
	}

	.sidebar {
		position: sticky;
		top: 120px;
		height: fit-content;
	}

	.footer-content {
		grid-template-columns: repeat(4, 1fr);
		gap: 3rem;
	}

	.footer-widget {
		padding: 0;
	}

	.comment-list li {
		padding: 2rem;
	}

	.comment-list li li {
		margin-left: 3rem;
		margin-top: 2rem;
	}
}

/* ========================================
   EXTRA LARGE SCREENS (1400px+)
   ======================================== */

@media (min-width: 1400px) {
	.container {
		max-width: 1320px;
		padding: 0 60px;
	}

	h1 {
		font-size: 3.5rem;
	}

	h2 {
		font-size: 2.75rem;
	}

	h3 {
		font-size: 2.25rem;
	}

	.main-nav ul {
		gap: 1rem;
	}

	.footer-content {
		gap: 4rem;
	}
}

/* ========================================
   LANDSCAPE ORIENTATION ON SMALL DEVICES
   ======================================== */

@media (max-height: 500px) and (orientation: landscape) {
	.site-header {
		padding: 0.75rem 0;
	}

	main {
		min-height: auto;
	}
}

/* ========================================
   HIGH DPI / RETINA DISPLAYS
   ======================================== */

@media (min-device-pixel-ratio: 2) and (max-width: 1023px) {
	body {
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}
}

/* ========================================
   FORCED COLORS MODE (Accessibility)
   ======================================== */

@media (forced-colors: active) {
	a {
		text-decoration: underline;
	}

	button,
	input[type="button"],
	input[type="submit"] {
		border: 2px solid;
	}
}

/* ========================================
   PREFERS REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ========================================
   DARK MODE SUPPORT (Future Enhancement)
   ======================================== */

@media (prefers-color-scheme: dark) {
	/* Theme would support dark mode preferences here */
}
