/*
Theme Name: FrozenForge
Theme URI: https://frozenforge.net
Description: Custom Minecraft-themed WordPress theme for the FrozenForge PaperMC community, built for speed and SEO.
Author: FrozenForge
Version: 1.0.0
Text Domain: frozenforge
*/

/* ---------- Design tokens ---------- */
:root {
	--ff-bg: #14170f;
	--ff-bg-alt: #1b1f16;
	--ff-panel: #262b1f;
	--ff-panel-border: #3d4530;
	--ff-stone: #4a4a44;
	--ff-grass: #5b9c3f;
	--ff-grass-dark: #3f7a2b;
	--ff-dirt: #7a5230;
	--ff-gold: #e8c15b;
	--ff-diamond: #4fd1e3;
	--ff-redstone: #d1453b;
	--ff-text: #e9ecdf;
	--ff-text-dim: #a9b09a;
	--ff-radius: 4px;
	--ff-pixel-shadow: 0 4px 0 rgba(0,0,0,0.35);
	--ff-font-display: 'Press Start 2P', 'VT323', monospace;
	--ff-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ff-bg);
	background-image:
		radial-gradient(ellipse at top, rgba(91,156,63,0.08), transparent 60%);
	color: var(--ff-text);
	font-family: var(--ff-font-body);
	font-size: 17px;
	line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ff-diamond); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .ff-display {
	font-family: var(--ff-font-display);
	line-height: 1.4;
	letter-spacing: 0.5px;
	color: #fff;
	text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; margin-top: 2.5rem; }
h3 { font-size: 1rem; }

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

/* ---------- Buttons ---------- */
.ff-btn {
	display: inline-block;
	font-family: var(--ff-font-display);
	font-size: 0.75rem;
	color: #fff;
	background: var(--ff-grass);
	border: 2px solid #2e4d1f;
	border-radius: var(--ff-radius);
	padding: 12px 18px;
	box-shadow: var(--ff-pixel-shadow);
	transition: transform 0.08s ease;
}
.ff-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.35); text-decoration: none; }
.ff-btn--gold { background: var(--ff-gold); border-color: #8a6c1f; color: #2b2200; }
.ff-btn--dark { background: var(--ff-stone); border-color: #232323; }
.ff-btn--diamond { background: var(--ff-diamond); border-color: #1f6b74; color: #04262a; }

/* ---------- Header ---------- */
.ff-header {
	background: var(--ff-bg-alt);
	border-bottom: 4px solid var(--ff-panel-border);
	position: sticky;
	top: 0;
	z-index: 50;
}
.ff-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	gap: 16px;
	flex-wrap: wrap;
}
.ff-logo {
	font-family: var(--ff-font-display);
	color: #fff;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	gap: 10px;
}
.ff-logo .ff-logo-icon {
	width: 28px; height: 28px;
	background: linear-gradient(135deg, var(--ff-grass) 0 50%, var(--ff-dirt) 50% 100%);
	border: 2px solid #101a0a;
	border-radius: 3px;
}
.ff-nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.ff-nav li { list-style: none; margin: 0; padding: 0; }
.ff-nav a { color: var(--ff-text); font-size: 0.92rem; }
.ff-nav a:hover { color: var(--ff-gold); text-decoration: none; }
.ff-nav-toggle { display: none; }

.ff-header-status { font-size: 0.8rem; }

@media (max-width: 720px) {
	.ff-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 10px; }
	.ff-nav.is-open { display: flex; }
	.ff-nav-toggle {
		display: inline-block; background: none; border: 2px solid var(--ff-panel-border);
		color: #fff; padding: 6px 10px; border-radius: var(--ff-radius); cursor: pointer;
	}
}

/* ---------- Status card ---------- */
.ff-status-card { display: inline-block; }
.ff-status {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--ff-panel);
	border: 2px solid var(--ff-panel-border);
	border-radius: var(--ff-radius);
	padding: 10px 14px;
}
.ff-status-dot {
	width: 12px; height: 12px; border-radius: 50%;
	background: var(--ff-redstone);
	box-shadow: 0 0 8px var(--ff-redstone);
	flex-shrink: 0;
}
.ff-status--online .ff-status-dot { background: var(--ff-grass); box-shadow: 0 0 8px var(--ff-grass); }
.ff-status-body { display: flex; flex-direction: column; font-size: 0.85rem; line-height: 1.35; }
.ff-status-body strong { color: #fff; font-size: 0.9rem; }
.ff-status-players { color: var(--ff-gold); }
.ff-status-motd { color: var(--ff-text-dim); }
.ff-status-ip {
	background: #0e120a; color: var(--ff-diamond); padding: 4px 8px;
	border-radius: var(--ff-radius); font-size: 0.85rem; margin-left: auto;
	cursor: pointer;
}

/* ---------- Hero ---------- */
.ff-hero {
	padding: 70px 20px 50px;
	text-align: center;
	background:
		linear-gradient(180deg, rgba(20,23,15,0) 0%, var(--ff-bg) 100%),
		repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 40px);
}
.ff-hero h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); margin-bottom: 10px; }
.ff-hero p { color: var(--ff-text-dim); max-width: 560px; margin: 0 auto 26px; font-size: 1.05rem; }
.ff-hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.ff-hero-status { display: flex; justify-content: center; }

/* ---------- Panels / grid ---------- */
.ff-section { padding: 40px 0; }
.ff-panel {
	background: var(--ff-panel);
	border: 2px solid var(--ff-panel-border);
	border-radius: var(--ff-radius);
	padding: 22px;
}
.ff-grid { display: grid; gap: 20px; }
.ff-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ff-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) {
	.ff-grid--3, .ff-grid--2 { grid-template-columns: 1fr; }
}

.ff-feature-icon { font-size: 1.6rem; margin-bottom: 8px; }

.ff-news-item { border-bottom: 1px solid var(--ff-panel-border); padding-bottom: 16px; margin-bottom: 16px; }
.ff-news-item:last-child { border-bottom: none; }
.ff-news-item time { color: var(--ff-text-dim); font-size: 0.8rem; }
.ff-news-item h3 a { color: #fff; }

.ff-tag {
	display: inline-block; font-size: 0.7rem; text-transform: uppercase;
	letter-spacing: 0.5px; background: var(--ff-grass-dark); color: #fff;
	padding: 3px 8px; border-radius: 3px; margin-right: 6px;
}

/* ---------- Footer ---------- */
.ff-footer {
	background: var(--ff-bg-alt);
	border-top: 4px solid var(--ff-panel-border);
	padding: 34px 0;
	margin-top: 40px;
	color: var(--ff-text-dim);
	font-size: 0.9rem;
}
.ff-footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.ff-footer a { color: var(--ff-text-dim); }
.ff-footer a:hover { color: var(--ff-gold); }
.ff-footer-links { display: flex; gap: 16px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.ff-footer-links li { list-style: none; margin: 0; padding: 0; }

/* ---------- Generic content (pages/posts/forums) ---------- */
.ff-content { padding: 40px 0 60px; }
.ff-content article { max-width: 760px; margin: 0 auto; }
.ff-content .ff-panel { max-width: 760px; margin: 0 auto; }
.ff-content img { border-radius: var(--ff-radius); }
.ff-breadcrumb { font-size: 0.8rem; color: var(--ff-text-dim); margin-bottom: 18px; }

/* bbPress: override its bundled light-theme CSS to match the site */
#bbpress-forums { color: var(--ff-text); background: transparent; }
#bbpress-forums a { color: var(--ff-diamond); }
#bbpress-forums a:hover { color: var(--ff-gold); }
#bbpress-forums div.bbp-forum-header,
#bbpress-forums div.bbp-topic-header,
#bbpress-forums div.bbp-reply-header { background: transparent; }
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.forums,
#bbpress-forums ul.topics,
#bbpress-forums ul.replies {
	background: var(--ff-panel);
	border: 2px solid var(--ff-panel-border);
	border-radius: var(--ff-radius);
}
#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
	background: rgba(0,0,0,0.25);
	color: var(--ff-text-dim);
	border-color: var(--ff-panel-border) !important;
	text-transform: uppercase;
	font-size: 0.78rem;
	letter-spacing: 0.5px;
}
#bbpress-forums li.bbp-body > ul,
#bbpress-forums li.bbp-body > div,
#bbpress-forums li.bbp-forum,
#bbpress-forums li.bbp-topic,
#bbpress-forums li.bbp-reply,
#bbpress-forums .even, #bbpress-forums .odd, #bbpress-forums .alt {
	background: transparent !important;
	border-color: var(--ff-panel-border) !important;
	color: var(--ff-text);
}
#bbpress-forums .bbp-topic-count, #bbpress-forums .bbp-reply-count,
#bbpress-forums .bbp-forum-topic-count, #bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-topic-freshness, #bbpress-forums .bbp-forum-freshness {
	color: var(--ff-text-dim) !important;
}
#bbpress-forums fieldset {
	background: var(--ff-panel);
	border: 2px solid var(--ff-panel-border);
	border-radius: var(--ff-radius);
	padding: 16px;
	color: var(--ff-text);
}
#bbpress-forums fieldset legend { color: #fff; }
#bbpress-forums input[type="text"],
#bbpress-forums input[type="password"],
#bbpress-forums input[type="email"],
#bbpress-forums input[type="search"],
#bbpress-forums textarea,
#bbpress-forums select {
	background: #0e120a;
	border: 2px solid var(--ff-panel-border);
	color: var(--ff-text);
	border-radius: var(--ff-radius);
	padding: 8px;
}
#bbpress-forums #bbp-topic-title,
#bbpress-forums #bbp_topic_content,
#bbpress-forums #bbp_reply_content { color: var(--ff-text); }
#bbpress-forums button, #bbpress-forums input[type="submit"] {
	font-family: var(--ff-font-display);
	font-size: 0.75rem;
	color: #fff;
	background: var(--ff-grass);
	border: 2px solid #2e4d1f;
	border-radius: var(--ff-radius);
	padding: 10px 16px;
	cursor: pointer;
}
#bbpress-forums div.bbp-search-form input[type="text"] { color: #14170f; background: #e9ecdf; }
