/* ✅ Open Graph Generator — Transparent Layout */
.at-og-generator {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  background: transparent; /* fully transparent */
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: inherit; /* adapts to site theme */
}

.at-og-generator h1 {
  text-align: center;
  color: #a855f7; /* Accent purple */
  margin-bottom: 15px;
}

/* ✅ Labels */
.og-form label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

/* ✅ Transparent input & textarea */
.og-form input,
.og-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid rgba(170, 170, 170, 0.4);
  background: transparent;         /* fully transparent */
  color: inherit;                  /* matches dark/light mode */
  font-size: 14px;
  transition: border-color 0.3s ease;
}

/* ✅ Placeholder adapts subtly */
.og-form input::placeholder,
.og-form textarea::placeholder {
  color: rgba(120, 120, 120, 0.7);
}

/* ✅ Highlight on focus */
.og-form input:focus,
.og-form textarea:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 4px rgba(168, 85, 247, 0.4);
}

/* ✅ Buttons */
.og-form button {
  margin-top: 12px;
  margin-right: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

#generateBtn {
  background: #a855f7;
  color: #fff;
}

#previewBtn.preview {
  background: #444;
  color: #fff;
}

#generateBtn:hover {
  background: #9333ea;
}

#previewBtn:hover {
  background: #555;
}

/* ✅ Output box */
.og-output {
  margin-top: 20px;
}

.og-output textarea {
  width: 100%;
  height: 140px;
  background: transparent;     /* transparent background */
  color: inherit;              /* adapts to theme */
  padding: 10px;
  border: 1px solid rgba(170, 170, 170, 0.4);
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
  resize: vertical;
}

.og-output textarea::placeholder {
  color: rgba(120, 120, 120, 0.7);
}

#copyBtn {
  margin-top: 8px;
  background: #a855f7;
  color: #fff;
}

#copyBtn:hover {
  background: #9333ea;
}

/* ✅ OG Preview Card */
.og-preview-card {
  margin-top: 25px;
  border: 1px solid rgba(170, 170, 170, 0.3);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: transparent; /* transparent card for theme support */
}

.og-preview-card .og-image img {
  width: 100%;
  height: auto;
  display: block;
}

.og-preview-card .og-content {
  padding: 12px;
}

.og-preview-card .og-content h3 {
  margin: 0;
  font-size: 18px;
  color: inherit; /* theme adaptive */
}

.og-preview-card .og-content p {
  margin: 5px 0;
  color: inherit;
  opacity: 0.8;
}

.og-preview-card .og-content span {
  font-size: 13px;
  color: #a855f7;
}
