/* ============================================================
   utils.css — Tailwind CDN kiváltása minimális utility CSS-sel
   Csak a szamlakereso.hu oldalain ténylegesen használt osztályok
   ============================================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }

/* === LAYOUT === */
.container   { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.mx-auto     { margin-left: auto !important; margin-right: auto !important; }
.max-w-7xl   { max-width: 80rem; }
.max-w-6xl   { max-width: 72rem; }
.max-w-5xl   { max-width: 64rem; }
.max-w-4xl   { max-width: 56rem; }
.max-w-3xl   { max-width: 48rem; }
.max-w-2xl   { max-width: 42rem; }
.max-w-xl    { max-width: 36rem; }
.max-w-lg    { max-width: 32rem; }
.max-w-md    { max-width: 28rem; }
.max-w-sm    { max-width: 24rem; }

/* === DISPLAY === */
.block        { display: block; }
.inline       { display: inline; }
.inline-block { display: inline-block; }
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }
.hidden       { display: none; }

/* === POSITION === */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }
.top-0    { top: 0; }
.left-0   { left: 0; }
.right-0  { right: 0; }
.bottom-0 { bottom: 0; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }

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

/* === FLEX === */
.flex-col        { flex-direction: column; }
.flex-row        { flex-direction: row; }
.flex-wrap       { flex-wrap: wrap; }
.flex-nowrap     { flex-wrap: nowrap; }
.flex-1          { flex: 1 1 0%; }
.flex-shrink-0   { flex-shrink: 0; }
.flex-grow       { flex-grow: 1; }
.items-start     { align-items: flex-start; }
.items-center    { align-items: center; }
.items-end       { align-items: flex-end; }
.items-stretch   { align-items: stretch; }
.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around  { justify-content: space-around; }
.self-start      { align-self: flex-start; }
.self-center     { align-self: center; }
.self-end        { align-self: flex-end; }

/* === GRID === */
.grid-cols-1  { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6  { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-span-1   { grid-column: span 1 / span 1; }
.col-span-2   { grid-column: span 2 / span 2; }
.col-span-3   { grid-column: span 3 / span 3; }
.col-span-full{ grid-column: 1 / -1; }

/* === GAP === */
.gap-0    { gap: 0; }
.gap-1    { gap: 0.25rem; }
.gap-2    { gap: 0.5rem; }
.gap-3    { gap: 0.75rem; }
.gap-4    { gap: 1rem; }
.gap-5    { gap: 1.25rem; }
.gap-6    { gap: 1.5rem; }
.gap-7    { gap: 1.75rem; }
.gap-8    { gap: 2rem; }
.gap-10   { gap: 2.5rem; }
.gap-12   { gap: 3rem; }
.gap-16   { gap: 4rem; }
.gap-x-1  { column-gap: 0.25rem; }
.gap-x-2  { column-gap: 0.5rem; }
.gap-x-3  { column-gap: 0.75rem; }
.gap-x-4  { column-gap: 1rem; }
.gap-x-5  { column-gap: 1.25rem; }
.gap-x-6  { column-gap: 1.5rem; }
.gap-y-1  { row-gap: 0.25rem; }
.gap-y-2  { row-gap: 0.5rem; }
.gap-y-3  { row-gap: 0.75rem; }
.gap-y-4  { row-gap: 1rem; }

/* Tailwind fractional gap */
.gap-1\.5  { gap: 0.375rem; }
.gap-2\.5  { gap: 0.625rem; }

/* === PADDING === */
.p-0  { padding: 0; }
.p-1  { padding: 0.25rem; }
.p-2  { padding: 0.5rem; }
.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-4 { padding-left: 1rem; }
.pl-6 { padding-left: 1.5rem; }
.pl-8 { padding-left: 2rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-3 { padding-right: 0.75rem; }
.pr-4 { padding-right: 1rem; }

/* === MARGIN === */
.m-0   { margin: 0; }
.m-auto { margin: auto; }
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-7  { margin-bottom: 1.75rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.ml-1  { margin-left: 0.25rem; }
.ml-2  { margin-left: 0.5rem; }
.ml-3  { margin-left: 0.75rem; }
.ml-4  { margin-left: 1rem; }
.mr-1  { margin-right: 0.25rem; }
.mr-2  { margin-right: 0.5rem; }
.mr-3  { margin-right: 0.75rem; }
.mr-4  { margin-right: 1rem; }
.mx-1  { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2  { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-4  { margin-left: 1rem; margin-right: 1rem; }

/* === SIZING === */
.w-full    { width: 100%; }
.w-auto    { width: auto; }
.w-4       { width: 1rem; }
.w-5       { width: 1.25rem; }
.w-6       { width: 1.5rem; }
.w-8       { width: 2rem; }
.w-10      { width: 2.5rem; }
.w-12      { width: 3rem; }
.w-16      { width: 4rem; }
.h-full    { height: 100%; }
.h-4       { height: 1rem; }
.h-5       { height: 1.25rem; }
.h-6       { height: 1.5rem; }
.h-8       { height: 2rem; }
.h-10      { height: 2.5rem; }
.h-12      { height: 3rem; }
.h-16      { height: 4rem; }
.min-w-0   { min-width: 0; }
.min-h-0   { min-height: 0; }
.max-w-full { max-width: 100%; }
.max-h-full { max-height: 100%; }

/* === TYPOGRAPHY === */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-xs     { font-size: 0.75rem; line-height: 1rem; }
.text-sm     { font-size: 0.875rem; line-height: 1.25rem; }
.text-base   { font-size: 1rem; line-height: 1.5rem; }
.text-lg     { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl     { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl    { font-size: 1.5rem; line-height: 2rem; }
.text-3xl    { font-size: 1.875rem; line-height: 2.25rem; }
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black    { font-weight: 900; }
.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.25; }
.leading-snug    { line-height: 1.375; }
.leading-normal  { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose   { line-height: 2; }
.tracking-tight  { letter-spacing: -0.05em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide   { letter-spacing: 0.025em; }
.tracking-wider  { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase   { text-transform: uppercase; }
.lowercase   { text-transform: lowercase; }
.capitalize  { text-transform: capitalize; }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.break-words { overflow-wrap: break-word; word-break: break-word; }

/* === COLORS === */
.text-white   { color: #fff; }
.text-black   { color: #000; }
.text-current { color: currentColor; }

/* === BORDER === */
.border     { border-width: 1px; border-style: solid; }
.border-0   { border: none; }
.border-2   { border-width: 2px; border-style: solid; }
.rounded    { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl{ border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-none { border-radius: 0; }

/* === BACKGROUND === */
.bg-white       { background-color: #fff; }
.bg-transparent { background-color: transparent; }

/* === SHADOW === */
.shadow    { box-shadow: 0 1px 3px rgba(0,0,0,0.1),0 1px 2px rgba(0,0,0,0.06); }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.07),0 2px 4px rgba(0,0,0,0.06); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,0.1),0 4px 6px rgba(0,0,0,0.05); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0,0,0,0.1),0 10px 10px rgba(0,0,0,0.04); }
.shadow-none { box-shadow: none; }

/* === CURSOR === */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.select-none    { user-select: none; }

/* === TRANSITION === */
.transition     { transition-property: color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.transition-all { transition: all 0.2s cubic-bezier(0.4,0,0.2,1); }

/* === Z-INDEX === */
.z-0   { z-index: 0; }
.z-10  { z-index: 10; }
.z-20  { z-index: 20; }
.z-50  { z-index: 50; }

/* === TEXT DECORATION === */
.no-underline   { text-decoration: none; }
.underline      { text-decoration: underline; }
.line-through   { text-decoration: line-through; }

/* === TRANSITION DURATION === */
.duration-150   { transition-duration: 150ms; }
.duration-200   { transition-duration: 200ms; }
.duration-300   { transition-duration: 300ms; }

/* === SPACE-Y (gyerekek közti térköz) === */
.space-y-0\.5 > * + * { margin-top: 0.125rem; }
.space-y-1    > * + * { margin-top: 0.25rem; }
.space-y-2    > * + * { margin-top: 0.5rem; }
.space-y-3    > * + * { margin-top: 0.75rem; }
.space-y-4    > * + * { margin-top: 1rem; }

/* === HOVER UTILITIES === */
.hover\:bg-orange-50:hover  { background-color: #fff7ed; }
.hover\:bg-gray-50:hover    { background-color: #f9fafb; }
.hover\:text-orange-500:hover { color: #f97316; }

/* === MISC === */
.list-none    { list-style: none; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.pointer-events-none { pointer-events: none; }

/* ================================================================
   RESPONSIVE — sm (640px+)
   ================================================================ */
@media (min-width: 640px) {
  .sm\:inline       { display: inline; }
  .sm\:block        { display: block; }
  .sm\:flex         { display: flex; }
  .sm\:hidden       { display: none !important; }
  .sm\:grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex-row     { flex-direction: row; }
  .sm\:px-6         { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:text-center  { text-align: center; }
}

/* ================================================================
   RESPONSIVE — md (768px+)
   ================================================================ */
@media (min-width: 768px) {
  .md\:block        { display: block; }
  .md\:flex         { display: flex; }
  .md\:hidden       { display: none !important; }
  .md\:grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:gap-8        { gap: 2rem; }
  .md\:gap-10       { gap: 2.5rem; }
  .md\:gap-12       { gap: 3rem; }
  .md\:flex-row     { flex-direction: row; }
  .md\:px-6         { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ================================================================
   RESPONSIVE — lg (1024px+)
   ================================================================ */
@media (min-width: 1024px) {
  .lg\:block         { display: block; }
  .lg\:flex          { display: flex; }
  .lg\:hidden        { display: none !important; }
  .lg\:grid-cols-2   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4   { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-2    { grid-column: span 2 / span 2; }
  .lg\:col-span-3    { grid-column: span 3 / span 3; }
  .lg\:gap-12        { gap: 3rem; }
  .lg\:gap-16        { gap: 4rem; }
  .lg\:flex-row      { flex-direction: row; }
  .lg\:items-center  { align-items: center; }
  .lg\:px-8          { padding-left: 2rem; padding-right: 2rem; }
  .lg\:text-left     { text-align: left; }
}

/* ================================================================
   RESPONSIVE — xl (1280px+)
   ================================================================ */
@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:gap-12      { gap: 3rem; }
  .xl\:px-0        { padding-left: 0; padding-right: 0; }
}
