/**
 * Teknij Woo Brand - Frontend Styles
 * Scoped and isolated to prevent conflicts with themes or other plugins.
 * Replicates the Artist / Brand Card UI (Circular avatar, centered typography, tan "View Detail" button).
 */

/* ==========================================================================
   Base Container & Wrappers
   ========================================================================== */

.tek-woo-brand-wrap {
	display: flex;
	box-sizing: border-box;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
	position: relative;
	max-width: 100%;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	padding: 34px 24px 28px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	height: 100%;
}

.tek-woo-brand-wrap:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.tek-woo-brand-wrap *,
.tek-woo-brand-wrap *::before,
.tek-woo-brand-wrap *::after {
	box-sizing: border-box;
}

/* Standalone Single Element Wrappers (show="image", show="name", show="description", show="link") */
.tek-woo-brand-container {
	display: block;
	max-width: 100%;
	box-sizing: border-box;
}

.tek-woo-brand-container.tek-align-center {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	width: 100%;
}

.tek-woo-brand-container.tek-align-center .tek-woo-brand-element,
.tek-woo-brand-container.tek-align-center .tek-woo-brand-show-image,
.tek-woo-brand-element.tek-woo-brand-show-image.tek-align-center {
	display: flex;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
}

.tek-woo-brand-container.tek-align-center .tek-woo-brand-img,
.tek-woo-brand-element.tek-woo-brand-show-image.tek-align-center .tek-woo-brand-img {
	margin-left: auto;
	margin-right: auto;
}

.tek-woo-brand-container.tek-align-left {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	text-align: left;
	width: 100%;
}

.tek-woo-brand-container.tek-align-left .tek-woo-brand-element,
.tek-woo-brand-container.tek-align-left .tek-woo-brand-show-image,
.tek-woo-brand-element.tek-woo-brand-show-image.tek-align-left {
	margin-left: 0;
	margin-right: auto;
}

.tek-woo-brand-container.tek-align-right {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	text-align: right;
	width: 100%;
}

.tek-woo-brand-container.tek-align-right .tek-woo-brand-element,
.tek-woo-brand-container.tek-align-right .tek-woo-brand-show-image,
.tek-woo-brand-element.tek-woo-brand-show-image.tek-align-right {
	margin-left: auto;
	margin-right: 0;
}

.tek-woo-brand-element {
	display: inline-block;
	box-sizing: border-box;
	max-width: 100%;
	line-height: normal;
}

.tek-woo-brand-element.tek-woo-brand-show-image {
	display: inline-flex;
	vertical-align: middle;
}

.tek-woo-brand-element.tek-woo-brand-show-name {
	display: block;
}

.tek-woo-brand-element.tek-woo-brand-show-desc {
	display: block;
}

.tek-woo-brand-element.tek-woo-brand-show-link {
	display: inline-block;
}

/* ==========================================================================
   Layout Variants
   ========================================================================== */

/* 1. Vertical Layout (Stacked - Default Artist Card) */
.tek-woo-brand-wrap.tek-layout-vertical {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* 2. Horizontal Layout (Side by Side) */
.tek-woo-brand-wrap.tek-layout-horizontal {
	flex-direction: row;
	align-items: center;
}

.tek-woo-brand-wrap.tek-layout-horizontal .tek-woo-brand-content {
	flex: 1;
	min-width: 0;
	text-align: left;
	align-items: flex-start;
}

.tek-woo-brand-wrap.tek-layout-horizontal .tek-woo-brand-avatar-wrap,
.tek-woo-brand-wrap.tek-layout-horizontal .tek-woo-brand-img-wrap {
	margin: 0 20px 0 0;
}

.tek-woo-brand-wrap.tek-layout-horizontal .tek-woo-brand-btn-wrap {
	justify-content: flex-start;
}

/* 3. Inline Layout (Compact) */
.tek-woo-brand-wrap.tek-layout-inline {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	vertical-align: middle;
	padding: 10px 18px;
	box-shadow: none;
}

.tek-woo-brand-wrap.tek-layout-inline .tek-woo-brand-content {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-direction: row;
}

.tek-woo-brand-wrap.tek-layout-inline .tek-woo-brand-desc {
	display: inline;
	margin: 0;
}

.tek-woo-brand-wrap.tek-layout-inline .tek-woo-brand-avatar-wrap,
.tek-woo-brand-wrap.tek-layout-inline .tek-woo-brand-img-wrap {
	width: 48px;
	height: 48px;
	margin: 0 10px 0 0;
}

/* ==========================================================================
   Content Alignments
   ========================================================================== */

/* Left */
.tek-woo-brand-wrap.tek-align-left {
	text-align: left;
	align-items: flex-start;
}
.tek-woo-brand-wrap.tek-align-left .tek-woo-brand-content {
	text-align: left;
	align-items: flex-start;
}
.tek-woo-brand-wrap.tek-align-left .tek-woo-brand-avatar-wrap,
.tek-woo-brand-wrap.tek-align-left .tek-woo-brand-img-wrap {
	margin-left: 0;
	margin-right: auto;
}
.tek-woo-brand-wrap.tek-align-left .tek-woo-brand-btn-wrap {
	justify-content: flex-start;
}

/* Center */
.tek-woo-brand-wrap.tek-align-center {
	text-align: center;
	align-items: center;
}
.tek-woo-brand-wrap.tek-align-center .tek-woo-brand-content {
	text-align: center;
	align-items: center;
}
.tek-woo-brand-wrap.tek-align-center .tek-woo-brand-avatar-wrap,
.tek-woo-brand-wrap.tek-align-center .tek-woo-brand-img-wrap {
	margin-left: auto;
	margin-right: auto;
}
.tek-woo-brand-wrap.tek-align-center .tek-woo-brand-btn-wrap {
	justify-content: center;
}

/* Right */
.tek-woo-brand-wrap.tek-align-right {
	text-align: right;
	align-items: flex-end;
}
.tek-woo-brand-wrap.tek-align-right .tek-woo-brand-content {
	text-align: right;
	align-items: flex-end;
}
.tek-woo-brand-wrap.tek-align-right .tek-woo-brand-avatar-wrap,
.tek-woo-brand-wrap.tek-align-right .tek-woo-brand-img-wrap {
	margin-left: auto;
	margin-right: 0;
}
.tek-woo-brand-wrap.tek-align-right .tek-woo-brand-btn-wrap {
	justify-content: flex-end;
}

/* ==========================================================================
   Brand Image & Circular Avatar Elements
   ========================================================================== */

.tek-woo-brand-avatar-wrap,
.tek-woo-brand-img-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	margin-bottom: 20px;
	background-color: #f8fafc;
}

.tek-woo-brand-img-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-decoration: none !important;
	border: none !important;
	outline: none !important;
}

.tek-woo-brand-img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, filter 0.3s ease;
}

/* Standalone Single Image (show="image") */
.tek-woo-brand-show-image .tek-woo-brand-img {
	width: auto;
	height: auto;
	max-width: 100%;
	aspect-ratio: auto;
	border-radius: 8px;
}

/* Image Hover Animations */
.tek-hover-zoom .tek-woo-brand-img:hover,
.tek-woo-brand-wrap:hover .tek-hover-zoom .tek-woo-brand-img {
	transform: scale(1.06);
}

.tek-hover-opacity .tek-woo-brand-img:hover {
	opacity: 0.82;
}

.tek-hover-lift {
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.tek-hover-lift:hover {
	transform: translateY(-4px);
}

.tek-hover-grayscale .tek-woo-brand-img {
	filter: grayscale(100%);
}
.tek-hover-grayscale:hover .tek-woo-brand-img,
.tek-hover-grayscale .tek-woo-brand-img:hover,
.tek-woo-brand-wrap:hover .tek-hover-grayscale .tek-woo-brand-img {
	filter: grayscale(0%);
}

/* ==========================================================================
   Brand Content & Typography Elements
   ========================================================================== */

.tek-woo-brand-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
	flex: 1;
	min-width: 0;
}

/* Brand Name */
.tek-woo-brand-name {
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 14px 0;
	padding: 0;
	line-height: 1.3;
	transition: color 0.2s ease;
	letter-spacing: -0.01em;
}

.tek-woo-brand-name-link {
	color: inherit;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.tek-woo-brand-name-link:hover,
.tek-woo-brand-name:hover {
	color: #b89364 !important;
}

/* Brand Description (Quote Styling) */
.tek-woo-brand-desc {
	font-size: 14px;
	color: #64748b;
	line-height: 1.65;
	margin: 0 0 24px 0;
	padding: 0;
	font-weight: 400;
	max-width: 100%;
}

.tek-woo-brand-desc p {
	margin: 0 0 8px 0;
	padding: 0;
	line-height: inherit;
	color: inherit;
	font-size: inherit;
}

.tek-woo-brand-desc p:last-child {
	margin-bottom: 0;
}

.tek-woo-brand-readmore {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.tek-woo-brand-readmore:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Action Button ("View Detail")
   ========================================================================== */

.tek-woo-brand-btn-wrap {
	margin-top: auto;
	padding-top: 4px;
	width: 100%;
	display: flex;
	justify-content: center;
}

.tek-woo-brand-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #b89364;
	color: #ffffff !important;
	padding: 12px 34px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 6px rgba(184, 147, 100, 0.22);
}

.tek-woo-brand-btn:hover {
	background-color: #9f7c4f;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 5px 14px rgba(184, 147, 100, 0.35);
}

.tek-woo-brand-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(184, 147, 100, 0.25);
}

/* ==========================================================================
   Box Shadows
   ========================================================================== */

.tek-shadow-none { box-shadow: none !important; }
.tek-shadow-sm   { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important; }
.tek-shadow-md   { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07) !important; }
.tek-shadow-lg   { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important; }
.tek-shadow-xl   { box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12) !important; }

/* ==========================================================================
   Multi-Brand Grid Container ([tek-woo-brand count="4"])
   ========================================================================== */

.tek-woo-brands-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	align-items: stretch;
}

.tek-woo-brands-grid.tek-cols-1 { grid-template-columns: 1fr; }
.tek-woo-brands-grid.tek-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tek-woo-brands-grid.tek-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tek-woo-brands-grid.tek-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tek-woo-brands-grid.tek-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tek-woo-brands-grid.tek-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Responsive Grid Breakpoints */
@media (max-width: 1080px) {
	.tek-woo-brands-grid.tek-cols-4,
	.tek-woo-brands-grid.tek-cols-5,
	.tek-woo-brands-grid.tek-cols-6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 780px) {
	.tek-woo-brands-grid.tek-cols-3,
	.tek-woo-brands-grid.tek-cols-4,
	.tek-woo-brands-grid.tek-cols-5,
	.tek-woo-brands-grid.tek-cols-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 520px) {
	.tek-woo-brands-grid {
		grid-template-columns: 1fr !important;
		gap: 16px;
	}
	.tek-woo-brand-wrap.tek-layout-horizontal {
		flex-direction: column !important;
		text-align: center !important;
		align-items: center !important;
	}
	.tek-woo-brand-wrap.tek-layout-horizontal .tek-woo-brand-content {
		text-align: center !important;
		align-items: center !important;
	}
	.tek-woo-brand-wrap.tek-layout-horizontal .tek-woo-brand-avatar-wrap,
	.tek-woo-brand-wrap.tek-layout-horizontal .tek-woo-brand-img-wrap {
		margin: 0 auto 20px auto !important;
	}
	.tek-woo-brand-wrap.tek-layout-horizontal .tek-woo-brand-btn-wrap {
		justify-content: center !important;
	}
}
