/* ============================================================
   FPS THEME – components.css
   Supplemental styles: animations, widgets, search, pagination
   ============================================================ */

/* SCROLL REVEAL */
.fps-reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}
.fps-reveal.fps-visible {
	opacity: 1;
	transform: translateY(0);
}

/* PAGINATION */
.fps-pagination .nav-links {
	display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2rem;
}
.fps-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 8px;
	border: 1.5px solid var(--fps-border);
	color: var(--fps-text-muted); text-decoration: none; font-size: 14px; font-weight: 500;
	transition: var(--fps-transition); background: var(--fps-white);
}
.fps-pagination .page-numbers:hover { border-color: var(--fps-primary); color: var(--fps-primary); }
.fps-pagination .page-numbers.current { background: var(--fps-primary); color: #fff; border-color: var(--fps-primary); }
.fps-pagination .page-numbers.prev,
.fps-pagination .page-numbers.next { width: auto; padding: 0 1rem; }

/* SEARCH FORM */
.search-form {
	display: flex; gap: 0; max-width: 480px;
}
.search-form label { flex: 1; }
.search-field {
	width: 100%; padding: 0.75rem 1rem;
	border: 1.5px solid var(--fps-border); border-right: none;
	border-radius: 8px 0 0 8px;
	font-family: var(--fps-font-body); font-size: 15px;
	background: var(--fps-bg); color: var(--fps-text); outline: none;
}
.search-field:focus { border-color: var(--fps-primary); }
.search-submit {
	background: var(--fps-primary); color: #fff;
	border: none; padding: 0 1.2rem; border-radius: 0 8px 8px 0;
	font-family: var(--fps-font-body); font-size: 14px; font-weight: 600;
	cursor: pointer; transition: background 0.2s;
	white-space: nowrap;
}
.search-submit:hover { background: var(--fps-primary-mid); }

/* WIDGET STYLES */
.fps-widget { margin-bottom: 2rem; }
.fps-widget__title {
	font-size: 16px; font-weight: 700; margin-bottom: 1rem;
	padding-bottom: 0.5rem; border-bottom: 2px solid var(--fps-primary-light);
	color: var(--fps-text);
}
.fps-widget ul { list-style: none; padding: 0; }
.fps-widget ul li {
	padding: 0.4rem 0; border-bottom: 1px solid var(--fps-border);
	font-size: 14px; color: var(--fps-text-muted);
}
.fps-widget ul li a { color: var(--fps-text-muted); text-decoration: none; }
.fps-widget ul li a:hover { color: var(--fps-primary); }

/* COMMENTS */
.comment-list { list-style: none; padding: 0; margin: 2rem 0; }
.comment { padding: 1.2rem; border: 1px solid var(--fps-border); border-radius: var(--fps-radius); margin-bottom: 1rem; background: var(--fps-white); }
.comment-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 0.8rem; }
.comment-author .fn { font-weight: 600; font-size: 14px; }
.comment-metadata { font-size: 12px; color: var(--fps-text-muted); }
.comment-content p { font-size: 15px; color: var(--fps-text-muted); margin: 0; }
.comment-reply-link { font-size: 13px; color: var(--fps-primary); font-weight: 600; text-decoration: none; }

/* COMMENT FORM */
.comment-form-comment label, .comment-form-author label,
.comment-form-email label, .comment-form-url label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.comment-form-comment textarea,
.comment-form-author input, .comment-form-email input, .comment-form-url input {
	width: 100%; padding: 0.75rem 1rem;
	border: 1.5px solid var(--fps-border); border-radius: 8px;
	font-family: var(--fps-font-body); font-size: 15px;
	background: var(--fps-bg); outline: none; transition: border-color 0.2s;
}
.comment-form-comment textarea:focus,
.comment-form-author input:focus, .comment-form-email input:focus { border-color: var(--fps-primary); }
.comment-form-comment textarea { height: 120px; resize: vertical; }
#submit {
	background: var(--fps-primary); color: #fff;
	border: none; padding: 0.8rem 1.8rem; border-radius: 8px;
	font-family: var(--fps-font-body); font-size: 15px; font-weight: 600;
	cursor: pointer; transition: background 0.2s;
}
#submit:hover { background: var(--fps-primary-mid); }

/* POST NAVIGATION */
.fps-post-nav a { color: var(--fps-primary); text-decoration: none; font-weight: 600; font-size: 15px; }
.fps-post-nav a:hover { text-decoration: underline; }

/* TABLE STYLES (editor) */
.fps-entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.fps-entry-content th { background: var(--fps-primary); color: #fff; padding: 0.75rem 1rem; text-align: left; }
.fps-entry-content td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--fps-border); }

/* BLOCKQUOTE (editor) */
.fps-entry-content blockquote {
	border-left: 4px solid var(--fps-primary);
	padding: 1rem 1.5rem; margin: 1.5rem 0;
	background: var(--fps-primary-light);
	border-radius: 0 var(--fps-radius) var(--fps-radius) 0;
	font-style: italic; color: var(--fps-text-muted);
}

/* NOTICE TYPE ARCHIVE */
.fps-notices-archive .fps-notice { margin-bottom: 0.75rem; }

/* STAFF GRID */
.fps-staff-archive .fps-grid-4 { margin-top: 2rem; }

/* PAGE SPECIFIC HERO COLOURS */
.fps-page-hero--about  { background: linear-gradient(135deg, #041f1b 0%, #0a5c36 100%); }
.fps-page-hero--blog   { background: linear-gradient(135deg, #1a0a00 0%, #8a5a00 100%); }
.fps-page-hero--dark   { background: linear-gradient(135deg, #0d0d1a 0%, #1a1a5c 100%); }

/* WP EDITOR ALIGNMENT */
.alignleft  { float: left;  margin: 0.5rem 1.5rem 0.5rem 0; }
.alignright { float: right; margin: 0.5rem 0 0.5rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; text-align: center; }
.alignwide  { max-width: 1300px; margin-inline: auto; }
.alignfull  { width: 100vw; margin-inline: calc(-50vw + 50%); }

/* RESPONSIVE SIDEBAR */
@media (max-width: 900px) {
	#fps-main .fps-container > div[style*="grid-template-columns:1fr 300px"],
	#fps-main .fps-container > div[style*="grid-template-columns:1fr 280px"] {
		grid-template-columns: 1fr !important;
	}
	.fps-sidebar { display: none; }
}

/* HIGH CONTRAST MODE */
@media (forced-colors: active) {
	.fps-btn, .fps-btn--primary, .fps-btn--outline { border: 2px solid ButtonText; }
	.fps-card { border: 1px solid ButtonText; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.fps-reveal { opacity: 1; transform: none; }
}
