/**
 * Adonai Yeshua Theme - Custom Styles
 * Additional styles beyond style.css
 */

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.animate-in {
	animation: fadeInUp 0.6s ease-out forwards;
}

/* ============================================
   Search Modal
   ============================================ */

.search-modal {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.search-modal-content {
	background-color: white;
	border-radius: 0.65rem;
	padding: 2rem;
	max-width: 500px;
	width: 90%;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.search-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	color: var(--foreground);
	transition: color 0.2s ease-out;
}

.search-modal-close:hover {
	color: var(--primary-text);
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin: 3rem 0;
	flex-wrap: wrap;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.5rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--foreground);
	text-decoration: none;
	transition: all 0.2s ease-out;
}

.pagination a:hover {
	background-color: var(--primary);
	color: var(--foreground);
	border-color: var(--primary);
}

.pagination .current {
	background-color: var(--primary);
	color: var(--foreground);
	border-color: var(--primary);
}

/* ============================================
   Comments
   ============================================ */

.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

.must-log-in {
	background-color: rgba(200, 155, 60, 0.08);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--spacing-lg);
	font-size: 0.9375rem;
}

.must-log-in a {
	font-weight: 600;
}

.comment-list {
	list-style: none;
	margin: 2rem 0;
}

.comment-list li {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background-color: var(--muted);
	border-radius: var(--radius);
}

.comment-author {
	font-weight: 600;
	color: var(--secondary);
	margin-bottom: 0.5rem;
}

.comment-date {
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

.comment-text {
	margin-top: 1rem;
	line-height: 1.6;
}

/* ============================================
   Forms
   ============================================ */

.comment-form {
	margin-top: 2rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
	margin-bottom: 1.5rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.comment-form textarea {
	min-height: 150px;
	resize: vertical;
}

/* ============================================
   Breadcrumbs
   ============================================ */

.breadcrumbs {
	font-size: 0.875rem;
	color: var(--muted-foreground);
	margin-bottom: 1.5rem;
}

.breadcrumbs a {
	color: var(--primary-text);
	text-decoration: none;
	transition: color 0.2s ease-out;
}

.breadcrumbs a:hover {
	color: var(--secondary);
	text-decoration: underline;
}

.breadcrumbs span {
	margin: 0 0.5rem;
}

/* ============================================
   Widgets
   ============================================ */

.widget {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background-color: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.widget-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--secondary);
	margin-bottom: 1rem;
	border-bottom: 2px solid var(--primary);
	padding-bottom: 0.5rem;
}

.widget ul {
	list-style: none;
}

.widget li {
	margin-bottom: 0.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border);
}

.widget li:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.widget a {
	color: var(--primary-text);
	text-decoration: none;
	transition: color 0.2s ease-out;
}

.widget a:hover {
	color: var(--secondary);
	text-decoration: underline;
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
	margin-top: 2rem;
}

@media (min-width: 768px) {
	.with-sidebar {
		display: grid;
		grid-template-columns: 1fr 300px;
		gap: 2rem;
	}

	.sidebar {
		margin-top: 0;
	}
}

/* ============================================
   Responsive Images
   ============================================ */

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5rem;
}

.wp-caption img {
	display: block;
	margin-bottom: 0.5rem;
}

.wp-caption-text {
	font-size: 0.875rem;
	color: var(--muted-foreground);
	font-style: italic;
}

/* ============================================
   Tables
   ============================================ */

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

table th,
table td {
	padding: 0.75rem;
	border: 1px solid var(--border);
	text-align: left;
}

table th {
	background-color: var(--muted);
	font-weight: 600;
	color: var(--secondary);
}

table tr:nth-child(even) {
	background-color: rgba(200, 155, 60, 0.02);
}

/* ============================================
   Code Blocks
   ============================================ */

code {
	background-color: var(--muted);
	padding: 0.2rem 0.4rem;
	border-radius: 0.25rem;
	font-family: 'Courier New', monospace;
	font-size: 0.875rem;
	color: var(--secondary);
}

pre {
	background-color: var(--muted);
	padding: 1rem;
	border-radius: var(--radius);
	overflow-x: auto;
	margin: 1.5rem 0;
}

pre code {
	background-color: transparent;
	padding: 0;
	color: var(--foreground);
}

/* ============================================
   Blockquotes
   ============================================ */

blockquote {
	border-left: 4px solid var(--primary);
	padding-left: 1.5rem;
	margin: 1.5rem 0;
	font-style: italic;
	color: var(--muted-foreground);
}

/* ============================================
   Lists
   ============================================ */

ul,
ol {
	margin: 1.5rem 0;
	padding-left: 2rem;
}

li {
	margin-bottom: 0.5rem;
}

/* ============================================
   Mobile Menu
   ============================================ */

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: white;
		flex-direction: column;
		padding: 1rem;
		border-bottom: 1px solid var(--border);
	}

	.site-nav.active {
		display: flex;
	}

	.site-nav a {
		padding: 0.5rem 0;
	}
}

/* ============================================
   Accessibility
   ============================================ */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
	outline: 2px solid var(--primary-text);
	outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
	body {
		background-color: white;
		color: black;
	}

	a {
		color: black;
		text-decoration: underline;
	}

	.site-header,
	.site-footer,
	.navigation,
	.comments-area {
		display: none;
	}

	.post-content {
		max-width: 100%;
	}
}
