/* Berita AI Generator - Public Frontend */
.bag-fe-wrap {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 900px; margin: 40px auto; background: #F9F9F7; border: 1px solid #111;
  padding: 40px; box-shadow: 6px 6px 0 0 rgba(17,17,17,1); color: #111;
}
.bag-fe-header { border-bottom: 1px solid #111; padding-bottom: 20px; margin-bottom: 24px; }
.bag-fe-badge { display: inline-block; background: #D90429; color: #fff; font-family: monospace; font-size: 11px; padding: 3px 10px; letter-spacing: 0.15em; margin-bottom: 12px; }
.bag-fe-header h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 34px; font-weight: 900; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.02em; color: #111; }
.bag-fe-header p { color: #555; margin: 0; font-size: 15px; }

.bag-fe-form .bag-field { margin-bottom: 16px; }
.bag-fe-form .bag-field label { display: block; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; color: #111; }
.bag-fe-form input[type="text"], .bag-fe-form textarea, .bag-fe-form select {
  width: 100%; padding: 12px 14px; border: 1px solid #111; border-radius: 0;
  background: #fff; font-family: inherit; font-size: 14px; box-sizing: border-box; color: #111;
}
.bag-fe-form input:focus, .bag-fe-form textarea:focus, .bag-fe-form select:focus { outline: 2px solid #D90429; outline-offset: 2px; }
.bag-fe-form .bag-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bag-fe-form .bag-section-label { display: block; text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; font-weight: 700; margin: 20px 0 10px; border-top: 1px solid #111; padding-top: 14px; }
.bag-fe-form .bag-quote-item { display: grid; grid-template-columns: 200px 1fr 40px; gap: 8px; margin-bottom: 8px; }
.bag-fe-form .bag-quote-item input, .bag-fe-form .bag-quote-item textarea { padding: 8px 10px; }
.bag-fe-form .bag-remove-quote { background: #fff; border: 1px solid #111; color: #D90429; cursor: pointer; font-weight: 700; height: 38px; }
.bag-fe-form .bag-add-quote { background: #fff; border: 1px solid #111; padding: 8px 14px; cursor: pointer; font-family: inherit; margin-top: 6px; }

.bag-fe-actions { margin-top: 28px; padding-top: 20px; border-top: 1px solid #111; }
.bag-fe-btn {
  background: #D90429; color: #fff; border: 1px solid #111; padding: 14px 36px;
  font-family: inherit; font-weight: 700; font-size: 15px; letter-spacing: 0.08em;
  cursor: pointer; box-shadow: 4px 4px 0 0 rgba(17,17,17,1);
  transition: transform 0.1s, box-shadow 0.1s;
}
.bag-fe-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 rgba(17,17,17,1); }
.bag-fe-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.bag-fe-result { margin-top: 30px; }
.bag-fe-result:empty { display: none; }
.bag-fe-loading { text-align: center; padding: 40px; }
.bag-fe-spinner { display: inline-block; width: 42px; height: 42px; border: 3px solid #eee; border-top-color: #D90429; border-radius: 50%; animation: bagfespin 0.8s linear infinite; }
@keyframes bagfespin { to { transform: rotate(360deg); } }
.bag-fe-article { background: #fff; border: 1px solid #111; padding: 32px; box-shadow: 4px 4px 0 0 rgba(17,17,17,1); }
.bag-fe-article h3.bag-fe-title { font-family: 'Playfair Display', Georgia, serif; font-size: 30px; font-weight: 900; line-height: 1.2; margin: 0 0 14px; color: #111; }
.bag-fe-meta { background: #F9F9F7; border-left: 3px solid #D90429; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; color: #444; }
.bag-fe-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.bag-fe-tag { background: #111; color: #fff; font-family: monospace; font-size: 11px; padding: 3px 9px; }
.bag-fe-body { line-height: 1.75; font-size: 15px; color: #222; }
.bag-fe-body h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; margin-top: 22px; color: #111; }
.bag-fe-body blockquote { border-left: 4px solid #D90429; margin: 18px 0; padding: 10px 18px; background: #F9F9F7; font-style: italic; }
.bag-fe-error { background: #fee; border: 1px solid #D90429; color: #D90429; padding: 14px 18px; font-weight: 600; }
.bag-fe-success-note { background: #efe; border: 1px solid #0a6b30; color: #0a6b30; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
