/* ExpiredDomains.network — crawl graph frame (home page demo and the live crawler).
   Needs assets/brand.css for the color tokens. */

/* ─────────────────────────────────────────────
   Live demo (dark product frame)
   ───────────────────────────────────────────── */
.frame {
    background: var(--dark);
    border-radius: var(--r-xl);
    padding: 6px;
    box-shadow: 0 40px 100px -30px rgba(10, 10, 11, 0.5), 0 0 0 1px rgba(10, 10, 11, 0.9);
    color: #EDEDEF;
}
.frame-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.75rem 0.65rem; font-size: 0.8rem; }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #2A2A30; }
.frame-title { font-family: var(--mono); color: var(--dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.frame-title b { color: #EDEDEF; font-weight: 500; }
.live {
    margin-left: auto; display: inline-flex; align-items: center; gap: 0.45rem;
    font-family: var(--mono); font-size: 0.72rem; color: #8FE3B0;
    background: rgba(48, 164, 108, 0.12); padding: 0.2rem 0.6rem; border-radius: 999px;
}
.live i { width: 6px; height: 6px; border-radius: 50%; background: #3DD68C; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.timer { font-family: var(--mono); color: var(--dark-muted); font-variant-numeric: tabular-nums; }

.frame-body {
    display: grid; grid-template-columns: 1.45fr 1fr; gap: 6px;
    height: 520px;
}
.panel { background: var(--dark-2); border-radius: 22px; overflow: hidden; position: relative; min-height: 0; }
.graph { position: relative; }
.graph canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.legend {
    position: absolute; left: 14px; bottom: 12px; display: flex; gap: 0.9rem;
    font-family: var(--mono); font-size: 0.68rem; color: var(--dark-muted); pointer-events: none;
}
.legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.legend i { width: 7px; height: 7px; border-radius: 50%; }

.side { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.stat { background: var(--dark-2); padding: 0.9rem 1rem; }
.stat-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark-muted); }
.stat-value { font-size: 1.55rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 0.15rem; }
.stat-value.y { color: var(--accent); }
.stat-value.r { color: #FF8589; }
.stat-value.g { color: #3DD68C; }

.results { display: flex; flex-direction: column; min-height: 0; }
.results-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 1rem 0.5rem; font-size: 0.82rem; font-weight: 500;
}
.results-head .badge { font-family: var(--mono); font-size: 0.68rem; color: var(--ink); background: var(--accent); padding: 0.1rem 0.5rem; border-radius: 999px; }
.results-cols, .row {
    display: grid; grid-template-columns: 1fr 34px 34px 52px; gap: 0.5rem; align-items: center;
    padding: 0 1rem;
}
.results-cols { font-family: var(--mono); font-size: 0.64rem; color: var(--dark-muted); text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 0.4rem; }
.results-cols span:not(:first-child), .row span:not(:first-child) { text-align: right; }
.results-list { flex: 1; overflow-y: auto; min-height: 0; padding-bottom: 0.5rem; scrollbar-width: none; -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent); mask-image: linear-gradient(to bottom, #000 85%, transparent); }
.results-list::-webkit-scrollbar { display: none; }
.row {
    height: 38px; font-family: var(--mono); font-size: 0.78rem;
    border-top: 1px solid var(--dark-line);
    font-variant-numeric: tabular-nums;
}
.row.new { animation: rowIn 300ms var(--ease-out) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
.row .d { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #EDEDEF; }
.row .d .blur { filter: blur(3.5px); color: var(--dark-muted); user-select: none; }
.row .d .tld { color: var(--accent); }
.row .hi { color: #3DD68C; }
.row .mid { color: #F5D90A; }
.row .lo { color: var(--dark-muted); }
.row .bl { color: #EDEDEF; }

.logs {
    border-top: 1px solid var(--dark-line);
    height: 128px; overflow: hidden;
    padding: 0.6rem 1rem;
    font-family: var(--mono); font-size: 0.72rem; line-height: 1.75;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.log { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dark-muted); animation: logIn 200ms var(--ease-out) both; }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } }
.log time { color: #55555C; margin-right: 0.5rem; }
.log .get { color: #8B8B93; }
.log .ext { color: #EDEDEF; }
.log .bad { color: #FF8589; }
.log .ok { color: #3DD68C; }
.log .tag { display: inline-block; font-size: 0.62rem; padding: 0 5px; border-radius: 4px; margin-right: 0.4rem; background: rgba(255, 255, 255, 0.07); color: #C9C9CF; }

/* ─────────────────────────────────────────────
   Hero variant (.frame-hero): graph on top, counters, found domains and logs below.
   Used by the home page hero and every crawler domain card, so both look identical.
   ───────────────────────────────────────────── */
.frame.frame-hero { background: #111114; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.75), inset 0 0 0 1px var(--dark-line); }
.frame-hero .panel { background: #17171B; }
.frame-hero .frame-body { grid-template-columns: 1fr; height: auto; }
.frame-hero .graph { height: 290px; }
.frame-hero .side { height: auto; grid-template-rows: auto auto auto; }
.frame-hero .stats { grid-template-columns: repeat(4, 1fr); }
.frame-hero .stat { background: #17171B; padding: 0.7rem 0.85rem; }
.frame-hero .stat-value { font-size: 1.3rem; }
.frame-hero .results-list { flex: none; height: 134px; }
.frame-hero .logs { height: 184px; padding: 0.75rem 1rem; line-height: 2.15; }
@media (max-width: 960px) {
    .frame-hero .graph { height: 250px; }
}
@media (max-width: 520px) {
    .frame-hero .stats { grid-template-columns: 1fr 1fr; }
    .frame-hero .graph { height: 230px; }
}
.stat-value { font-family: var(--display); letter-spacing: -0.03em; }
@media (max-width: 960px) {
    .frame-body { grid-template-columns: 1fr; height: auto; }
    .graph { height: 340px; }
    .side { height: 460px; }
}
@media (max-width: 520px) {
    .graph { height: 280px; }
    .legend { display: none; }
    .lights { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .row.new, .log { animation: fade 200ms ease both; }
    .live i { animation: none; }
}
