/* DR Checker Plugin — style.css v1.0 */
.drc-wrap {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    max-width: 760px;
    margin: 0 auto 2rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #1e293b;
}

/* ── DARK THEME ── */
.drc-theme-dark { background: #0a0f1e; color: #f1f5f9; }
.drc-theme-dark .drc-header   { background: linear-gradient(135deg,rgba(109,40,217,.15),rgba(8,145,178,.1)); border-bottom: 1px solid #1e293b; }
.drc-theme-dark .drc-input    { background: #060b18; border-color: #1e293b; color: #f1f5f9; }
.drc-theme-dark .drc-input:focus { border-color: var(--drc-c1,#6d28d9); }
.drc-theme-dark .drc-result   { background: #060b18; border-color: #1e293b; }
.drc-theme-dark .drc-metric   { background: #0a0f1e; border-color: #1e293b; }
.drc-theme-dark .drc-bl-item  { border-color: #1e293b; }
.drc-theme-dark .drc-footer   { background: #060b18; border-top: 1px solid #1e293b; }
.drc-theme-dark .drc-footer p,
.drc-theme-dark .drc-footer a { color: #334155; }
.drc-theme-dark .drc-gauge-bg { background: #1e293b; }
.drc-theme-dark .drc-note     { background: #0f172a; border-color: #1e293b; color: #475569; }
.drc-theme-dark .drc-domain-line { border-color: #1e293b; color: #64748b; }
.drc-theme-dark .drc-subtitle { color: #475569; }
.drc-theme-dark .drc-error    { background: #1a0505; border-color: #7f1d1d; color: #fca5a5; }
.drc-theme-dark .drc-bl-domain { color: #94a3b8; }
.drc-theme-dark .drc-metric-label { color: #475569; }

/* ── LIGHT THEME ── */
.drc-theme-light { background: #ffffff; color: #0f172a; border-color: #e2e8f0; }
.drc-theme-light .drc-header   { background: linear-gradient(135deg,rgba(109,40,217,.06),rgba(8,145,178,.05)); border-bottom: 1px solid #e2e8f0; }
.drc-theme-light .drc-input    { background: #f8fafc; border-color: #e2e8f0; color: #0f172a; }
.drc-theme-light .drc-input:focus { border-color: var(--drc-c1,#6d28d9); }
.drc-theme-light .drc-result   { background: #f8fafc; border-color: #e2e8f0; }
.drc-theme-light .drc-metric   { background: #ffffff; border-color: #e2e8f0; }
.drc-theme-light .drc-bl-item  { border-color: #e2e8f0; }
.drc-theme-light .drc-footer   { background: #f8fafc; border-top: 1px solid #e2e8f0; }
.drc-theme-light .drc-footer p,
.drc-theme-light .drc-footer a { color: #94a3b8; }
.drc-theme-light .drc-gauge-bg { background: #e2e8f0; }
.drc-theme-light .drc-note     { background: #eff6ff; border-color: #bfdbfe; color: #3b82f6; }
.drc-theme-light .drc-domain-line { border-color: #e2e8f0; color: #94a3b8; }
.drc-theme-light .drc-subtitle { color: #94a3b8; }
.drc-theme-light .drc-error    { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.drc-theme-light .drc-bl-domain { color: #475569; }
.drc-theme-light .drc-metric-label { color: #94a3b8; }

/* ── HEADER ── */
.drc-header { padding: 1.8rem 2rem 1.5rem; }
.drc-title  { font-size: 1.4rem; font-weight: 800; margin: 0 0 .3rem; letter-spacing: -.02em; }
.drc-subtitle { font-size: .85rem; margin: 0; }

/* ── FORM ── */
.drc-form { padding: 1.2rem 2rem; display: flex; gap: .7rem; align-items: stretch; flex-wrap: wrap; }
.drc-input-wrap { position: relative; flex: 1; min-width: 220px; }
.drc-input-icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); font-size: 1rem; pointer-events: none; }
.drc-input {
    width: 100%; padding: .75rem .9rem .75rem 2.5rem;
    border: 1.5px solid; border-radius: 10px;
    font-size: .92rem; outline: none;
    transition: border-color .2s;
    font-family: inherit;
}
.drc-btn {
    padding: .75rem 1.8rem;
    background: linear-gradient(135deg, var(--drc-c1,#6d28d9), var(--drc-c2,#0891b2));
    color: #fff; border: none; border-radius: 10px;
    font-size: .92rem; font-weight: 700;
    cursor: pointer; transition: .2s;
    font-family: inherit; white-space: nowrap;
}
.drc-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(109,40,217,.35); }
.drc-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.drc-btn-loader { display: none; }

/* ── ERROR ── */
.drc-error { margin: 0 2rem 1rem; padding: .75rem 1rem; border: 1px solid; border-radius: 10px; font-size: .85rem; }

/* ── RESULT ── */
.drc-result { margin: 0 2rem 1.5rem; border: 1px solid; border-radius: 14px; padding: 1.4rem; }
.drc-domain-line { font-size: .82rem; padding-bottom: .9rem; margin-bottom: 1.1rem; border-bottom: 1px solid; }
.drc-domain-line b { font-weight: 700; }

/* Metrics row */
.drc-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; margin-bottom: 1.1rem; }
.drc-metric { border: 1px solid; border-radius: 10px; padding: .9rem .5rem; text-align: center; }
.drc-metric-val {
    font-size: 1.9rem; font-weight: 900; line-height: 1;
    background: linear-gradient(135deg, var(--drc-c1,#6d28d9), var(--drc-c2,#0891b2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.drc-metric-val.drc-color-good     { -webkit-text-fill-color: #4ade80; color: #4ade80; background: none; }
.drc-metric-val.drc-color-average  { -webkit-text-fill-color: #facc15; color: #facc15; background: none; }
.drc-metric-val.drc-color-low      { -webkit-text-fill-color: #f87171; color: #f87171; background: none; }
.drc-metric-label { font-size: .68rem; font-weight: 600; margin-top: .25rem; }

/* Gauge */
.drc-gauge { margin-bottom: 1rem; }
.drc-gauge-labels { display: flex; justify-content: space-between; font-size: .72rem; margin-bottom: .3rem; }
.drc-gauge-labels .drc-score-label { font-weight: 700; }
.drc-gauge-bg { height: 9px; border-radius: 99px; overflow: hidden; }
.drc-gauge-fill {
    height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, var(--drc-c1,#6d28d9), var(--drc-c2,#0891b2));
    transition: width .8s ease;
}

/* Metrics row 2 */
.drc-metrics-2 { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; margin-bottom: 1rem; }
.drc-metrics-2 .drc-metric-val { font-size: 1.1rem; }

/* Backlinks table */
.drc-backlinks-title { font-size: .78rem; font-weight: 700; margin-bottom: .5rem; }
.drc-bl-item { display: flex; align-items: center; justify-content: space-between; padding: .38rem 0; border-bottom: 1px solid; font-size: .78rem; }
.drc-bl-item:last-child { border: none; }
.drc-bl-domain { font-weight: 500; }
.drc-badge { padding: .15rem .55rem; border-radius: 99px; font-size: .65rem; font-weight: 700; }
.drc-badge-do { background: #052e16; color: #4ade80; }
.drc-badge-no { background: #2d1515; color: #f87171; }
.drc-theme-light .drc-badge-do { background: #dcfce7; color: #166534; }
.drc-theme-light .drc-badge-no { background: #fee2e2; color: #991b1b; }

/* Note */
.drc-note { margin-top: 1rem; padding: .65rem .9rem; border: 1px solid; border-radius: 8px; font-size: .75rem; }

/* Footer */
.drc-footer { padding: .7rem 2rem; text-align: center; }
.drc-footer p { font-size: .72rem; margin: 0; }
.drc-footer a { text-decoration: none; }

/* Responsive */
@media (max-width: 520px) {
    .drc-header  { padding: 1.3rem 1.2rem 1rem; }
    .drc-form    { padding: 1rem 1.2rem; flex-direction: column; }
    .drc-btn     { width: 100%; text-align: center; }
    .drc-result  { margin: 0 1.2rem 1.2rem; padding: 1rem; }
    .drc-metrics,
    .drc-metrics-2 { grid-template-columns: repeat(3,1fr); gap: .5rem; }
}
