/* ======================================================
   LAYOUT.CSS — STRUCTURE ONLY (NO COLORS / NO DESIGN)
   Handles: flex, grid, spacing, responsive layout
====================================================== */

/* Generic container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding-left: 12px;
  padding-right: 12px;
}

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

/* Grid utilities */
.grid {
  display: grid;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

/* Spacing utilities */
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }

/* Width helpers */
.w-full { width: 100%; }
.w-50 { width: 50%; }
.w-auto { width: auto; }

/* Responsive */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
