/* ==========================================================================
   VISUAL HULL: TOPIC AUTHORITY BUILDER CSS
   ========================================================================== */

/* Split Editor Layout */
.vh-split-editor { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-top: 20px; align-items: start; }
@media (max-width: 1024px) { .vh-split-editor { grid-template-columns: 1fr; } }

/* Sticky Right Sidebar */
.vh-sidebar-sticky { position: sticky; top: 20px; height: calc(100vh - 40px); overflow-y: auto; padding-right: 5px; }
.vh-sidebar-sticky::-webkit-scrollbar { width: 4px; }
.vh-sidebar-sticky::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }

/* Rich Text Editor Styling (Forced Black Text, Blue Links, Left Aligned) */
.ql-container { font-family: 'Inter', sans-serif; font-size: 16px; min-height: 800px; background: #fff; line-height: 1.6; }
.ql-toolbar { background: #f8fafc; border-radius: 8px 8px 0 0; border-color: var(--gray-200); position: sticky; top: 0; z-index: 100; }
.ql-container.ql-snow { border-color: var(--gray-200); border-radius: 0 0 8px 8px; }
.ql-editor { color: #000000 !important; text-align: left !important; }
.ql-editor a { color: #2563eb !important; text-decoration: underline !important; }
.ql-editor h1 { margin-top: 1.5em; margin-bottom: 0.5em; font-weight: 800; font-size: 2em; }
.ql-editor h2 { margin-top: 1.5em; margin-bottom: 0.5em; font-weight: 700; font-size: 1.5em; }

/* Animated Gauge */
.gauge-container { position: relative; width: 200px; height: 110px; margin: 0 auto 20px auto; }
.gauge-bg { fill: none; stroke: #e5e7eb; stroke-width: 12; stroke-linecap: round; }
.gauge-fill { fill: none; stroke: #B91C1C; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; transition: stroke-dashoffset 1.5s ease-out, stroke 1s ease; }
.gauge-text { position: absolute; bottom: 0; left: 0; width: 100%; text-align: center; }
.gauge-score { font-size: 42px; font-weight: 800; font-family: 'Space Grotesk', sans-serif; line-height: 1; color: #111827; }
.gauge-label { font-size: 13px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Content Structure Grid */
.structure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.struct-item { display: flex; flex-direction: column; position: relative; }
.struct-label { font-size: 11px; color: var(--gray-500); text-transform: uppercase; font-weight: 700; margin-bottom: 4px; display:flex; align-items:center; justify-content:center; gap:4px; }
.struct-val { font-size: 16px; font-weight: 800; color: #111827; }
.struct-target { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.struct-val.good { color: #047857; }
.struct-val.warn { color: #D97706; }

/* Info Tooltips */
.info-icon { display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px; border-radius:50%; background:var(--gray-200); color:var(--gray-600); font-size:9px; cursor:help; font-weight:bold; }
.tooltip-text { visibility:hidden; width:200px; background-color:#111827; color:#fff; text-align:center; border-radius:6px; padding:8px 10px; position:absolute; z-index:1; bottom:125%; left:50%; margin-left:-100px; font-size:11px; opacity:0; transition:opacity 0.3s; text-transform:none; font-weight:500; }
.tooltip-text::after { content:""; position:absolute; top:100%; left:50%; margin-left:-5px; border-width:5px; border-style:solid; border-color:#111827 transparent transparent transparent; }
.struct-label:hover .tooltip-text { visibility:visible; opacity:1; }

/* NLP List */
.nlp-list { display: flex; flex-direction: column; gap: 8px; }
.nlp-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; background: #f8fafc; border: 1px solid var(--gray-200); transition: all 0.3s ease; }
.nlp-item.found { background: rgba(16,185,129,.08); color: #047857; border-color: rgba(16,185,129,.25); }

/* Tech SEO / CWV Box */
.cwv-box { background: #f8fafc; border: 1px solid var(--gray-200); padding: 12px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.cwv-label { font-size: 13px; font-weight: 700; color: #1f2937; }
.cwv-val { font-size: 14px; font-weight: 800; color: #B91C1C; background: rgba(239,68,68,.1); padding: 4px 8px; border-radius: 4px; }
.cwv-val.pass { color: #047857; background: rgba(16,185,129,.1); }

/* Tabs */
.vh-tab-nav { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 20px; }
.vh-tab-btn { flex: 1; padding: 10px; text-align: center; font-size: 12px; font-weight: 700; color: var(--gray-500); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.vh-tab-btn.active { color: var(--primary-blue); border-bottom-color: var(--primary-blue); }
.vh-tab-content { display: none; }
.vh-tab-content.active { display: block; }

/* General Utilities */
.processing-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 0; }
.pulse-logo { width: 80px; height: 80px; animation: pulse-glow 2s infinite; border-radius: 50%; }
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); transform: scale(1); } 70% { box-shadow: 0 0 0 20px rgba(59, 130, 246, 0); transform: scale(1.05); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); transform: scale(1); } }
.radio-group { display: flex; gap: 15px; margin-top: 8px; }
.radio-label { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.pro-list { padding: 0; margin: 0; list-style: none; text-align: left; }
.pro-list li { font-size: 13px; color: var(--gray-600); margin-bottom: 12px; display: flex; align-items: start; gap: 8px; line-height: 1.4; }
.pro-list li::before { content: '✨'; font-size: 14px; }
