/* ==============================
   Base Container
   ============================== */
.og-generator {
  background: #0b0b0b;
  color: #e6eef6;
  max-width: 960px;
  margin: 18px auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

/* Heading */
.og-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

/* ==============================
   Layout Grid
   ============================== */
.og-grid {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.og-form, .og-preview {
  flex: 1 1 420px;
  min-width: 280px;
}

/* ==============================
   Form Fields
   ============================== */
label {
  display: block;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 6px;
  margin-top: 12px;
}

.og-input {
  width: 100%;
  background: #111827;
  border: 1px solid #1f2937;
  color: #f8fafc;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  margin-bottom: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.og-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4);
  border-color: #6366f1;
}

/* ==============================
   Buttons
   ============================== */
.og-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.og-btn {
  flex: 1;
  background: linear-gradient(180deg, #1f2937, #111827);
  color: #ffffff;
  border: none;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  transition: transform 0.15s, background 0.2s;
}

.og-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #374151, #1f2937);
}

.og-btn-secondary {
  background: transparent;
  border: 1px solid #374151;
}

.og-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==============================
   Preview Card
   ============================== */
.og-preview h3 {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 16px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 4px solid #3b82f6;
  padding-left: 10px;
}

.og-card {
  background: #111827;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  border: 1px solid #1e293b;
}

.og-card img {
  width: 110px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.og-card-body h4 {
  margin: 0;
  font-size: 16px;
  color: #ffffff;
}

.og-card-body p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #cbd5e1;
}

#og-preview-url {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #60a5fa;
  text-decoration: none;
  word-break: break-word;
}

/* ==============================
   Result Box
   ============================== */
.og-result {
  background: #0f172a;
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 13px;
  border: 1px solid #1e293b;
  margin-top: 8px;
}

/* Note text */
.og-note {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 14px;
}

/* ==============================
   Responsive Adjustments
   ============================== */
@media (max-width: 768px) {
  .og-grid {
    flex-direction: column;
  }

  .og-btn {
    flex: unset;
    width: 100%;
  }

  .og-card {
    flex-direction: column;
    text-align: center;
  }

  .og-card img {
    width: 100%;
    height: auto;
  }

  .og-card-body h4 {
    font-size: 15px;
  }

  .og-card-body p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .og-heading {
    font-size: 18px;
  }

  .og-preview h3 {
    font-size: 14px;
  }

  .og-input {
    font-size: 13px;
    padding: 9px 10px;
  }
}
