/* ==========================================================
   Pixi Theme Builder Kit — ebw-widgets.css
   Covers: Blog Terms, Post Meta, Author Info, Post Related,
           Post Adjacent, Post Share, Post Image, Thumbnail,
           Post Content, Comment Form, Search, Copyright
   ========================================================== */

/* ── Shared base ──────────────────────────────────────────── */
.ebw-term-list,
.ebw-terms-list,
.ebw-terms-cloud { list-style: none; margin: 0; padding: 0; }

/* ==========================================================
   BLOG TERM LIST
   ========================================================== */
.ebw-terms-list .ebw-term-item + .ebw-term-item { margin-top: 6px; }

.ebw-term-item a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	text-decoration: none;
	color: #374151;
	border-radius: 4px;
	transition: background .2s ease, color .2s ease;
}
.ebw-term-item a:hover { background: #f3f4f6; color: #4f46e5; }

.ebw-term-name { flex: 1; }

.ebw-term-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 22px;
	padding: 0 6px;
	background: #e5e7eb;
	color: #374151;
	font-size: 11px;
	font-weight: 700;
	border-radius: 20px;
	margin-left: auto;
}

/* Tag cloud layout */
.ebw-terms-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ebw-terms-cloud .ebw-term-item a {
	padding: 4px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	font-size: 13px;
}
.ebw-terms-cloud .ebw-term-item a:hover { border-color: #4f46e5; }

/* ==========================================================
   POST META
   ========================================================== */
.ebw-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-size: 13px;
	color: #6b7280;
}
.ebw-post-meta--stack { flex-direction: column; align-items: flex-start; }

.ebw-pm-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.ebw-pm-icon { display: inline-flex; align-items: center; color: #9ca3af; }
.ebw-pm-label { font-weight: 600; color: #374151; }
.ebw-pm-sep   { color: #d1d5db; font-weight: 300; }
.ebw-pm-value a { color: inherit; text-decoration: none; }
.ebw-pm-value a:hover { color: #4f46e5; }
.ebw-pm-avatar { display: inline-flex; align-items: center; flex-shrink: 0; }
.ebw-pm-avatar img { display: block; }

/* ==========================================================
   AUTHOR INFO
   ========================================================== */
.ebw-author-box {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 28px;
	background: #f9fafb;
	border-radius: 8px;
}
.ebw-author-box--column {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ebw-author-avatar img {
	display: block;
	border-radius: 50%;
	width: 80px;
	height: 80px;
	object-fit: cover;
}

.ebw-author-content { flex: 1; }

.ebw-author-name {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.3;
}
.ebw-author-name a { color: inherit; text-decoration: none; }
.ebw-author-name a:hover { color: #4f46e5; }

.ebw-author-bio {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.65;
	color: #6b7280;
}

.ebw-author-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #4f46e5;
	text-decoration: none;
}
.ebw-author-link:hover { color: #4338ca; }

/* ==========================================================
   POST RELATED
   ========================================================== */
.ebw-related__heading {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 24px;
}

.ebw-related-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .25s ease, transform .25s ease;
}
.ebw-related-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.10); transform: translateY(-2px); }

.ebw-related-card__thumb {
	display: block;
	overflow: hidden;
}
.ebw-related-card__thumb img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.ebw-related-card:hover .ebw-related-card__thumb img { transform: scale(1.04); }

.ebw-related-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ebw-related-card__date {
	font-size: 12px;
	color: #9ca3af;
	margin-bottom: 6px;
	display: block;
}

.ebw-related-card__title {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.4;
}
.ebw-related-card__title a { color: inherit; text-decoration: none; }
.ebw-related-card__title a:hover { color: #4f46e5; }

.ebw-related-card__excerpt {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.6;
	margin: 0;
}

/* ==========================================================
   POST ADJACENT
   ========================================================== */
.ebw-post-adjacent {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}
.ebw-post-adjacent--stack { flex-direction: column; }

.ebw-adj-item {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
	padding: 16px 20px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	text-decoration: none;
	color: #111827;
	transition: background .2s ease, box-shadow .2s ease;
}
.ebw-adj-item:hover { background: #f3f4f6; box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.ebw-adj-next { justify-content: flex-end; text-align: right; }

.ebw-adj-thumb {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

.ebw-adj-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ebw-adj-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #9ca3af;
}

.ebw-adj-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #111827;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ebw-adj-item:hover .ebw-adj-title { color: #4f46e5; }

.ebw-adj-arrow {
	font-size: 20px;
	color: #9ca3af;
	flex-shrink: 0;
	transition: color .2s ease;
}
.ebw-adj-item:hover .ebw-adj-arrow { color: #4f46e5; }

/* ==========================================================
   POST SHARE
   ========================================================== */
.ebw-share-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ebw-share-prefix {
	font-size: 13px;
	font-weight: 600;
	color: #6b7280;
}

.ebw-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Shared button base */
.ebw-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity .2s ease, transform .15s ease;
	line-height: 1;
}
.ebw-share-btn:hover { opacity: .88; transform: translateY(-1px); }

/* Filled preset: uses per-network brand colour */
.ebw-share-filled .ebw-share-btn {
	background-color: var(--ebw-share-clr, #4f46e5);
	color: #fff;
}

/* Outline preset */
.ebw-share-outline .ebw-share-btn {
	background-color: transparent;
	color: var(--ebw-share-clr, #4f46e5);
	border: 2px solid var(--ebw-share-clr, #4f46e5);
}
.ebw-share-outline .ebw-share-btn:hover {
	background-color: var(--ebw-share-clr, #4f46e5);
	color: #fff;
}

/* Minimal / icon-only */
.ebw-share-minimal .ebw-share-btn {
	background: transparent;
	color: var(--ebw-share-clr, #4f46e5);
	padding: 8px;
	border-radius: 50%;
	font-size: 16px;
}
.ebw-share-minimal .ebw-share-btn:hover { background: #f3f4f6; }

/* ==========================================================
   POST IMAGE / FEATURED IMAGE
   ========================================================== */
.ebw-post-image {
	margin: 0;
	line-height: 0;
}
.ebw-post-image img { display: block; max-width: 100%; }

.ebw-post-image figcaption {
	padding: 8px 12px;
	font-size: 13px;
	color: #6b7280;
	background: #f9fafb;
	line-height: 1.5;
}

/* ==========================================================
   POST TITLE
   ========================================================== */
.ebw-post-title {
	margin: 0 0 12px;
	font-size: 32px;
	line-height: 1.25;
	font-weight: 700;
	color: #111827;
}
.ebw-post-title a { color: inherit; text-decoration: none; }
.ebw-post-title a:hover { color: #4f46e5; }

/* ==========================================================
   POST CONTENT
   ========================================================== */
.ebw-post-content {
	font-size: 16px;
	line-height: 1.75;
	color: #374151;
}
.ebw-post-content a { color: #4f46e5; }
.ebw-post-content a:hover { color: #4338ca; }
.ebw-post-content p      { margin-bottom: 1.25em; }
.ebw-post-content h1, .ebw-post-content h2,
.ebw-post-content h3, .ebw-post-content h4 { margin-top: 1.5em; margin-bottom: .5em; }
.ebw-post-content img    { max-width: 100%; height: auto; }
.ebw-post-content blockquote {
	border-left: 4px solid #4f46e5;
	margin: 1.5em 0;
	padding: .75em 1.25em;
	background: #f5f3ff;
	color: #4b5563;
	font-style: italic;
}
.ebw-post-content pre {
	background: #1e1e2e;
	color: #cdd6f4;
	padding: 1.25em;
	border-radius: 6px;
	overflow-x: auto;
	font-size: 14px;
}
.ebw-post-content code {
	background: #f3f4f6;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: .9em;
}

/* ==========================================================
   COMMENT FORM & COMMENTS LIST
   ========================================================== */
.ebw-comment-area { display: flex; flex-direction: column; gap: 32px; }

/* Comments list */
.ebw-comments-list { display: flex; flex-direction: column; gap: 16px; }

.ebw-comment-item {
	display: flex;
	gap: 14px;
	padding: 16px;
	background: #f9fafb;
	border-radius: 8px;
}

.ebw-comment-item__avatar img {
	display: block;
	border-radius: 50%;
	width: 48px;
	height: 48px;
}

.ebw-comment-item__body { flex: 1; }

.ebw-comment-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 6px;
}

.ebw-comment-item__author {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}

.ebw-comment-item__date {
	font-size: 12px;
	color: #9ca3af;
}

.ebw-comment-item__text {
	font-size: 14px;
	line-height: 1.65;
	color: #374151;
}

.ebw-no-comments {
	font-size: 14px;
	color: #9ca3af;
	text-align: center;
	padding: 20px 0;
}

/* Comment form */
.ebw-comment-form { font-size: 14px; }

.ebw-comment-form .comment-form-comment label,
.ebw-comment-form .comment-form-author label,
.ebw-comment-form .comment-form-email  label,
.ebw-comment-form .comment-form-url    label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	color: #374151;
}

.ebw-comment-form input[type="text"],
.ebw-comment-form input[type="email"],
.ebw-comment-form input[type="url"],
.ebw-comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	color: #111827;
	background: #fff;
	box-sizing: border-box;
	transition: border-color .2s ease;
	font-family: inherit;
}

.ebw-comment-form input:focus,
.ebw-comment-form textarea:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

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

.ebw-comment-form .form-submit { margin-top: 4px; }

.ebw-comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 28px;
	background: #4f46e5;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease;
	font-family: inherit;
}
.ebw-comment-form .submit:hover { background: #4338ca; }

/* ==========================================================
   SEARCH WIDGET
   ========================================================== */
.ebw-search-form {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

/* Inside variant: button is overlaid */
.ebw-search-form--inside { position: relative; }
.ebw-search-form--inside .ebw-search-input { padding-right: 52px; width: 100%; }
.ebw-search-form--inside .ebw-search-btn {
	position: absolute;
	right: 0; top: 0; bottom: 0;
	border-radius: 0 6px 6px 0;
}

.ebw-search-input {
	flex: 1;
	height: 50px;
	padding: 0 16px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	color: #111827;
	background: #fff;
	box-sizing: border-box;
	transition: border-color .2s ease;
	font-family: inherit;
	min-width: 0;
}
.ebw-search-input::placeholder { color: #9ca3af; }
.ebw-search-input:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.ebw-search-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 20px;
	height: 50px;
	background: #4f46e5;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	flex-shrink: 0;
	transition: background .2s ease;
	font-family: inherit;
	white-space: nowrap;
}
.ebw-search-btn:hover { background: #4338ca; }

/* ==========================================================
   COPYRIGHT WIDGET
   ========================================================== */
.ebw-copyright {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 13px;
	color: #6b7280;
}
.ebw-copyright a { color: #4f46e5; text-decoration: none; }
.ebw-copyright a:hover { color: #4338ca; }
.ebw-cr-sep { color: #d1d5db; }
.ebw-cr-sep { color: #d1d5db; }

/* ==========================================================
   HEADING WIDGET
   ========================================================== */
.ebw-heading {
	display: flex;
	flex-direction: column;
}
.ebw-heading__title {
	margin: 0;
	font-size: 32px;
	line-height: 1.25;
	font-weight: 700;
	color: #111827;
}
.ebw-heading__highlight { color: #4f46e5; }
.ebw-heading__subtitle {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #6b7280;
}
.ebw-heading__desc {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: #4b5563;
}
.ebw-heading__separator {
	display: block;
	border-top: 3px solid #4f46e5;
	width: 60px;
	margin: 8px 0;
}
.ebw-heading__separator--dashed { border-top-style: dashed; }
.ebw-heading__separator--dotted { border-top-style: dotted; }
.ebw-heading__separator--icon {
	border-top: 0;
	display: inline-flex;
	color: #4f46e5;
	font-size: 20px;
	width: auto;
}
