/* =========================================================
   WorldofPC — modern site footer
   Replaces the legacy widget/trending footer. Loaded site-wide
   AFTER dark-theme.css so it overrides the parent's footer skin.
   Scoped under .wopc-footer so its specificity beats the
   dark-theme `footer { ... !important }` rules.
   ========================================================= */

.wopc-footer {
	position: relative;
	/* Boxed to the site content width (1180px) and centred, so the footer lines
	   up with the header bar and the homepage grid instead of running full-bleed. */
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	box-sizing: border-box;
	background: #0a0e19 !important;
	/* soft purple glow rising from the top edge */
	background-image: radial-gradient(85% 130% at 50% 0%, rgba(139, 92, 246, .15) 0%, rgba(10, 14, 25, 0) 58%) !important;
	color: #c3cadd !important;
	border-top: 1px solid rgba(255, 255, 255, .07);
	overflow: hidden;
	font-family: 'Droid Sans', Helvetica, Arial, sans-serif;
	float: none;
	width: auto;
}
/* thin tri-colour accent line across the very top */
.wopc-footer::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, #fd0005 0%, #8b5cf6 50%, #22d3ee 100%);
}

.wopc-footer-inner {
	width: 100%;
	margin: 0 auto;
	padding: 0 15px;            /* match .articles-content's side gutter */
	box-sizing: border-box;
}

/* ---- Main columns ---- */
.wopc-footer-main { padding: 52px 0 40px; }
.wopc-footer-main .wopc-footer-inner {
	display: grid;
	grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
	gap: 42px;
}
.wopc-foot-col { min-width: 0; }

/* Brand */
.wopc-foot-logo { display: inline-block; line-height: 0; }
.wopc-foot-logo img { max-width: 185px; width: auto; height: auto; display: block; }
.wopc-foot-about {
	margin: 18px 0 22px;
	max-width: 360px;
	font-size: 13.5px;
	line-height: 1.75;
	color: #99a1b8;
}

/* Social — reuse the theme's .footer-social list, restyled as round buttons */
.wopc-foot-social .footer-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.wopc-foot-social .footer-social li { margin: 0; padding: 0; float: none; }
.wopc-foot-social .footer-social li a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .055);
	border: 1px solid rgba(255, 255, 255, .1);
	color: #c3cadd !important;
	transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.wopc-foot-social .footer-social li a i { font-size: 16px; line-height: 1; }
/* hide the text labels (Reddit, Facebook…) — keep accessible */
.wopc-foot-social .footer-social li a span {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.wopc-foot-social .footer-social li a:hover {
	transform: translateY(-3px);
	background: #8b5cf6;
	border-color: #8b5cf6;
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(139, 92, 246, .4);
}

/* ---- Column titles ---- */
.wopc-foot-title {
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #f1f3fa;
	position: relative;
	padding-bottom: 11px;
}
.wopc-foot-title::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 34px; height: 2px;
	border-radius: 2px;
	background: #8b5cf6;
}

/* ---- Link lists (quick links + categories) ---- */
.wopc-foot-links { list-style: none; margin: 0; padding: 0; }
.wopc-foot-links li { margin: 0 0 12px; }
.wopc-foot-links li a {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #99a1b8 !important;
	text-decoration: none;
	font-size: 13.5px;
	line-height: 1.4;
	transition: color .2s ease, transform .2s ease;
}
.wopc-foot-links li a::before {
	content: "\203A";            /* › */
	color: #8b5cf6;
	font-weight: 800;
	font-size: 15px;
	line-height: 1;
}
.wopc-foot-links li a:hover { color: #fff !important; transform: translateX(3px); }
.wopc-foot-count {
	margin-left: auto;
	font-size: 11px;
	font-weight: 700;
	color: #7c849c;
	background: rgba(255, 255, 255, .06);
	border-radius: 999px;
	padding: 1px 9px;
}

/* ---- Latest releases (thumb + title) ---- */
.wopc-foot-posts { list-style: none; margin: 0; padding: 0; }
.wopc-foot-posts li { margin: 0 0 15px; }
.wopc-foot-post { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.wopc-foot-thumb {
	flex: none;
	width: 68px; height: 42px;
	border-radius: 7px;
	overflow: hidden;
	background: #1c2438;
	display: block;
}
.wopc-foot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.wopc-foot-post:hover .wopc-foot-thumb img { transform: scale(1.09); }
.wopc-foot-metawrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wopc-foot-post-title {
	color: #cdd3e3;
	font-size: 12.8px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .2s ease;
}
.wopc-foot-post:hover .wopc-foot-post-title { color: #fff; }
.wopc-foot-post-date { color: #6b7390; font-size: 11px; }

/* ---- Bottom bar ---- */
.wopc-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .07);
	background: rgba(0, 0, 0, .28);
}
.wopc-footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 28px;
	padding-top: 18px;
	padding-bottom: 18px;
}
.wopc-foot-copy { margin: 0; font-size: 12.5px; font-weight: 600; color: #aab1c6 !important; }
.wopc-foot-copy a { color: #b79bff !important; text-decoration: none; }
.wopc-foot-copy a:hover { color: #fff !important; }
.wopc-foot-disclaimer {
	margin: 0;
	flex: 1 1 320px;
	text-align: right;
	font-size: 11.5px;
	line-height: 1.5;
	color: #6b7390;
}

/* ---- Floating back-to-top ---- */
#back-top.wopc-back-top {
	position: fixed;
	right: 22px; bottom: 22px;
	z-index: 999;
	width: 46px; height: 46px;
	margin: 0; padding: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: opacity .3s ease, transform .3s ease;
}
#back-top.wopc-back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
#back-top.wopc-back-top a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%; height: 100%;
	border-radius: 50%;
	background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
	color: #fff !important;
	box-shadow: 0 10px 24px rgba(139, 92, 246, .45);
	transition: transform .2s ease, box-shadow .2s ease;
}
#back-top.wopc-back-top a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(139, 92, 246, .6); }
#back-top.wopc-back-top svg {
	width: 20px; height: 20px;
	fill: none; stroke: currentColor;
	stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
	.wopc-footer-main .wopc-footer-inner { grid-template-columns: 1fr 1fr; gap: 34px 30px; }
	.wopc-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.wopc-footer-main { padding: 40px 0 30px; }
	.wopc-footer-main .wopc-footer-inner { grid-template-columns: 1fr; gap: 32px; }
	.wopc-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
	.wopc-foot-disclaimer { text-align: left; flex-basis: auto; }
	#back-top.wopc-back-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
