/* ============================================================
   Logline Generator v2.1 — Frontend CSS
   High-contrast, action-encouraging design
   ============================================================ */

.llg-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
}

/* ─── Header ──────────────────────────────────────────────── */
.llg-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.llg-header__titles { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.llg-title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; color: #111; }

.llg-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #3a2f00;
    color: #f5d97a;
    padding: 4px 11px;
    border-radius: 20px;
}

.llg-credit-pill {
    font-size: 13px;
    font-weight: 700;
    color: #0a5c2a;
    background: #d0f0de;
    border: 2px solid #4caf7d;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.llg-credit-pill--low {
    color: #7a2e00;
    background: #ffe8cc;
    border-color: #e07b20;
}

.llg-intro {
    margin: 0 0 20px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

/* ─── Mode toggle ─────────────────────────────────────────── */
.llg-mode-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    border: 2px solid #0c2d3b;
    border-radius: 8px;
    overflow: hidden;
}
.llg-mode-btn {
    flex: 1;
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 700;
    background: #d6e8ef;
    border: none;
    border-right: 2px solid #0c2d3b;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    color: #0c2d3b;
    letter-spacing: 0.01em;
}
.llg-mode-btn:last-child { border-right: none; }
.llg-mode-btn:hover { background: #fff; color: #0c2d3b; }
.llg-mode-btn--active {
    background: #0c2d3b;
    color: #fff;
}

/* ─── Drop zone ───────────────────────────────────────────── */
.llg-dropzone {
    border: 3px dashed #1a1a1a;
    border-radius: 10px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    margin-bottom: 14px;
    outline: none;
    background: #f7f5ee;
}
.llg-dropzone:hover,
.llg-dropzone:focus,
.llg-dropzone--active {
    border-color: #c9a227;
    background: #fdf5d8;
}
.llg-dropzone__icon { font-size: 36px; margin-bottom: 10px; display: block; }
.llg-dropzone__label {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}
.llg-dropzone__label--selected { color: #0a5c2a; }
.llg-dropzone__hint {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

/* ─── Textarea ────────────────────────────────────────────── */
.llg-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    font-size: 14px;
    font-weight: 500;
    font-family: "Courier New", Courier, monospace;
    border: 3px solid #1a1a1a;
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fafafa;
    margin-bottom: 14px;
    transition: border-color 0.15s;
}
.llg-textarea:focus { outline: none; border-color: #c9a227; background: #fff; }
.llg-textarea::placeholder { color: #888; font-weight: 400; }

/* ─── Alerts ──────────────────────────────────────────────── */
.llg-alert {
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.5;
}
.llg-alert--error     { background: #ffeaea; border: 2px solid #d93025; color: #7a0000; }
.llg-alert--warning   { background: #fffbe6; border: 2px solid #f0a500; color: #6a4000; }
.llg-alert--low-credits { background: #fff3e0; border: 2px solid #e07b20; color: #6a2e00; }

.llg-buy-more-inline  { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-left: 8px; align-items: center; }
.llg-topup-link {
    display: inline-block;
    padding: 3px 12px;
    background: #fff;
    border: 2px solid #c9a227;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #6a4000;
    text-decoration: none;
}
.llg-topup-link:hover { background: #fdf5d8; text-decoration: none; }

/* ─── Generate button ─────────────────────────────────────── */
.llg-btn--generate {
    width: 100%;
    background: #0c2d3b;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    padding: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
    box-shadow: 0 3px 0 #071920;
}
.llg-btn--generate:hover    { background: #0f3d50; transform: translateY(-1px); }
.llg-btn--generate:active   { transform: translateY(1px); box-shadow: none; }
.llg-btn--generate:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.llg-credit-cost {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.85;
    margin-left: 8px;
}

/* ─── Shared button base ──────────────────────────────────── */
.llg-btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
    border: none;
    line-height: 1.4;
}
.llg-btn--primary   { background: #c9a227; color: #fff; }
.llg-btn--primary:hover { background: #a8871f; color: #fff; text-decoration: none; }
.llg-btn--secondary {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    font-weight: 700;
}
.llg-btn--secondary:hover { background: #1a1a1a; color: #fff; text-decoration: none; }

/* ─── Gate views ──────────────────────────────────────────── */
.llg-gate {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 28px;
    border: 3px solid #1a1a1a;
    border-radius: 14px;
    background: #f7f5ee;
}
.llg-gate__icon  { font-size: 44px; margin-bottom: 16px; }
.llg-gate__title { font-size: 24px; font-weight: 800; margin: 0 0 12px; color: #111; }
.llg-gate__desc  { font-size: 15px; font-weight: 500; color: #333; margin: 0 0 20px; }
.llg-gate__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ─── Bundle option cards ─────────────────────────────────── */
.llg-bundle-options {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 20px;
}
.llg-bundle-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 22px;
    min-width: 120px;
    border: 3px solid #1a1a1a;
    border-radius: 10px;
    text-decoration: none;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    cursor: pointer;
    color: #1a1a1a;
}
.llg-bundle-option:hover {
    border-color: #c9a227;
    background: #fdf5d8;
    transform: translateY(-2px);
    text-decoration: none;
    color: #1a1a1a;
}
.llg-bundle-credits { font-size: 34px; font-weight: 800; line-height: 1; color: #1a1a1a; }
.llg-bundle-label   { font-size: 13px; font-weight: 600; color: #555; margin: 3px 0 8px; }
.llg-bundle-price {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    background: #1a5c1a;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ─── Results area ────────────────────────────────────────── */
.llg-divider { border: none; border-top: 3px solid #1a1a1a; margin: 32px 0 24px; }
.llg-results-title { font-size: 20px; font-weight: 800; margin: 0 0 16px; color: #111; }

/* ─── Logline cards ───────────────────────────────────────── */
.llg-logline-card {
    border: 2px solid #1a1a1a;
    border-left: 6px solid #1a1a1a;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 14px;
    background: #fff;
    transition: box-shadow 0.15s;
}
.llg-logline-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.12); }
.llg-logline-card--p1 { border-left-color: #1a5bbf; border-color: #1a5bbf; }
.llg-logline-card--p2 { border-left-color: #1a7c42; border-color: #1a7c42; }
.llg-logline-card--p3 { border-left-color: #c97000; border-color: #c97000; }
.llg-logline-card--p4 { border-left-color: #c0392b; border-color: #c0392b; }
.llg-logline-card--p5 { border-left-color: #6d28d9; border-color: #6d28d9; }
.llg-logline-card--p6 { border-left-color: #0e7490; border-color: #0e7490; }

.llg-logline-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.llg-pattern-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 2px solid currentColor;
}
.llg-pattern-badge--p1 { background: #dceeff; color: #1a3d8f; }
.llg-pattern-badge--p2 { background: #d0f0de; color: #0a4a28; }
.llg-pattern-badge--p3 { background: #fde8c0; color: #7a3d00; }
.llg-pattern-badge--p4 { background: #fdd; color: #7a1010; }
.llg-pattern-badge--p5 { background: #ede9ff; color: #4c1d95; }
.llg-pattern-badge--p6 { background: #cff4fc; color: #084f62; }
.llg-pattern-badge__icon { font-size: 13px; }

.llg-copy-btn {
    background: #f0f0f0;
    border: 2px solid #888;
    border-radius: 5px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: #333;
    transition: background 0.1s, border-color 0.1s;
    white-space: nowrap;
}
.llg-copy-btn:hover { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

.llg-logline-text {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.65;
    margin: 0 0 12px;
    color: #111;
}
.llg-logline-meta { border-top: 2px solid #e8e8e8; padding-top: 10px; }
.llg-logline-why,
.llg-logline-thumb { font-size: 13px; font-weight: 500; color: #444; margin: 0 0 5px; line-height: 1.5; }
.llg-logline-thumb { margin-bottom: 0; }
.llg-meta-label    { font-weight: 800; color: #222; }

/* ─── Workshop prompt ─────────────────────────────────────── */
.llg-workshop-prompt {
    margin-top: 24px;
    padding: 18px 20px;
    background: #d6e8ef;
    border-radius: 8px;
    border: 2px solid #0c2d3b;
    font-size: 15px;
    font-weight: 500;
    color: #0c2d3b;
}
.llg-workshop-prompt p { margin: 0; }
.llg-workshop-prompt strong { font-weight: 800; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .llg-header          { flex-direction: column; }
    .llg-bundle-options  { flex-direction: column; align-items: center; }
    .llg-bundle-option   { width: 100%; max-width: 260px; flex-direction: row; justify-content: space-between; }
    .llg-bundle-credits  { font-size: 26px; }
    .llg-gate__actions   { flex-direction: column; align-items: stretch; }
    .llg-logline-card__header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .llg-btn--generate   { font-size: 16px; padding: 14px; }
}
