/* ============================================================
   STYLE.CSS — Vizual uslublar
   Dizaynni o'zgartirish uchun faqat shu yerda o'zgartiring.
   Ranglar config.js dagi theme orqali avtomatik qo'llanadi.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  padding: 2rem 1rem 5rem;
  line-height: 1.6;
  /* ranglar config.js dan CSS variables orqali keladi */
}

.container { max-width: 620px; margin: 0 auto; }

/* --- Header --- */
.header { margin-bottom: 2rem; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.header h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 6px; }
.header p  { font-size: 15px; }

/* --- Cards --- */
.card {
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-width: 1px;
  border-style: solid;
}
.card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* --- Fields --- */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; }

input, textarea, select {
  width: 100%;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  border-width: 1px;
  border-style: solid;
}
textarea { resize: vertical; min-height: 88px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }

.char-count { font-size: 12px; text-align: right; margin-top: 4px; }

/* --- Platform buttons --- */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 400px) { .platforms { grid-template-columns: 1fr; } }

.platform-btn {
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  width: 100%;
  border-width: 1px;
  border-style: solid;
  font-family: inherit;
}
.p-emoji { font-size: 22px; display: block; margin-bottom: 8px; }
.p-name  { display: block; font-size: 14px; font-weight: 500; }
.p-desc  { display: block; font-size: 12px; margin-top: 3px; }

/* --- Error --- */
.error-box {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 1rem;
  display: none;
  border-width: 1px;
  border-style: solid;
}

/* --- Generate button --- */
.gen-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  font-family: inherit;
}
.gen-btn:hover    { opacity: 0.88; }
.gen-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.spinner {
  width: 16px; height: 16px;
  border-width: 2px;
  border-style: solid;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Results --- */
.results-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.result-card {
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  border-width: 1px;
  border-style: solid;
}
.result-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom-width: 1px;
  border-bottom-style: solid;
}
.result-platform { font-size: 14px; font-weight: 500; }
.copy-btn {
  padding: 6px 14px;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
  font-family: inherit;
  border-width: 1px;
  border-style: solid;
}
.result-body {
  padding: 16px;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
}
