/* =================================================================
   ReefDudes — Final polish
   Small fixes, conflict patches, and quality-of-life details.
   ================================================================= */

/* -------------------------------------------------------
   Body box-wrapper edges
   Uncode renders body-borders even when boxed=false. Hide
   them so the gradient page wash reaches the viewport edge.
   ------------------------------------------------------- */
body.theme-uncode .body-borders { display: none; }

/* -------------------------------------------------------
   Logo container — keep the existing PNG sharp on retina
   until the SVG re-export ships. (See README for details.)
   ------------------------------------------------------- */
body.theme-uncode .navbar-brand .logo-image img {
	image-rendering: -webkit-optimize-contrast;
	max-width: none;
}

/* -------------------------------------------------------
   Scroll-to-top arrow — pick up the brand
   ------------------------------------------------------- */
body.theme-uncode .footer-scroll-top a {
	color: var(--accent);
}
body.theme-uncode .footer-scroll-top a:hover {
	color: var(--accent-hover);
}
body.theme-uncode .footer-scroll-top .btn-default {
	background: var(--panel);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-card);
}

/* -------------------------------------------------------
   Live search results dropdown (Daves WP Live Search)
   ------------------------------------------------------- */
body.theme-uncode .dwls_search_results {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 6px;
	box-shadow: var(--shadow-card);
}
body.theme-uncode .dwls_search_results li a {
	color: var(--text);
}
body.theme-uncode .dwls_search_results li:hover a,
body.theme-uncode .dwls_search_results li.daves-wordpress-live-search_selected a {
	background: var(--accent-soft);
	color: var(--accent);
}

/* -------------------------------------------------------
   Flow-Flow social wall — calmer card chrome, brand link color
   ------------------------------------------------------- */
.ff-stream .ff-item {
	border-radius: 8px !important;
	border: 1px solid var(--border) !important;
	box-shadow: var(--shadow-card) !important;
}
.ff-stream .ff-item-bar a,
.ff-stream .ff-content a {
	color: var(--accent) !important;
}
.ff-stream .ff-item-bar a:hover,
.ff-stream .ff-content a:hover {
	color: var(--accent-hover) !important;
}

/* -------------------------------------------------------
   Print styles — keep brand on print, drop heavy bg
   ------------------------------------------------------- */
@media print {
	body.theme-uncode {
		background: #ffffff !important;
		color: #000000;
	}
	.menu-wrapper,
	.rd-footer,
	.footer-scroll-top {
		display: none !important;
	}
}

/* -------------------------------------------------------
   Reduced motion
   ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	body.theme-uncode *,
	body.theme-uncode *::before,
	body.theme-uncode *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
