/* Demo & utility styles moved from inline <style> in index.html */

body.demo-demo {
  /* kept minimal; primary font and colors come from core.css */
  padding: 20px;
}

.container {
  max-width: 100%;
  padding: 0 15px;
}

.controls {
  margin-bottom: 30px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.showcase-area {
  max-width: 900px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.grid-2 > * {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .showcase-area {
    max-width: 100%;
  }

  .controls {
    gap: 8px;
  }

  .controls .ff-btn {
    font-size: 0.85rem;
    padding: 8px 12px;
    min-width: 70px;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .page-header p {
    font-size: 0.9rem;
  }

  .ff-window {
    margin: 10px 0;
  }

  body {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .controls {
    flex-direction: column;
    gap: 8px;
  }

  .controls .ff-btn {

    max-width: 200px;
  }

  .page-header h1 {
    font-size: 1.25rem;
  }

  .ff-window-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .actions-right {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .actions-right .ff-btn {

    max-width: 200px;
  }

  .grid-2 {
    gap: 14px;
  }
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.ff-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

.actions-right {
  margin-top: 20px;
  text-align: right;
}

.label-block {
  display: block;
  margin-bottom: 5px;
}

/* Small utilities */
.m-0 {
  margin: 0;
}

.mt-0 {
  margin-top: 0;
}

.mb-5 {
  margin-bottom: 5px;
}

.w-100 {
  width: 100%;
}

.d-flex-space {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.d-flex {
  display: flex;
}

.gap-10 {
  gap: 10px;
}

.attrs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.avatar-buttons-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: flex-start;
}

.avatar-buttons-row .ff-avatar {
  flex: 0 0 auto;
}

.avatar-buttons-row .ff-btn {
  flex: 1 1 140px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 480px) {
  .attrs-grid {
    grid-template-columns: 1fr;
  }

  .avatar-buttons-row {
    gap: 8px;
    width: 100%;
  }

  .avatar-buttons-row .ff-btn {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
}

/* Swatches used in demo */
.window-swatch {
  width: 20px;
  height: 20px;
  border: 1px solid #fff;
  display: inline-block;
}

.swatch-red {
  background: #f00;
}

.swatch-green {
  background: #0f0;
}

.swatch-blue {
  background: #00f;
}
