/* MAC Makeup Lipstick Textures — front-end styles */

.mlt-wrap {
	--mlt-ink: #2b2b2b;
	--mlt-muted: #7a6a6d;
	--mlt-pink: #d94f70;
	--mlt-pink-light: #fdf1f4;
	--mlt-border: #ecd9de;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--mlt-ink);
	max-width: 1000px;
	margin: 0 auto;
}

.mlt-empty {
	color: var(--mlt-muted);
	font-style: italic;
}

/* Texture grid (hub page) */

.mlt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	margin: 24px 0;
}

.mlt-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 18px;
	background: var(--mlt-pink-light);
	border: 1px solid var(--mlt-border);
	border-radius: 10px;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.mlt-card:hover,
.mlt-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(217, 79, 112, 0.18);
	border-color: var(--mlt-pink);
}

.mlt-card.is-active {
	background: var(--mlt-pink);
	border-color: var(--mlt-pink);
}

.mlt-card.is-active .mlt-card__name,
.mlt-card.is-active .mlt-card__desc {
	color: #fff;
}

/* Accordion panels: only collapse once JS confirms it's actually running
   (see .is-js, added by assets/js/mlt-textures.js). Without JS every
   panel simply stays visible, stacked in order below the grid. */

.mlt-panels {
	margin-top: 8px;
}

.mlt-panel {
	padding: 24px 0;
	border-bottom: 1px solid var(--mlt-border);
}

.mlt-panel:last-child {
	border-bottom: none;
}

.mlt-textures-app.is-js .mlt-panel {
	display: none;
}

.mlt-textures-app.is-js .mlt-panel.is-open {
	display: block;
	animation: mlt-panel-in 0.18s ease;
}

@keyframes mlt-panel-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mlt-card__name {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--mlt-pink);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.mlt-card__desc {
	font-size: 0.85rem;
	color: var(--mlt-muted);
	line-height: 1.4;
}

/* Single texture page */

.mlt-texture-title {
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--mlt-pink);
	margin-bottom: 4px;
}

.mlt-texture-desc {
	color: var(--mlt-muted);
	font-style: italic;
	margin-top: 0;
	margin-bottom: 20px;
}

/* Shade table */

.mlt-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--mlt-border);
	border-radius: 8px;
	overflow: hidden;
}

.mlt-table th,
.mlt-table td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid var(--mlt-border);
	vertical-align: top;
	font-size: 0.92rem;
}

.mlt-table thead th {
	background: var(--mlt-pink);
	color: #fff;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.78rem;
	letter-spacing: 0.03em;
}

.mlt-table tbody tr:nth-child(even) {
	background: var(--mlt-pink-light);
}

.mlt-table tbody tr:hover {
	background: #f8e3e9;
}

.mlt-col-name {
	font-weight: 600;
	white-space: nowrap;
}

.mlt-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #fff;
	background: #999;
}

.mlt-badge--le {
	background: #b98b3e;
}

.mlt-badge--disc {
	background: #a04a4a;
}

.mlt-badge--pro {
	background: #3e6ea5;
}

/* Search — styled to match the search box on macmakeup.net's homepage
   ([eyeshadow-search] shortcode in the eyeshadow combinations plugin), per
   request, rather than the pink accent used elsewhere in this plugin. */

.mlt-search__form {
	display: flex;
	gap: 8px;
	width: 320px;
	max-width: 100%;
	margin-bottom: 20px;
	box-sizing: border-box;
}

.mlt-search__form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 12px;
	border: 1px solid #e5d9d6;
	border-radius: 5px;
	font-size: 15px;
	color: #3a3a3a;
	box-sizing: border-box;
}

.mlt-search__form input[type="search"]:focus {
	outline: none;
	border-color: #b6746b;
}

.mlt-search__form button {
	padding: 8px 18px;
	background: #7a4b45;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: 600;
	transition: background-color 0.12s ease-in-out;
}

.mlt-search__form button:hover {
	background: #b6746b;
}

@media (max-width: 600px) {
	.mlt-table,
	.mlt-table thead,
	.mlt-table tbody,
	.mlt-table th,
	.mlt-table td,
	.mlt-table tr {
		display: block;
	}

	.mlt-table thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	.mlt-table tr {
		margin-bottom: 12px;
		border: 1px solid var(--mlt-border);
		border-radius: 8px;
	}

	.mlt-table td {
		border: none;
		border-bottom: 1px solid var(--mlt-border);
	}

	.mlt-table td:before {
		content: attr(data-label);
		display: block;
		font-weight: 700;
		font-size: 0.7rem;
		text-transform: uppercase;
		color: var(--mlt-pink);
		margin-bottom: 2px;
	}
}
