/* results.css - Results dashboard page styles */

.results-page { padding: 40px 0 80px; }

/* Header */
.results-header  { margin-bottom: 32px; }
.results-url     { font-size: 14px; color: #8898B8; margin-bottom: 8px; }
.domain-link     { color: #FFFFFF; font-weight: 600; text-decoration: none; }
.domain-link:hover { color: #00D4FF; }
.results-title   { font-family: 'Syne', Arial, sans-serif; font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.results-sub     { font-size: 14px; color: #8898B8; }
.btn-reanalyze   { display: inline-block; margin-top: 12px; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #FFFFFF; border-radius: 8px; padding: 7px 16px; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn-reanalyze:hover { border-color: #1A56FF; }

/* Error banner */
.error-banner { background: rgba(239,68,68,0.12); border-bottom: 1px solid rgba(239,68,68,0.3); padding: 14px 0; color: #FCA5A5; font-size: 14px; }
.error-banner a { color: #00D4FF; margin-left: 8px; }

/* Score overview */
.score-overview { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 24px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 36px; margin-bottom: 28px; }
.overall-score-wrap { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; gap: 8px; min-width: 180px; }
.score-ring-svg  { width: 150px; height: 150px; }
.score-ring-bg   { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 10; }
.score-ring-fill { fill: none; stroke-width: 10; stroke-linecap: round; }
.score-ring-text { font-family: 'Syne', Arial, sans-serif; font-size: 32px; font-weight: 800; fill: white; }
.score-ring-label{ font-size: 11px; fill: #8898B8; }
.overall-grade   { font-size: 13px; text-align: center; }
.grade-a { color: #22C55E; font-weight: 700; }
.grade-b { color: #60A5FA; font-weight: 700; }
.grade-c { color: #F59E0B; font-weight: 700; }
.grade-d { color: #EF4444; font-weight: 700; }

.sub-scores { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 16px; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }
.sub-score-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 20px; width: calc(50% - 8px); }
.sub-score-top  { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: flex-start; -ms-flex-align: flex-start; align-items: flex-start; margin-bottom: 12px; }
.sub-score-name { font-size: 13px; color: #8898B8; font-weight: 500; }
.sub-score-val  { font-family: 'Syne', Arial, sans-serif; font-size: 22px; font-weight: 800; }
.score-bar-track{ height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; }
.score-bar-fill { height: 6px; border-radius: 3px; width: 0%; -webkit-transition: width 1.2s ease; transition: width 1.2s ease; }

/* Tabs */
.tabs { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 4px; margin-bottom: 22px; background: rgba(255,255,255,0.04); border-radius: 12px; padding: 4px; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.tab-btn { background: none; border: none; color: #8898B8; font-family: 'DM Sans', Arial, sans-serif; font-size: 14px; font-weight: 500; padding: 8px 18px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.tab-btn.active { background: #1A56FF; color: #FFFFFF; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Issues */
.issues-list { }
.issue-card  { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 16px 18px; display: -webkit-box; display: -ms-flexbox; display: flex; gap: 14px; -webkit-box-align: flex-start; -ms-flex-align: flex-start; align-items: flex-start; margin-bottom: 10px; }
.issue-dot   { width: 10px; height: 10px; border-radius: 50%; -ms-flex-negative: 0; flex-shrink: 0; margin-top: 5px; }
.dot-error   { background: #EF4444; }
.dot-warning { background: #F59E0B; }
.dot-info    { background: #60A5FA; }
.issue-body  { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }
.issue-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.issue-desc  { font-size: 13px; color: #8898B8; line-height: 1.55; }
.issue-fix   { font-size: 12px; color: #7AABFF; margin-top: 6px; }
.issue-impact{ font-size: 11px; font-weight: 700; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 100px; -ms-flex-negative: 0; flex-shrink: 0; white-space: nowrap; }
.impact-high   { background: rgba(239,68,68,0.15);  color: #EF4444; }
.impact-medium { background: rgba(245,158,11,0.15); color: #F59E0B; }
.impact-low    { background: rgba(96,165,250,0.15); color: #93C5FD; }
.no-issues { text-align: center; padding: 48px; color: #22C55E; font-size: 16px; font-weight: 500; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; }

/* Technical meta grid */
.meta-grid  { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 12px; }
.meta-card  { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 18px 20px; width: calc(33.333% - 8px); }
.meta-card.span-two { width: 100%; }
.meta-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #8898B8; margin-bottom: 8px; }
.meta-value { font-size: 14px; line-height: 1.5; }
.meta-hint  { font-size: 12px; margin-top: 6px; }
.hint-ok    { color: #22C55E; }
.hint-warn  { color: #F59E0B; }
.hint-bad   { color: #EF4444; }
.meta-pill  { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 13px; font-weight: 600; }
.pill-pass  { background: rgba(34,197,94,0.15);  color: #22C55E; }
.pill-fail  { background: rgba(239,68,68,0.15);  color: #EF4444; }

/* Table wrapper */
.table-wrap { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; overflow: hidden; }

/* Keywords GridView */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #8898B8; padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); }
.data-table td { padding: 13px 16px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.04); color: #FFFFFF; }
.data-table tr:last-child td { border-bottom: none; }
.kw-name   { font-weight: 600; }
.pos-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; background: rgba(34,197,94,0.15); color: #22C55E; }
.pos-none  { background: rgba(139,92,246,0.15) !important; color: #A78BFA !important; }
.diff-bar-wrap { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 8px; }
.diff-bar  { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); width: 56px; overflow: hidden; }
.diff-fill { height: 4px; border-radius: 2px; }
.diff-low    { background: #22C55E; }
.diff-medium { background: #F59E0B; }
.diff-high   { background: #EF4444; }
.diff-num  { font-size: 12px; color: #8898B8; }

/* Backlinks */
.bl-table-header { display: -webkit-box; display: -ms-flexbox; display: flex; padding: 10px 18px; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #8898B8; border-bottom: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); }
.bl-table-header span { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }
.backlink-row    { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.04); gap: 12px; }
.backlink-row:last-child { border-bottom: none; }
.bl-src    { font-size: 13px; color: #7AABFF; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; -webkit-box-flex: 2; -ms-flex: 2; flex: 2; }
.bl-anchor { font-size: 13px; color: #8898B8; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }
.da-badge  { font-size: 12px; font-weight: 700; color: #FFFFFF; background: rgba(26,86,255,0.2); padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.follow-badge { font-size: 11px; padding: 2px 8px; border-radius: 100px; white-space: nowrap; }
.dofollow  { background: rgba(34,197,94,0.15); color: #22C55E; }
.nofollow  { background: rgba(139,146,184,0.15); color: #8898B8; }
.upgrade-nudge { text-align: center; padding: 18px; font-size: 13px; color: #8898B8; }
.upgrade-link  { color: #00D4FF; text-decoration: none; font-weight: 600; }

/* Competitors */
.competitor-card { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.competitor-card:last-child { border-bottom: none; }
.comp-left    { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 12px; }
.comp-favicon { width: 34px; height: 34px; border-radius: 8px; background: #1A56FF; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; font-size: 16px; -ms-flex-negative: 0; flex-shrink: 0; }
.comp-domain  { font-size: 15px; font-weight: 600; }
.comp-traffic { font-size: 12px; color: #8898B8; }
.comp-stats   { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 28px; }
.comp-stat    { text-align: center; }
.comp-stat-label { font-size: 11px; color: #8898B8; margin-bottom: 4px; }
.comp-stat-val   { font-family: 'Syne', Arial, sans-serif; font-size: 22px; font-weight: 800; }
.overlap-cyan    { color: #00D4FF; }

@media (max-width: 900px) {
    .score-overview  { -ms-flex-direction: column; flex-direction: column; }
    .sub-scores      { width: 100%; }
    .sub-score-card  { width: 100%; }
    .meta-card       { width: 100%; }
    .meta-card.span-two { width: 100%; }
    .tabs            { width: 100%; }
}
