/* EZTRY Utilities — inline styles consolidated to CSS classes
   Extracted from templates as part of inline-style refactoring.
   Use these classes instead of style="..." inline attributes.
*/

/* Display & Visibility */
.hidden { display: none !important; margin: 0 !important; padding: 0 !important; }
.visible { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start { display: flex; align-items: flex-start; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.absolute-0 { position: absolute; width: 0; height: 0; }
.top-4 { top: 16px; }
.right-4 { right: 16px; }
.sticky { position: sticky; top: 0; z-index: 10; }

/* Sizing */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-8 { width: 8px; }
.w-20 { width: 20px; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-8 { height: 8px; }
.h-20 { height: 20px; }
.h-22 { height: 22px; }
.min-w-0 { min-width: 0; }

/* Margin */
.m-0 { margin: 0; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.my-sm { margin-top: 8px; margin-bottom: 8px; }
.mt-0 { margin-top: 0; }
.ml-0 { margin-left: 0; }
.mt-xs { margin-top: 4px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 12px; }
.mt-lg { margin-top: 14px; }
.mt-xl { margin-top: 16px; }
.mt-2xl { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: 4px; }
.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 12px; }
.mb-lg { margin-bottom: 14px; }
.mb-xl { margin-bottom: 16px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }

/* Padding */
.p-0 { padding: 0; }
.px-0 { padding-left: 0; padding-right: 0; }
.px-lg { padding-left: 44px; padding-right: 44px; }
.py-6 { padding-top: 6px; padding-bottom: 6px; }

/* Gap (for flex) */
.gap-xs { gap: 4px; }
.gap-sm { gap: 6px; }
.gap-md { gap: 8px; }
.gap-lg { gap: 12px; }
.gap-xl { gap: 16px; }
.gap-14 { gap: 14px; }
.gap-10 { gap: 10px; }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-nowrap { white-space: nowrap; }
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-small { font-size: var(--fs-small); }
.text-inherit { color: inherit; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-secondary); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-32 { font-size: 32px; }
.text-24 { font-size: 24px; }
.text-11 { font-size: 11px; }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }
.font-inherit { font-family: inherit; }
.no-wrap { white-space: nowrap; }
.break-word { word-break: break-word; }

/* Borders & Corners */
.rounded { border-radius: var(--radius-sm); }
.rounded-sm { border-radius: 4px; }
.rounded-md { border-radius: 8px; }
.rounded-full { border-radius: 50%; }
.br-6 { border-radius: 6px; }
.border-none { border: none; }
.border-1 { border: 1px solid var(--border); }
.border-t-1 { border-top: 1px solid var(--border); }

/* Decoration */
.no-underline { text-decoration: none; }
.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }

/* Alignment */
.align-center { vertical-align: middle; }
.align-top { vertical-align: top; }
.align-bottom { vertical-align: bottom; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

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

/* Negative Margin */
.mt-minus-xs { margin-top: -4px; }
.mt-minus-sm { margin-top: -6px; }
.ml-neg-36 { margin-left: -36px; }

/* Margin Utilities */
.my-minus-sm { margin-top: -6px; margin-bottom: 10px; }

/* Padding */
.pb-sm { padding-bottom: 8px; }
.px-md { padding-left: 16px; padding-right: 16px; }
.py-xl { padding-top: 36px; padding-bottom: 36px; }
.p-xl { padding: 36px 16px; }
.p-2xl { padding: 40px 20px; }

/* Margin Utility */
.mb-12 { margin-bottom: 12px; }
.mb-10 { margin-bottom: 10px; }
.mt-12 { margin-top: 12px; }
.mt-10 { margin-top: 10px; }
.mt-8 { margin-top: 8px; }
.mt-6 { margin-top: 6px; }

/* Padding Left */
.pl-18 { padding-left: 18px; }
.pl-20 { padding-left: 20px; }

/* Background & Text Colors */
.bg-doing { background-color: var(--status-doing); }
.text-on-accent { color: var(--text-on-accent); }
.text-on-bg { color: var(--text-on-accent); }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Win Condition Card */
.embed-win-cond { margin: 10px 0 0; padding: 8px; background: rgba(255, 255, 255, 0.05); border-radius: var(--radius-sm); font-size: var(--fs-small); color: var(--text-secondary); }
.embed-win-cond-label { font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }

/* Weight */
.font-600 { font-weight: 600; }

/* Line Height */
.lh-relaxed { line-height: 1.7; }
.lh-1-2 { line-height: 1.2; }

/* Horizontal Scroll */
.scroll-x { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; }

/* Block Display Helpers */
.block { display: block; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flex Grow/Shrink */
.flex-auto { flex: 1 1 auto; }
.flex-1 { flex: 1; }
.flex-0 { flex: 0 0 auto; }
.flex-shrink-0 { flex-shrink: 0; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Color Utilities */
.bg-transparent { background-color: transparent; }
.bg-inherit { background-color: inherit; }
.bg-danger { background-color: var(--danger); }
.bg-warning { background-color: var(--warning); }
.bg-accent { background-color: var(--accent); }

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

/* Disabled State */
.disabled { opacity: 0.6; cursor: not-allowed; }

/* Transitions */
.transition { transition: all var(--transition); }
.transition-colors { transition: background var(--transition), color var(--transition); }
.transition-transform { transition: transform var(--transition); }

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Meta text (small + margin) */
.meta-text { font-size: var(--fs-small); margin-bottom: 8px; }

/* Icon */
.icon { width: 20px; height: 20px; display: inline-block; }

/* New utilities for Phase 2 refactoring */
.text-base { font-size: var(--fs-base); }
.text-status-want { color: var(--status-want); }
.rounded-full { border-radius: 50%; }
.ml-sm { margin-left: 8px; }
.mb-2xl { margin-bottom: 20px; }
.text-right { text-align: right; }
.text-11 { font-size: 11px; }
.ml-0 { margin-left: 0; }
.inline { display: inline; }
.flex-0 { flex: 0 0 auto; }

/* Phase 3 - Tag cloud and component utilities */
.lh-2-6 { line-height: 2.6; }
.lh-2-4 { line-height: 2.4; }

/* Tag pill variants for tags.php */
.tag-pill {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 12px;
  margin: 0 8px 8px 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
}

.tag-pill-sm {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 400;
}

.tag-pill-dashed {
  border-style: dashed;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 400;
}

.tag-count {
  font-weight: 400;
  font-size: 12px;
}

/* Time preset button styling */
.time-preset-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg-secondary);
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  color: var(--text-primary);
}

.time-preset-btn.active {
  background: var(--status-want);
  color: var(--text-primary);
  border-color: var(--status-want);
  font-weight: 600;
}

/* Background color utilities */
.bg-elevated { background-color: var(--bg-elevated); }
.bg-secondary { background-color: var(--bg-secondary); }

/* Border and status utilities */
.border-status-want { border-color: var(--status-want); }
.bg-status-want { background-color: var(--status-want); }

/* Text size utilities */
.text-14 { font-size: 14px; }
.text-status-doing { color: var(--status-doing); }

/* SVG icon color utilities */
.icon-target { color: var(--status-want); }
.icon-accent { color: var(--accent); }
.icon-warning { color: var(--warning); }
.icon-status-doing { color: var(--status-doing); }
