/* pfp-fashion.css */

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
}

/* Header Bar */
.header-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.site-title {
  font-size: 1.8rem;
}

/* Top Controls Row */
.top-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 10px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.collection-select,
.pfp-id {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

label {
  font-weight: bold;
}

select, 
input[type="text"],
input[type="number"] {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Buttons & Tabs with Gen Z gradient style */
button,
.tab {
  padding: 8px 16px;
  background: linear-gradient(45deg, #ff6ec4, #7873f5);
  background-size: 400% 400%;
  animation: gradientAnimation 8s ease infinite;
  color: #fff;
  border: none;
  border-radius: 20px; /* Rounded shape for Gen Z style */
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  transition: background 0.3s, box-shadow 0.3s;
}

button:hover,
.tab:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

@keyframes gradientAnimation {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* If a .tab is active, we slightly reduce opacity (or change styling as desired) */
.tab.active {
  opacity: 0.85;
}

/* Main Editor Layout (Left preview, right side panel) */
.editor-layout {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  padding: 0 20px 20px;
}

/* Preview Section */
.preview-section {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 600px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#canvasPreview {
  width: 100%;
  max-width: 600px;
  height: auto;
  border: 2px dashed #ccc;
  background-color: #fff;
}

.upload-controls {
  margin-top: 1rem;
  text-align: center;
}

/* Side Panel with tabs + items */
/* Increase width for a more spacious items grid */
.side-panel {
  width: 500px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* The container for the tab buttons */
.tabs {
  display: flex;
  gap: 1rem;          /* space between tabs */
  margin-bottom: 1rem;
  /* no need for justify-content if each .tab flex:1 */
}

.tab {
  flex: 1;            /* each tab gets equal width */
  text-align: center; /* center the text inside */
  padding: 8px 16px;  /* same styling as before */
  /* the rest of your Gen Z gradient styles remain unchanged */
}


/* Items Grid => 4 columns, ~140px tall each, 20px gap => bigger boxes */
.items-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;  /* each row is 140px high */
  gap: 20px;
}

/* Make each grid cell a "box" for the item */
.items-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* keep aspect ratio inside box */
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}
.items-grid img:hover {
  transform: scale(1.05);
  border-color: #007bff;
}

/* Footer */
.footer {
  text-align: center;
  padding: 10px;
  background: #fff;
  color: #777;
  font-size: 0.85em;
  margin-top: 20px;
}

/* Gradient text usage */
.gradient-text {
  background: linear-gradient(45deg, #ff6ec4, #7873f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile-Responsive */
@media (max-width: 768px) {
  .editor-layout {
    flex-direction: column;
    align-items: center;
  }
  .preview-section,
  .side-panel {
    width: 90%;
    max-width: 600px;
    margin-bottom: 20px;
  }

  /* Possibly reduce columns if 4 is too tight on small screens */
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
    gap: 10px;
  }
}
