/**
 * Design Enhancements
 * Additional modern design improvements
 */

/* ============================
   IMPROVED TYPOGRAPHY
   ============================ */
.entry h1, .entry h2, .entry h3, .entry h4, .entry h5, .entry h6 {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	font-weight: 600;
	line-height: 1.3;
	color: #1a1a1a;
}

.entry p {
	margin-bottom: 1.2em;
}

/* Better blockquotes */
blockquote {
	border-left: 4px solid var(--primary-color, #9d0d12);
	padding: 1rem 1.5rem;
	margin: 1.5rem 0;
	background: #f8f8f8;
	font-style: italic;
	border-radius: 4px;
}

blockquote p:last-child {
	margin-bottom: 0;
}

/* Better code blocks */
code {
	background: #f4f4f4;
	padding: 0.2em 0.4em;
	border-radius: 3px;
	font-size: 0.9em;
	font-family: 'Courier New', Courier, monospace;
}

pre {
	background: #f4f4f4;
	padding: 1rem;
	border-radius: 4px;
	overflow-x: auto;
	margin: 1rem 0;
}

pre code {
	background: none;
	padding: 0;
}

/* ============================
   IMPROVED BUTTONS
   ============================ */
.button,
.btn,
input[type="submit"],
button[type="submit"],
.wp-block-button__link {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: var(--primary-color, #9d0d12);
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.button:hover,
.btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.wp-block-button__link:hover {
	background: var(--primary-dark, #820005);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(157, 13, 18, 0.3);
	text-decoration: none;
	color: white;
}

.button:active,
.btn:active,
input[type="submit"]:active {
	transform: translateY(0);
}

/* Button variants */
.button-secondary {
	background: #6c757d;
}

.button-secondary:hover {
	background: #5a6268;
}

.button-outline {
	background: transparent;
	border: 2px solid var(--primary-color, #9d0d12);
	color: var(--primary-color, #9d0d12);
}

.button-outline:hover {
	background: var(--primary-color, #9d0d12);
	color: white;
}

/* ============================
   IMPROVED FORMS
   ============================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--primary-color, #9d0d12);
	box-shadow: 0 0 0 3px rgba(157, 13, 18, 0.1);
}

label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: #333;
}

/* ============================
   IMPROVED TABLES
   ============================ */
table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table th {
	background: var(--primary-color, #9d0d12);
	color: white;
	padding: 1rem;
	text-align: left;
	font-weight: 600;
}

table td {
	padding: 1rem;
	border-bottom: 1px solid #eee;
}

table tr:last-child td {
	border-bottom: none;
}

table tr:hover {
	background: #f8f8f8;
}

/* Responsive tables */
@media screen and (max-width: 767px) {
	table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* ============================
   IMPROVED LISTS
   ============================ */
.entry ul:not(.no-style),
.entry ol:not(.no-style) {
	padding-left: 1.5rem;
	margin: 1rem 0;
}

.entry ul:not(.no-style) li {
	position: relative;
	padding-left: 0.5rem;
	margin-bottom: 0.5rem;
	list-style: none;
}

.entry ul:not(.no-style) li::before {
	content: '▸';
	color: var(--primary-color, #9d0d12);
	position: absolute;
	left: -1.2rem;
	font-weight: bold;
}

.entry ol:not(.no-style) li {
	margin-bottom: 0.5rem;
	padding-left: 0.5rem;
}

/* ============================
   BADGES & LABELS
   ============================ */
.badge,
.label,
.tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	font-size: 0.85rem;
	font-weight: 600;
	border-radius: 20px;
	background: var(--primary-color, #9d0d12);
	color: white;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.badge-secondary {
	background: #6c757d;
}

.badge-success {
	background: #28a745;
}

.badge-warning {
	background: #ffc107;
	color: #333;
}

.badge-info {
	background: #17a2b8;
}

/* ============================
   ALERTS & NOTIFICATIONS
   ============================ */
.alert {
	padding: 1rem 1.5rem;
	border-radius: 4px;
	margin: 1rem 0;
	border-left: 4px solid;
}

.alert-info {
	background: #d1ecf1;
	border-color: #17a2b8;
	color: #0c5460;
}

.alert-success {
	background: #d4edda;
	border-color: #28a745;
	color: #155724;
}

.alert-warning {
	background: #fff3cd;
	border-color: #ffc107;
	color: #856404;
}

.alert-danger {
	background: #f8d7da;
	border-color: #dc3545;
	color: #721c24;
}

/* ============================
   LOADING STATES
   ============================ */
.loading {
	opacity: 0.6;
	pointer-events: none;
	position: relative;
}

.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid var(--primary-color, #9d0d12);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ============================
   UTILITY CLASSES
   ============================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-small { font-size: 0.875rem; }
.text-large { font-size: 1.25rem; }

.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in {
	animation: fadeIn 0.6s ease-out;
}

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

.slide-in {
	animation: slideIn 0.5s ease-out;
}

/* ============================
   WORDPRESS SPECIFIC
   ============================ */
.wp-caption {
	max-width: 100%;
	margin: 1rem 0;
}

.wp-caption-text {
	font-size: 0.875rem;
	color: #666;
	font-style: italic;
	margin-top: 0.5rem;
	text-align: center;
}

.sticky {
	background: #fffef0;
	border: 2px solid #ffc107;
	padding: 0.5rem;
	border-radius: 4px;
}

.bypostauthor .comment {
	background: #f0f8ff;
	border-left: 4px solid var(--primary-color, #9d0d12);
}

/* Gallery improvements */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}

.gallery-item img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

/* ============================
   PRINT IMPROVEMENTS
   ============================ */
@media print {
	.no-print {
		display: none !important;
	}
	
	a[href]:after {
		content: " (" attr(href) ")";
	}
	
	abbr[title]:after {
		content: " (" attr(title) ")";
	}
}
