/* ============================================================
   EZCookbook Frontend Styles — v1.0.1
   ============================================================ */

/* ---- Wrap & Controls ---- */
.ezcb-wrap {
	font-family: Georgia, 'Times New Roman', serif;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 12px;
}

.ezcb-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.ezcb-search {
	flex: 1;
	min-width: 200px;
	padding: 9px 14px;
	border: 1px solid #c8b89a;
	border-radius: 4px;
	font-family: Georgia, serif;
	font-size: 1.05rem;
	background: #fdf9f4;
	color: #3d2b1f;
}
.ezcb-search:focus {
	outline: none;
	border-color: #8B6914;
	box-shadow: 0 0 0 2px rgba(139,105,20,0.15);
}

.ezcb-submit-btn {
	padding: 9px 20px;
	background: #5a3e28;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-family: Georgia, serif;
	font-size: 1.05rem;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}
.ezcb-submit-btn:hover { background: #3d2b1f; }

/* ---- Category Filter Row ---- */
.ezcb-cat-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 20px;
}

.ezcb-cat-btn {
	padding: 6px 16px;
	border: 1px solid #c8b89a;
	border-radius: 20px;
	background: #fdf9f4;
	color: #5a3e28;
	font-family: Georgia, serif;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ezcb-cat-btn:hover {
	background: #f5e8d0;
	border-color: #8B6914;
}
.ezcb-cat-btn.ezcb-cat-active {
	background: #5a3e28;
	border-color: #5a3e28;
	color: #fff;
}

/* ---- Recipe Table ---- */
.ezcb-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.05rem;
}
.ezcb-table thead tr { border-bottom: 2px solid #8B6914; }
.ezcb-table th {
	text-align: left;
	padding: 8px 12px;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #5a3e28;
	font-weight: normal;
}
.ezcb-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e8ddd0;
	color: #3d2b1f;
	vertical-align: middle;
}
.ezcb-table tr:last-child td { border-bottom: none; }
.ezcb-table tr:hover td { background: #fdf6e8; }

.ezcb-recipe-link {
	color: #5a3e28;
	text-decoration: none;
	font-style: italic;
}
.ezcb-recipe-link:hover {
	color: #8B6914;
	text-decoration: underline;
}

.ezcb-empty,
.ezcb-no-results {
	text-align: center;
	padding: 32px;
	color: #7a6350;
	font-style: italic;
	font-size: 1.05rem;
}

/* ---- Overlay / Modal base ---- */
.ezcb-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(40,24,10,0.65);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.ezcb-modal {
	position: relative;
	background: #fdf6e3;
	border: 3px double #8B6914;
	box-shadow: 0 0 0 1px #c8a96e, 0 6px 30px rgba(40,20,5,0.5);
	border-radius: 2px;
	max-height: 90vh;
	overflow-y: auto;
	width: 100%;
	max-width: 680px;
	box-sizing: border-box;
}

/* ---- Recipe Display Modal ---- */
.ezcb-recipe-header {
	text-align: center;
	padding: 30px 30px 20px;
	border-bottom: 1px solid #c8a96e;
	background: #faf0d3;
}

.ezcb-recipe-svg {
	width: 120px;
	height: 120px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ezcb-recipe-svg svg { width: 100%; height: 100%; }

.ezcb-recipe-title {
	font-family: Georgia, serif;
	font-size: 1.9rem;
	font-style: italic;
	color: #3d2b1f;
	margin: 0 0 8px;
	line-height: 1.2;
}

.ezcb-recipe-submitter {
	font-size: 1rem;
	color: #6B4C2A;
	font-style: italic;
	margin: 0 0 4px;
}

.ezcb-recipe-servings {
	font-size: 1rem;
	color: #7a6350;
	margin: 0;
}

.ezcb-recipe-body { padding: 24px 36px; }

.ezcb-section-head {
	font-family: Georgia, serif;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #5a3e28;
	border-bottom: 1px solid #c8a96e;
	padding-bottom: 5px;
	margin: 24px 0 14px;
}
.ezcb-section-head:first-child { margin-top: 0; }

.ezcb-ingredients p {
	margin: 5px 0;
	font-size: 1.05rem;
	line-height: 1.7;
	color: #3d2b1f;
}

.ezcb-instructions {
	font-size: 1.05rem;
	line-height: 1.9;
	color: #3d2b1f;
	white-space: pre-wrap;
}

.ezcb-note-section {
	margin-top: 24px;
	padding: 16px 20px;
	background: #f5e8c8;
	border-left: 3px solid #c8a96e;
}
.ezcb-note-label {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #7a6350;
	margin: 0 0 6px;
}
.ezcb-note {
	font-style: italic;
	color: #5a3e28;
	font-size: 1.05rem;
	line-height: 1.75;
}

.ezcb-recipe-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 36px;
	border-top: 1px solid #c8a96e;
	background: #faf0d3;
	gap: 12px;
}

.ezcb-btn-print {
	padding: 9px 22px;
	background: transparent;
	border: 1px solid #8B6914;
	color: #5a3e28;
	border-radius: 4px;
	font-family: Georgia, serif;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.ezcb-btn-print:hover { background: #5a3e28; color: #fff; }

.ezcb-btn-close {
	padding: 9px 22px;
	background: #5a3e28;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-family: Georgia, serif;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.15s;
}
.ezcb-btn-close:hover { background: #3d2b1f; }

/* ---- Submission Modal ---- */
.ezcb-submit-modal {
	max-width: 600px;
	padding: 32px 36px;
}

.ezcb-modal-x {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 1.6rem;
	color: #7a6350;
	cursor: pointer;
	line-height: 1;
	padding: 0 4px;
}
.ezcb-modal-x:hover { color: #3d2b1f; }

.ezcb-submit-title {
	font-family: Georgia, serif;
	font-size: 1.6rem;
	font-style: italic;
	color: #3d2b1f;
	margin: 0 0 6px;
	padding-right: 28px;
}

.ezcb-submit-intro {
	font-size: 1rem;
	color: #7a6350;
	margin: 0 0 20px;
}

.ezcb-submit-msg {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 1rem;
}
.ezcb-submit-success {
	background: #e8f5e9;
	border: 1px solid #81c784;
	color: #2e7d32;
	text-align: center;
	padding: 24px;
	font-size: 1.05rem;
}
.ezcb-submit-error {
	background: #fdecea;
	border: 1px solid #e57373;
	color: #c62828;
}

/* Honeypot - visually hidden from humans */
.ezcb-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

.ezcb-form .ezcb-field { margin-bottom: 18px; }

.ezcb-form label {
	display: block;
	font-size: 0.9rem;
	color: #5a3e28;
	margin-bottom: 5px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.ezcb-form .req { color: #c62828; }

.ezcb-form input[type="text"],
.ezcb-form select,
.ezcb-form textarea {
	width: 100%;
	padding: 9px 13px;
	border: 1px solid #c8b89a;
	border-radius: 4px;
	font-family: Georgia, serif;
	font-size: 1.05rem;
	background: #fdf9f4;
	color: #3d2b1f;
	box-sizing: border-box;
}
.ezcb-form input:focus,
.ezcb-form select:focus,
.ezcb-form textarea:focus {
	outline: none;
	border-color: #8B6914;
	box-shadow: 0 0 0 2px rgba(139,105,20,0.15);
}
.ezcb-form textarea { resize: vertical; }

.ezcb-field-row { display: flex; gap: 14px; }
.ezcb-field-row .ezcb-field { flex: 1; }
.ezcb-field-sm { flex: 0 0 170px !important; }

.ezcb-form-footer { text-align: right; margin-top: 20px; }

.ezcb-btn-submit {
	padding: 11px 30px;
	background: #5a3e28;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-family: Georgia, serif;
	font-size: 1.05rem;
	cursor: pointer;
	transition: background 0.2s;
}
.ezcb-btn-submit:hover    { background: #3d2b1f; }
.ezcb-btn-submit:disabled { background: #b0a090; cursor: not-allowed; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
	.ezcb-recipe-body   { padding: 20px; }
	.ezcb-recipe-footer { padding: 14px 20px; }
	.ezcb-submit-modal  { padding: 24px 20px; }
	.ezcb-field-row     { flex-direction: column; gap: 0; }
	.ezcb-field-sm      { flex: 1 !important; }
	.ezcb-table th:nth-child(4),
	.ezcb-table td:nth-child(4) { display: none; }
}
