/* RhinoScraper CSS - Modern OSINT Dashboard */

.rhinoscraper-container { max-width: 960px; margin: 0 auto; }

.rhinoscraper-form { margin: 16px 0; background: transparent; }
.rhinoscraper-intro { font-size: var(--font-size-sm); color: var(--text-secondary); margin-bottom: 14px; line-height: 1.6; }
.rhinoscraper-depth-hint { font-size: var(--font-size-xs); color: var(--text-muted); margin-top: 6px; }
.rhinoscraper-form-actions { justify-content: center; margin-top: 18px; }

/* Progress */
.rhinoscraper-progress { margin: 18px 0; }

.rhinoscraper-progress-bar {
    height: 4px;
    background: var(--bg-surface);
    border: none;
    border-radius: 2px;
    margin: 12px 0;
    overflow: hidden;
}

.rhinoscraper-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    background-size: 200% 100%;
    border-radius: 2px;
    transition: width 0.4s var(--ease-out);
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.rhinoscraper-progress-info { font-size: var(--font-size-sm); color: var(--text-secondary); font-family: var(--font-mono); }

/* Results */
.rhinoscraper-results { margin: 18px 0; }
.rhinoscraper-results-header { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.rhinoscraper-results-title { margin: 0; font-weight: 700; }

/* Stats */
.rhinoscraper-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 140px)); gap: 10px; margin: 18px 0; justify-content: start; }

#rhinoscraper-progress { background: transparent; }
#rhinoscraper-results { background: transparent; font-size: var(--font-size-sm); color: var(--text-secondary); }
#rhinoscraper-results small { color: var(--text-muted); }
#rhinoscraper-results code { font-family: var(--font-mono); font-size: var(--font-size-sm); color: var(--accent); }
#rhinoscraper-results a { font-size: inherit; color: var(--accent); }

.rs-detail { margin-left: 16px; font-size: var(--font-size-sm); color: var(--text-secondary); }

.rs-badge {
    padding: 3px 8px;
    font-size: var(--font-size-xs);
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
}

/* Report Sections (Accordion) */
.rs-report { display: flex; flex-direction: column; gap: 8px; }

.rs-report-actions { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 4px; }

.rs-report-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    overflow: hidden;
    transition: border-color 0.2s var(--ease-out);
}

.rs-report-section:hover { border-color: var(--border-color-light); }

.rs-report-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s var(--ease-out);
}

.rs-report-header:hover { background: var(--bg-surface-hover); }

.rs-report-header h4 {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: 650;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rs-report-header h4 i {
    font-size: 1.1em;
    color: var(--accent);
    flex-shrink: 0;
}

.rs-report-chevron {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.25s var(--ease-out);
    position: relative;
}

.rs-report-chevron::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-45deg);
    transition: border-color 0.2s;
}

.rs-report-section.open .rs-report-chevron { transform: rotate(90deg); }
.rs-report-section.open .rs-report-chevron::before { border-color: var(--accent); }

.rs-report-count {
    font-size: var(--font-size-xs);
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-bg);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.rs-report-count:empty { display: none; }

.rs-report-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-left: auto;
}

.rs-report-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-out), padding 0.25s var(--ease-out);
    padding: 0 16px;
}

.rs-report-section.open .rs-report-body {
    max-height: 5000px;
    padding: 0 16px 16px;
    overflow: visible;
}

.rs-report-section.open {
    border-color: var(--border-color-light);
}

.rhinoscraper-contact-item, .rhinoscraper-link-item { padding: 5px 0; border-bottom: 1px solid var(--border-color); font-size: var(--font-size-sm); color: var(--text-secondary); }
.rhinoscraper-contact-item:last-child, .rhinoscraper-link-item:last-child { border-bottom: none; }

.risk-high { color: var(--error); font-weight: bold; }
.risk-medium { color: var(--warning); }
.risk-low { color: var(--success); }

textarea[readonly] { color: var(--text-secondary) !important; background-color: var(--bg-surface) !important; }
textarea[readonly]::selection { background-color: var(--accent) !important; color: #fff !important; }

.donation-box { margin-top: 18px; padding: 14px; border: 1px solid var(--accent-border); background: var(--accent-bg); text-align: center; border-radius: var(--radius-lg); }
.donation-text { font-size: var(--font-size-sm); color: var(--accent); margin-bottom: 8px; }

.wayback-archive { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px; margin-bottom: 8px; }
.wayback-link { background: var(--bg-surface-hover); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--accent); padding: 5px 12px; text-decoration: none; display: inline-block; font-size: var(--font-size-sm); transition: all 0.2s var(--ease-out); }
.wayback-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-glow-sm); }
.wayback-info { margin-top: 8px; padding: 10px; background: var(--bg-surface-hover); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: var(--font-size-sm); color: var(--text-secondary); }

.git-warning { background: var(--warning-bg); border: 1px solid var(--warning-border); border-radius: var(--radius-md); padding: 14px; margin-bottom: 8px; }
.git-recommendation { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px; }
.missing-files-info { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px; margin-bottom: 8px; }

.content-textarea { font-family: var(--font-mono); font-size: var(--font-size-sm); width: 100%; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 10px; resize: vertical; white-space: pre-wrap; color: var(--text-primary); }
.content-textarea-small { height: 60px; }
.content-textarea-large { height: 120px; margin-top: 4px; }

.rhinoscraper-stats-card { text-align: center; padding: 12px; border: 1px solid var(--border-color); background: var(--bg-surface); border-radius: var(--radius-md); transition: all 0.2s var(--ease-out); }
.rhinoscraper-stats-card:hover { border-color: var(--border-color-light); transform: translateY(-1px); }
.rhinoscraper-stats-label { font-size: var(--font-size-xs); color: var(--text-muted); }
.rhinoscraper-stats-value { font-size: var(--font-size-xl); font-weight: 800; color: var(--text-primary); }

.rhinoscraper-success { color: var(--success); font-size: var(--font-size-sm); }
.rhinoscraper-error { color: var(--error); font-size: var(--font-size-sm); font-weight: bold; }

.rhinoscraper-section { margin: 10px 0; padding: 14px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-surface-hover); }
.rhinoscraper-section-title { font-weight: 650; margin-bottom: 8px; color: var(--text-primary); }
.rhinoscraper-dir-list { margin-left: 14px; font-size: var(--font-size-sm); color: var(--text-secondary); }
.rhinoscraper-dir-item { margin: 3px 0; }
.rhinoscraper-browse-link { font-size: var(--font-size-sm); margin-left: 4px; color: var(--text-muted); }
.rhinoscraper-dir-link { text-decoration: underline; color: var(--accent); }
.rhinoscraper-info-box { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 10px; font-size: var(--font-size-sm); color: var(--text-muted); }
.rhinoscraper-small-text { font-size: var(--font-size-sm); color: var(--text-muted); }
.rhinoscraper-monospace { font-family: var(--font-mono); }
.rhinoscraper-file-item { padding: 3px 8px; font-family: var(--font-mono); font-size: var(--font-size-sm); color: var(--text-muted); }
.rhinoscraper-flex-row { display: flex; margin-bottom: 8px; }
.rhinoscraper-status-center { text-align: center; margin: 10px 0; }
.rhinoscraper-margin-left { margin-left: 8px; }
.rhinoscraper-margin-top { margin-top: 8px; }
.rhinoscraper-small-muted { font-size: var(--font-size-sm); margin-top: 4px; color: var(--text-muted); }
.rhinoscraper-text-muted { color: var(--text-muted); }
.rhinoscraper-text-success { color: var(--success); }
.rhinoscraper-link-small { color: var(--accent); text-decoration: none; font-size: var(--font-size-sm); }

/* Iconoir inline icons */
.rhinoscraper-section i[class^="iconoir-"],
.rhinoscraper-contact-item i[class^="iconoir-"],
.rhinoscraper-results i[class^="iconoir-"] { vertical-align: middle; }

.rs-report-actions .btn { font-size: var(--font-size-xs); padding: 4px 10px; }

/* Dark theme compat - no-op */
body.dark-theme .rhinoscraper-form,
body.dark-theme #rhinoscraper-progress,
body.dark-theme #rhinoscraper-results { color: var(--text-primary); }
