/**
 * utilities.css — single-purpose helper classes.
 *
 * Single responsibility: each class does one tiny job (text alignment,
 * spacing, visibility). No compound rules, no side effects.
 *
 * @package ICE_GeneratePress_Child
 * @since   1.0.0
 */

/* ----- Text alignment ----- */
.ice-text-left   { text-align: left; }
.ice-text-center { text-align: center; }
.ice-text-right  { text-align: right; }

/* ----- Text color ----- */
.ice-text-primary { color: var(--ice-primary); }
.ice-text-accent  { color: var(--ice-accent); }
.ice-text-white   { color: var(--ice-white); }
.ice-text-gray    { color: var(--ice-gray); }
.ice-text-body    { color: var(--ice-body); }
.ice-text-title   { color: var(--ice-title); }

/* ----- Background color ----- */
.ice-bg-primary { background: var(--ice-primary); }
.ice-bg-accent  { background: var(--ice-accent); }
.ice-bg-white   { background: var(--ice-white); }
.ice-bg-light   { background: var(--ice-light); }

/* ----- Font weight ----- */
.ice-fw-normal    { font-weight: var(--ice-fw-normal); }
.ice-fw-medium    { font-weight: var(--ice-fw-medium); }
.ice-fw-semibold  { font-weight: var(--ice-fw-semibold); }
.ice-fw-bold      { font-weight: var(--ice-fw-bold); }
.ice-fw-extrabold { font-weight: var(--ice-fw-extrabold); }
.ice-fw-black     { font-weight: var(--ice-fw-black); }

/* ----- Font size ----- */
.ice-fs-xs   { font-size: var(--ice-fs-xs); }
.ice-fs-sm   { font-size: var(--ice-fs-sm); }
.ice-fs-base { font-size: var(--ice-fs-base); }
.ice-fs-md   { font-size: var(--ice-fs-md); }
.ice-fs-lg   { font-size: var(--ice-fs-lg); }
.ice-fs-xl   { font-size: var(--ice-fs-xl); }
.ice-fs-2xl  { font-size: var(--ice-fs-2xl); }
.ice-fs-3xl  { font-size: var(--ice-fs-3xl); }
.ice-fs-4xl  { font-size: var(--ice-fs-4xl); }

/* ----- Text transform ----- */
.ice-uppercase  { text-transform: uppercase; }
.ice-lowercase  { text-transform: lowercase; }
.ice-capitalize { text-transform: capitalize; }

/* ----- Letter spacing ----- */
.ice-ls-tight  { letter-spacing: var(--ice-ls-tight); }
.ice-ls-wide   { letter-spacing: var(--ice-ls-wide); }
.ice-ls-wider  { letter-spacing: var(--ice-ls-wider); }

/* ----- Spacing (margin top) ----- */
.ice-mt-2xs { margin-top: var(--ice-spacing-2xs); }
.ice-mt-xs  { margin-top: var(--ice-spacing-xs); }
.ice-mt-sm  { margin-top: var(--ice-spacing-sm); }
.ice-mt-md  { margin-top: var(--ice-spacing-md); }
.ice-mt-lg  { margin-top: var(--ice-spacing-lg); }
.ice-mt-xl  { margin-top: var(--ice-spacing-xl); }
.ice-mt-2xl { margin-top: var(--ice-spacing-2xl); }
.ice-mt-3xl { margin-top: var(--ice-spacing-3xl); }
.ice-mt-0   { margin-top: 0; }

/* ----- Spacing (margin bottom) ----- */
.ice-mb-2xs { margin-bottom: var(--ice-spacing-2xs); }
.ice-mb-xs  { margin-bottom: var(--ice-spacing-xs); }
.ice-mb-sm  { margin-bottom: var(--ice-spacing-sm); }
.ice-mb-md  { margin-bottom: var(--ice-spacing-md); }
.ice-mb-lg  { margin-bottom: var(--ice-spacing-lg); }
.ice-mb-xl  { margin-bottom: var(--ice-spacing-xl); }
.ice-mb-2xl { margin-bottom: var(--ice-spacing-2xl); }
.ice-mb-3xl { margin-bottom: var(--ice-spacing-3xl); }
.ice-mb-0   { margin-bottom: 0; }

/* ----- Spacing (padding top) ----- */
.ice-pt-2xs { padding-top: var(--ice-spacing-2xs); }
.ice-pt-xs  { padding-top: var(--ice-spacing-xs); }
.ice-pt-sm  { padding-top: var(--ice-spacing-sm); }
.ice-pt-md  { padding-top: var(--ice-spacing-md); }
.ice-pt-lg  { padding-top: var(--ice-spacing-lg); }
.ice-pt-xl  { padding-top: var(--ice-spacing-xl); }
.ice-pt-2xl { padding-top: var(--ice-spacing-2xl); }
.ice-pt-3xl { padding-top: var(--ice-spacing-3xl); }
.ice-pt-0   { padding-top: 0; }

/* ----- Spacing (padding bottom) ----- */
.ice-pb-2xs { padding-bottom: var(--ice-spacing-2xs); }
.ice-pb-xs  { padding-bottom: var(--ice-spacing-xs); }
.ice-pb-sm  { padding-bottom: var(--ice-spacing-sm); }
.ice-pb-md  { padding-bottom: var(--ice-spacing-md); }
.ice-pb-lg  { padding-bottom: var(--ice-spacing-lg); }
.ice-pb-xl  { padding-bottom: var(--ice-spacing-xl); }
.ice-pb-2xl { padding-bottom: var(--ice-spacing-2xl); }
.ice-pb-3xl { padding-bottom: var(--ice-spacing-3xl); }
.ice-pb-0   { padding-bottom: 0; }

/* ----- Display ----- */
.ice-d-block       { display: block; }
.ice-d-inline      { display: inline; }
.ice-d-inline-block{ display: inline-block; }
.ice-d-flex        { display: flex; }
.ice-d-grid        { display: grid; }
.ice-d-none        { display: none; }

/* ----- Flex modifiers ----- */
.ice-flex-row      { flex-direction: row; }
.ice-flex-col      { flex-direction: column; }
.ice-flex-wrap     { flex-wrap: wrap; }
.ice-flex-nowrap   { flex-wrap: nowrap; }
.ice-items-center  { align-items: center; }
.ice-items-start   { align-items: flex-start; }
.ice-items-end     { align-items: flex-end; }
.ice-justify-center   { justify-content: center; }
.ice-justify-between  { justify-content: space-between; }
.ice-justify-start    { justify-content: flex-start; }
.ice-justify-end      { justify-content: flex-end; }

/* ----- Width ----- */
.ice-w-auto   { width: auto; }
.ice-w-full   { width: 100%; }
.ice-w-screen { width: 100vw; }
.ice-maxw-sm  { max-width: 480px; }
.ice-maxw-md  { max-width: 720px; }
.ice-maxw-lg  { max-width: 960px; }
.ice-maxw-xl  { max-width: 1200px; }

/* ----- Visibility (responsive) ----- */
.ice-hidden { display: none !important; }
.ice-invisible { visibility: hidden; }

/* ----- Image utilities ----- */
.ice-img-fluid {
	max-width: 100%;
	height: auto;
	display: block;
}

.ice-img-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ice-img-contain {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ----- Aspect ratio helpers ----- */
.ice-aspect-1-1 { aspect-ratio: 1 / 1; }
.ice-aspect-3-2 { aspect-ratio: 3 / 2; }
.ice-aspect-4-3 { aspect-ratio: 4 / 3; }
.ice-aspect-16-9 { aspect-ratio: 16 / 9; }

/* ----- Border radius ----- */
.ice-radius-sm { border-radius: var(--ice-btn-radius-sm); }
.ice-radius-pill { border-radius: var(--ice-btn-radius); }
.ice-radius-circle { border-radius: 50%; }

/* ----- Overflow ----- */
.ice-overflow-hidden { overflow: hidden; }
.ice-overflow-auto   { overflow: auto; }
.ice-overflow-scroll { overflow: scroll; }

/* ----- Position ----- */
.ice-relative { position: relative; }
.ice-absolute { position: absolute; }
.ice-fixed    { position: fixed; }
.ice-static   { position: static; }

/* ----- Shadow ----- */
.ice-shadow-sm { box-shadow: var(--ice-shadow-sm); }
.ice-shadow    { box-shadow: var(--ice-shadow); }
.ice-shadow-lg { box-shadow: var(--ice-shadow-lg); }
.ice-shadow-none { box-shadow: none; }

/* ----- Cursor ----- */
.ice-cursor-pointer { cursor: pointer; }
.ice-cursor-default { cursor: default; }

/* ----- User select ----- */
.ice-select-none { user-select: none; }

/* ----- Truncate text ----- */
.ice-truncate {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ice-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ice-clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ----- Hover lift ----- */
.ice-hover-lift {
	transition: transform var(--ice-t-base), box-shadow var(--ice-t-base);
}

.ice-hover-lift:hover {
	transform: translateY(-4px);
	box-shadow: var(--ice-shadow-lg);
}
