/* =========================================================
   Unique Content Generator — Frontend Module Styles
   All classes namespaced with .ucg- to avoid theme collisions
   ========================================================= */

/* ── Wrapper (all modules share this) ───────────────────── */
.ucg-module-wrapper {
    margin: 2em 0;
    font-family: inherit;
    box-sizing: border-box;
}
.ucg-module-wrapper *,
.ucg-module-wrapper *::before,
.ucg-module-wrapper *::after {
    box-sizing: inherit;
}

/* ── Stage 1 placeholder (admin-only) ───────────────────── */
.ucg-placeholder {
    border: 2px dashed #1a6fc4;
    border-radius: 8px;
    background: #f3f8ff;
    padding: 0;
}
.ucg-placeholder-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}
.ucg-placeholder-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.ucg-placeholder-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.ucg-placeholder-text strong {
    font-size: 14px;
    color: #1a6fc4;
}
.ucg-placeholder-text span {
    font-size: 12px;
    color: #555;
}
.ucg-placeholder-text em {
    font-style: normal;
    font-weight: 600;
    color: #333;
}
.ucg-placeholder-link {
    font-size: 12px;
    color: #1a6fc4;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.ucg-placeholder-link:hover {
    text-decoration: underline;
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ucg-module-wrapper * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ucg-placeholder-inner {
        flex-wrap: wrap;
    }
    .ucg-placeholder-link {
        width: 100%;
    }
}

/* ── Editorial Insight Module ────────────────────────────────────────────── */
.ucg-editorial {
    border-left: 4px solid #1a6fc4;
    background: #f7f9fc;
    border-radius: 0 8px 8px 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Format accent colors */
.ucg-editorial--matters_most  { border-left-color: #1a6fc4; }  /* blue */
.ucg-editorial--misunderstood { border-left-color: #6a1b9a; }  /* purple */
.ucg-editorial--perspective   { border-left-color: #00695c; }  /* teal */
.ucg-editorial--mistake       { border-left-color: #c62828; }  /* red */

.ucg-editorial--misunderstood { background: #faf7ff; }
.ucg-editorial--perspective   { background: #f4faf9; }
.ucg-editorial--mistake       { background: #fff7f7; }

.ucg-editorial-inner {
    padding: 24px 28px;
}

.ucg-editorial-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.ucg-editorial-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #1a6fc4;
    background: #e8f0fc;
    padding: 3px 10px;
    border-radius: 10px;
}

.ucg-editorial--misunderstood .ucg-editorial-label { color: #6a1b9a; background: #f3e5f5; }
.ucg-editorial--perspective   .ucg-editorial-label { color: #00695c; background: #e0f2f1; }
.ucg-editorial--mistake       .ucg-editorial-label { color: #c62828; background: #fce4ec; }

.ucg-editorial-headline {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1d2327 !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: none !important;
}

.ucg-editorial-body {
    font-size: 15px;
    line-height: 1.7;
    color: #3c4858;
}
.ucg-editorial-body p {
    margin: 0 0 12px;
}
.ucg-editorial-body p:last-child {
    margin-bottom: 0;
}

.ucg-editorial-bullets {
    list-style: none;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    border-top: 1px solid rgba(0,0,0,.08);
    padding-top: 14px !important;
}
.ucg-editorial-bullets li {
    padding: 5px 0 5px 22px;
    position: relative;
    font-size: 14px;
    color: #3c4858;
    line-height: 1.5;
}
.ucg-editorial-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #1a6fc4;
    font-weight: 700;
}
.ucg-editorial--misunderstood .ucg-editorial-bullets li::before { color: #6a1b9a; }
.ucg-editorial--perspective   .ucg-editorial-bullets li::before { color: #00695c; }
.ucg-editorial--mistake       .ucg-editorial-bullets li::before { color: #c62828; }

.ucg-editorial-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.ucg-editorial-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a6fc4;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s;
}
.ucg-editorial-cta:hover { background: #155a9e; }
.ucg-editorial--misunderstood .ucg-editorial-cta { background: #6a1b9a; }
.ucg-editorial--misunderstood .ucg-editorial-cta:hover { background: #4a148c; }
.ucg-editorial--perspective   .ucg-editorial-cta { background: #00695c; }
.ucg-editorial--perspective   .ucg-editorial-cta:hover { background: #004d40; }
.ucg-editorial--mistake       .ucg-editorial-cta { background: #c62828; }
.ucg-editorial--mistake       .ucg-editorial-cta:hover { background: #b71c1c; }

/* Preview mode in admin (no pointer events on CTA) */
.ucg-preview-mode .ucg-editorial-cta { pointer-events: none; }

@media (max-width: 600px) {
    .ucg-editorial-inner { padding: 18px 20px; }
    .ucg-editorial-headline { font-size: 18px !important; }
}
