/**
 * Hand-Drawn & Sketchy Design System
 * Fuel4Ultra Theme
 */

/* ===========================
   HAND-DRAWN BORDERS & EFFECTS
   =========================== */

/* Sketchy border effect using SVG filters */
.sketchy-border,
.post-grid-item,
.widget,
.comment-respond,
.search-form,
button:not(.menu-toggle):not(.search-toggle) {
	position: relative;
	border: 3px solid var(--border-color, #333);
	border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
	box-shadow:
		3px 3px 0 rgba(0, 0, 0, 0.1),
		-1px -1px 0 rgba(0, 0, 0, 0.05);
}

.sketchy-border-light {
	border-width: 2px;
	border-radius: 225px 15px 255px 25px/25px 255px 15px 225px;
}

/* Rough edges effect */
.rough-edges {
	clip-path: polygon(0% 2%, 2% 0%, 98% 0%, 100% 2%,
			100% 98%, 98% 100%, 2% 100%, 0% 98%);
}

/* Hand-drawn underline */
.hand-underline,
.entry-title a:hover,
.widget-title,
h1,
h2,
h3 {
	position: relative;
	display: inline-block;
}

.hand-underline::after,
.entry-title a:hover::after {
	content: '';
	position: absolute;
	left: -2px;
	right: -2px;
	bottom: -5px;
	height: 3px;
	background: currentColor;
	border-radius: 50%;
	transform: scaleX(1.05) rotate(-0.5deg);
	opacity: 0.7;
}

/* Sketchy highlight effect */
.sketchy-highlight {
	position: relative;
	z-index: 1;
}

.sketchy-highlight::before {
	content: '';
	position: absolute;
	top: 50%;
	left: -5px;
	right: -5px;
	height: 60%;
	background: var(--accent-color);
	opacity: 0.3;
	z-index: -1;
	transform: translateY(-50%) rotate(-1deg);
	border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}

/* ===========================
   HAND-DRAWN BUTTONS
   =========================== */

button,
.button,
input[type="submit"],
.wp-block-button__link,
.more-link {
	position: relative;
	padding: 12px 24px;
	font-family: 'Caveat', cursive;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border: 3px solid currentColor;
	border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
	background: transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

button:hover,
.button:hover,
input[type="submit"]:hover,
.more-link:hover {
	transform: translate(-2px, -2px) rotate(-1deg);
	box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
}

button:active,
.button:active,
input[type="submit"]:active {
	transform: translate(1px, 1px);
	box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

/* ===========================
   WIRED.COM-INSPIRED GRID LAYOUTS
   =========================== */

/* Featured Posts Grid - Large + 2 Small */
.featured-posts-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin-bottom: 60px;
}

.featured-post-large {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	padding: 30px;
}

.featured-post-small {
	padding: 20px;
}

/* Posts Grid - Masonry-style */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 40px;
	margin-bottom: 60px;
}

.post-grid-item {
	padding: 20px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-grid-item:hover {
	transform: translateY(-5px) rotate(0.5deg);
	box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

/* ===========================
   HAND-DRAWN TYPOGRAPHY
   =========================== */

/* Heading styles with hand-drawn feel */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Permanent Marker', cursive;
	line-height: 1.2;
	letter-spacing: 0.5px;
	margin-bottom: 1em;
}

h1 {
	font-size: clamp(2.5rem, 5vw, 4rem);
	transform: rotate(-1deg);
}

h2 {
	font-size: clamp(2rem, 4vw, 3rem);
	transform: rotate(0.5deg);
}

h3 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	transform: rotate(-0.5deg);
}

/* Body text with clean reading */
body {
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	line-height: 1.7;
	color: #1a1a1a;
}

/* Hand-written accent text */
.accent-text,
.post-meta,
.breadcrumbs,
.trending-bar {
	font-family: 'Caveat', cursive;
	font-size: 20px;
	font-weight: 600;
}

/* ===========================
   SKETCHY ARROWS & ICONS
   =========================== */

/* Arrow decorations */
.arrow-right::after,
.more-link::after,
.next::after {
	content: '→';
	display: inline-block;
	margin-left: 8px;
	transform: rotate(-5deg);
	transition: transform 0.2s ease;
}

.arrow-left::before,
.prev::before {
	content: '←';
	display: inline-block;
	margin-right: 8px;
	transform: rotate(5deg);
	transition: transform 0.2s ease;
}

.more-link:hover::after {
	transform: translateX(5px) rotate(-5deg);
}

/* ===========================
   HAND-DRAWN CATEGORIES/TAGS
   =========================== */

.post-categories a,
.post-tags a,
.cat-links a,
.tags-links a {
	display: inline-block;
	padding: 6px 14px;
	margin: 4px;
	font-family: 'Caveat', cursive;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid currentColor;
	border-radius: 225px 15px 255px 15px/15px 255px 15px 225px;
	transition: all 0.2s ease;
	transform: rotate(-1deg);
}

.post-categories a:hover,
.post-tags a:hover {
	transform: rotate(1deg) scale(1.05);
	background: var(--accent-color);
	color: #fff;
}

/* ===========================
   SKETCHY DIVIDERS
   =========================== */

.sketchy-divider,
hr {
	border: 0;
	height: 3px;
	background: currentColor;
	margin: 40px 0;
	transform: rotate(-0.5deg) scaleX(1.02);
	border-radius: 50%;
	opacity: 0.3;
}

/* Decorative doodles */
.doodle-separator {
	text-align: center;
	margin: 60px 0;
	font-size: 32px;
	transform: rotate(-5deg);
	opacity: 0.6;
}

/* ===========================
   HAND-DRAWN CARDS & BOXES
   =========================== */

.content-box,
.info-box,
blockquote {
	position: relative;
	padding: 30px;
	margin: 30px 0;
	border: 3px solid var(--border-color, #333);
	border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
	background: #fff;
	box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
}

blockquote {
	font-family: 'Caveat', cursive;
	font-size: 24px;
	font-style: italic;
	border-left: 6px solid var(--accent-color);
	transform: rotate(-0.5deg);
}

blockquote::before {
	content: '"';
	font-size: 60px;
	position: absolute;
	top: -10px;
	left: 10px;
	opacity: 0.3;
	font-family: 'Permanent Marker', cursive;
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
   =========================== */

@media (max-width: 768px) {
	.featured-posts-grid {
		grid-template-columns: 1fr;
	}

	.featured-post-large {
		grid-template-columns: 1fr;
	}

	.posts-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	h1 {
		font-size: 2.5rem;
	}

	h2 {
		font-size: 2rem;
	}

	body {
		font-size: 16px;
	}
}

/* ===========================
   ANIMATION & HOVER EFFECTS
   =========================== */

@keyframes wiggle {

	0%,
	100% {
		transform: rotate(-1deg);
	}

	50% {
		transform: rotate(1deg);
	}
}

.wiggle-on-hover:hover {
	animation: wiggle 0.3s ease-in-out;
}

/* Scribble effect on hover */
.scribble-hover {
	position: relative;
	transition: transform 0.2s ease;
}

.scribble-hover::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: 0;
	height: 2px;
	background: currentColor;
	transform: scaleX(0) rotate(-2deg);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.scribble-hover:hover::after {
	transform: scaleX(1) rotate(-2deg);
}
