/* Project: Meme Police Redesign 
    Theme: Modern / Professional / Sharp
    File: styles/style.css
    Version: 3.3 (Targeted Title Styles)
*/

:root {
	/* Modern Dark Color Palette */
	--bg-color: #0f172a;
	/* Deep Slate Background */
	--panel-bg: #1e293b;
	/* Lighter Slate for Cards */
	--text-primary: #f8fafc;
	/* Near White for Headings */
	--text-secondary: #cbd5e1;
	/* Soft Gray for Body Text */
	--accent-color: #3b82f6;
	/* Modern Blue Accent */
	--border-color: #334155;
	/* Subtle Borders */

	/* Typography */
	--font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* UI Elements */
	--radius-sm: 2px;
	/* Sharp, professional corners */
	--radius-md: 4px;
	/* Slightly softened corners for containers */
	--shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
}

/* --- Global Reset & Basics --- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 100%;
	font-family: var(--font-main);
	background-color: var(--bg-color);
	color: var(--text-primary);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	/* Smoother fonts on Mac */
}

body {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 0;
}

/* --- Typography --- */

/* STANDARD H1 (Global Default) */
h1 {
	font-size: 2.5rem;
	/* Standard, readable size */
	text-align: center;
	margin: 0 0 1.5rem 0;
	color: var(--text-primary);
	/* Solid color, no gradient */
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 800;
}

/* HERO H1 (Home Page Only) */
/* Targets the <h1> inside the <header> tag on index.html */
header h1 {
	font-size: clamp(3rem, 7vw, 5rem);
	/* Larger impact size */
	margin-bottom: 2rem;

	/* Stylized Gradient Text */
	background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 50%, #818cf8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;

	letter-spacing: 4px;
	line-height: 1.1;
	filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.3));
}

h2 {
	font-size: 1.75rem;
	color: var(--text-primary);
	border-bottom: 2px solid var(--border-color);
	padding-bottom: 0.75rem;
	margin-top: 0;
	margin-bottom: 1.5rem;
}

h3 {
	font-size: 1.25rem;
	color: var(--accent-color);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 1rem;
}

p,
li {
	font-size: 1.05rem;
	color: var(--text-secondary);
	margin-bottom: 1.25rem;
}

/* Links */
a {
	color: var(--accent-color);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

a:hover {
	color: #60a5fa;
	/* Lighter blue on hover */
	text-decoration: underline;
}

/* --- Navigation --- */

nav {
	margin-bottom: 2rem;
	background-color: var(--panel-bg);
	border-radius: var(--radius-md);
	padding: 1rem;
	box-shadow: var(--shadow-soft);
	border: 1px solid var(--border-color);
}

nav ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

nav li {
	margin: 0;
}

nav a {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 700;
	font-size: 0.9rem;
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
	text-decoration: none;
	/* Reset underline */
	transition: all 0.2s ease;
}

nav a:hover,
nav a.active {
	background-color: var(--accent-color);
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
	/* Subtle lift effect */
}

/* --- Layout Elements (CSS Grid) --- */

.page-layout {
	display: grid;
	gap: 2rem;
	/* Default: 1 column (mobile) */
	grid-template-columns: 1fr;
}

/* Desktop View: Sidebar activates */
@media (min-width: 900px) {
	.page-layout {
		/* Main content takes 2 parts, Sidebar takes 1 part */
		grid-template-columns: 2fr 1fr;
		align-items: start;
	}
}

/* --- Unified Panel Styling --- */
main,
aside {
	background-color: var(--panel-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 2rem;
	box-shadow: var(--shadow-soft);
	overflow: hidden;
}

/* Mobile Adjustment for Padding */
@media (max-width: 600px) {

	main,
	aside {
		padding: 1.5rem;
	}
}

/* --- Images --- */
img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 2rem auto;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-soft);
	transition: transform 0.2s ease;
}

img:hover {
	transform: scale(1.02);
}

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

/* Custom separator */
hr.dossier-break {
	border: 0;
	height: 1px;
	background: var(--border-color);
	margin: 2rem 0;
}

/* Discord Widget Container */
.discord-widget {
	background: rgba(0, 0, 0, 0.2);
	border-radius: var(--radius-sm);
	padding: 0.5rem;
	display: flex;
	justify-content: center;
	margin-top: 1rem;
	border: 1px solid var(--border-color);
}

.discord-widget iframe {
	max-width: 100%;
	border-radius: var(--radius-sm);
}