/*
Theme Name: Shitcoin Radar
Description: Temă editorială pentru clasamente, știri crypto și publicitate.
Version: 1.0.8
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: shitcoinradar
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
    color-scheme: light;
    --base: #fff;
    --surface: #fff;
    --raised: #f5f4f8;
    --line: #e5e1ee;
    --text: #211c2a;
    --muted: #615a70;
    --accent: #5e33a4;
    --green: #127952;
    --red: #b4254b;
    --gold: #805410;
    --shell: #fff;
    --select-ink: #51298f;
    --select-bg: #f2ecfb;
    --select-line: #dacaf1;
    --table-head: #f6f4fa;
    --table-hover: #faf8fd;
    --scroll-thumb: #a49bb5;
    --editorial-ink: #3d3742;
    --editorial-wash: #f2ecfb;
    --editorial-edge: #dacaf1;
    --stat-purple: #f2ecfb;
    --stat-green: #e7f5ee;
    --stat-gold: #fbf0db;
    --mono: ui-monospace, "Cascadia Code", "Liberation Mono", monospace;
}
:root[data-scr-theme="dark"] {
    color-scheme: dark;
    --base: #0f1016;
    --surface: #161720;
    --raised: #1b1c28;
    --line: #2b2d3b;
    --text: #f3f2fb;
    --muted: #a6a8bb;
    --accent: #b6a7ff;
    --green: #5ee8ab;
    --red: #ff879e;
    --gold: #f0ca86;
    --shell: #12131a;
    --select-ink: #ddd5ff;
    --select-bg: #2b2243;
    --select-line: #41365f;
    --table-head: #1b1d29;
    --table-hover: #1b1c28;
    --scroll-thumb: #706784;
    --editorial-ink: #cdc7d6;
    --editorial-wash: #252036;
    --editorial-edge: #41365f;
    --stat-purple: #27213c;
    --stat-green: #172f2b;
    --stat-gold: #352b24;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--base); color: var(--text); font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 100000; padding: 10px 14px; color: var(--text); background: var(--surface); }
.scr-wrap { width: min(1240px, 100% - 72px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--shell); }
.header-inner { min-height: 70px; display: flex; align-items: center; gap: clamp(24px, 5vw, 72px); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 850; letter-spacing: -.065em; line-height: 1.05; white-space: nowrap; }
.wordmark b, .logo-accent { color: var(--accent); }
.radar-mark { position: relative; display: block; width: 32px; height: 32px; border: 1px solid #7766c5; background: #211b37; border-radius: 9px; }
.radar-mark::before, .radar-mark::after, .radar-mark i { content: ""; position: absolute; inset: 6px; border: 1px solid var(--accent); border-radius: 50%; }
.radar-mark::after { inset: 11px; opacity: .65; }
.radar-mark i { inset: 14px; background: var(--accent); }
.custom-logo { max-height: 50px; width: auto; }
.site-nav, .site-nav > ul { display: flex; gap: 26px; align-items: center; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav .sub-menu { display: none; position: absolute; z-index: 5; top: 100%; left: 0; min-width: 150px; padding: 8px; background: var(--raised); border: 1px solid var(--line); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
.site-nav a { display: inline-block; color: var(--muted); font-weight: 650; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 100%; background: var(--accent); }
.market-currency { margin-left: auto; border: 1px solid var(--line); padding: 6px 10px; border-radius: 7px; color: var(--text); font: 12px var(--mono); }
.market-currency span { color: var(--accent); }
.market-page { padding-top: 28px; }
.market-hero { isolation: isolate; position: relative; overflow: hidden; min-height: 222px; display: flex; align-items: center; border: 1px solid #34304d; border-radius: 16px; background: radial-gradient(ellipse at 86% 90%, #2a2050, transparent 57%), linear-gradient(115deg, #191823 26%, #201b31 100%); }
.hero-copy { position: relative; z-index: 1; padding: clamp(25px, 4vw, 54px); }
.hero-copy h1, .inner-heading h1 { margin: 0; font-size: clamp(40px, 6.4vw, 77px); font-weight: 850; line-height: .99; letter-spacing: -.075em; }
.hero-copy em { font-style: normal; color: var(--accent); }
.hero-copy h1 span { color: #d5cbff; }
.hero-copy p { max-width: 455px; color: #c0bdd1; margin: 16px 0 0; font-size: 16px; }
.hero-radar { position: absolute; z-index: -1; right: 7%; top: 50%; transform: translateY(-50%); width: 305px; aspect-ratio: 1; opacity: .94; }
.radar-cross, .radar-rings, .radar-sweep { position: absolute; inset: 0; border-radius: 50%; }
.radar-cross { background: linear-gradient(transparent 49.8%, #73679e66 50%, transparent 50.3%), linear-gradient(90deg, transparent 49.8%, #73679e66 50%, transparent 50.3%); }
.radar-rings { background: radial-gradient(circle, transparent 17%, #8e7aba91 17.4%, transparent 18%, transparent 34%, #8e7aba85 34.4%, transparent 35%, transparent 51%, #8e7aba7a 51.4%, transparent 52%, transparent 68%, #8e7aba75 68.4%, transparent 69%); }
.radar-sweep { background: conic-gradient(from 0deg, transparent 0 291deg, #9572fd00 293deg, #a987ff70 359deg, #bc9dff 360deg); transform: rotate(53deg); }
.hero-radar i { position: absolute; z-index: 2; display: block; width: 7px; height: 7px; border-radius: 50%; background: #dfd2ff; box-shadow: 0 0 5px 4px #9a77ff65, 0 0 16px #c6b0ff; }
.hero-radar i:nth-of-type(1) { left: 50%; top: 50%; translate: -50% -50%; }
.hero-radar i:nth-of-type(2) { left: 75%; top: 33%; }
.hero-radar i:nth-of-type(3) { left: 61%; top: 19%; width: 5px; height: 5px; }
.hero-radar i:nth-of-type(4) { left: 33%; top: 64%; opacity: .58; width: 5px; height: 5px; }
.market-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.stat-card { min-width: 0; display: flex; align-items: center; padding: 15px 16px; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.stat-symbol { flex: 0 0 auto; display: grid; place-items: center; width: 37px; height: 37px; color: var(--accent); background: var(--stat-purple); border-radius: 8px; font-size: 20px; }
.stat-symbol--up { color: var(--green); background: var(--stat-green); }
.stat-symbol--bars { color: var(--gold); background: var(--stat-gold); }
.stat-card > div { min-width: 0; }
.stat-card p { margin: 0 0 2px; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; line-height: 1.2; overflow-wrap: anywhere; }
.stat-card small { flex-shrink: 0; margin-left: auto; color: var(--text); font: 12px var(--mono); }
.market-layout { display: grid; gap: 18px; margin-top: 24px; }
.market-layout--ad { grid-template-columns: minmax(0, 1fr) minmax(245px, 300px); align-items: start; }
.ranking { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; overflow: clip; }
.ranking-heading { display: flex; justify-content: space-between; align-items: center; padding: 21px 24px 16px; gap: 10px; }
.ranking-heading h2, .section-heading h2 { margin: 0; font-size: 25px; line-height: 1.2; letter-spacing: -.038em; }
.market-status, .market-source { color: var(--muted); font-size: 12px; line-height: 1.35; }
.market-status { margin: 5px 0 0; }
.market-status--notice { color: var(--gold); }
.market-source:hover { color: var(--accent); }
.ranking-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 0 24px 15px; }
.market-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.market-tabs a, .market-tabs button { padding: 7px 11px; line-height: 1.25; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 670; }
.market-tabs a[aria-current], .market-tabs button[aria-pressed="true"] { color: var(--select-ink); background: var(--select-bg); border-color: var(--select-line); }
.market-tabs a:hover, .market-tabs button:hover { color: var(--text); }
.market-search { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 9px; color: var(--muted); background: var(--raised); border: 1px solid var(--line); border-radius: 7px; }
.market-search span { font-size: 22px; line-height: 1; }
.market-search input { width: min(160px, 45vw); min-width: 0; padding: 5px 0; outline: none; border: 0; color: var(--text); background: transparent; font-size: 13px; }
.market-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ranking-scroll { overflow-x: auto; scrollbar-color: var(--scroll-thumb) var(--surface); }
.market-table { width: 100%; min-width: 790px; border-collapse: collapse; font-size: 13px; }
.market-table th, .market-table td { padding: 11px 14px; white-space: nowrap; text-align: right; }
.market-table thead th { background: var(--table-head); border-block: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 650; }
.market-table thead button { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; }
.ranking:not(.is-interactive) thead button { pointer-events: none; }
.market-table thead button:hover, .market-table th[aria-sort] button { color: var(--accent); }
.market-table th[aria-sort] button::after { margin-left: 5px; content: "↑"; }
.market-table th[aria-sort="descending"] button::after { content: "↓"; }
.market-table tbody tr + tr { border-top: 1px solid var(--line); }
.market-table tbody tr:hover { background: var(--table-hover); }
.market-table tbody td { font-family: var(--mono); }
.market-table .watch-column { width: 28px; padding: 4px 4px 4px 14px; text-align: center; }
.market-table .watch-column button { padding: 3px; border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; }
.market-table .watch-column button:hover, .market-table .watch-column button[aria-pressed="true"] { color: var(--gold); }
.ranking:not(.is-interactive) .js-only { display: none; }
.market-table .coin-rank { width: 35px; color: var(--muted); }
.market-table th[scope="row"], .market-table thead th:has([data-sort="name"]) { text-align: left; }
.market-table th:last-child, .market-table td:last-child { padding-right: 22px; }
.coin { display: flex; gap: 9px; align-items: center; }
.coin-icon { position: relative; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #492a5e; color: #f1caff; font-size: 13px; font-weight: 800; }
.coin-icon--2 { background: #5b4226; color: #ffda93; }
.coin-icon--3 { background: #264b42; color: #a3f3d0; }
.coin-icon--4 { background: #542b3b; color: #ffc2d0; }
.coin-icon--5 { background: #27466a; color: #c0dfff; }
.coin-icon--6 { background: #35305e; color: #d8ccff; }
.coin-icon img { position: absolute; inset: 0; object-fit: contain; }
.coin-identity { display: flex; align-items: baseline; gap: 7px; }
.coin-identity a, .coin-identity strong { white-space: normal; font-weight: 720; }
.coin-identity a:hover { color: var(--accent); }
.coin-identity small { color: var(--muted); font: 11px var(--mono); }
.coin-price { font-weight: 700; }
.positive, .stat-card .positive { color: var(--green); }
.negative, .stat-card .negative { color: var(--red); }
.neutral { color: var(--muted); }
.chart-cell canvas { display: block; margin-left: auto; width: 96px; height: 30px; }
.ranking-footer { min-height: 51px; padding: 9px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font: 12px var(--mono); }
.ranking-pages { display: flex; gap: 10px; align-items: center; }
.ranking-pages button { min-width: 29px; min-height: 28px; color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: 5px; }
.ranking-pages button:disabled { opacity: .45; cursor: default; }
.empty-state { margin: 0; color: var(--muted); padding: 22px 24px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.ranking .empty-state { border: 0; }
.news-preview { padding-block: 32px 42px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 15px; }
.text-link { color: var(--accent); font-size: 13px; font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.news-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.news-image { display: block; aspect-ratio: 16/9; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { display: flex; flex-direction: column; flex: 1; gap: 11px; padding: 19px; }
.news-meta { color: var(--muted); font: 12px/1.45 var(--mono); overflow-wrap: anywhere; }
.news-meta span { color: var(--accent); }
.news-card h2 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.027em; overflow-wrap: anywhere; }
.news-card h2 a:hover { color: var(--accent); }
.news-card p { color: var(--muted); margin: 0; }
.news-card .text-link { margin-top: auto; }
.inner-page { min-height: 60vh; padding-block: 39px 54px; }
.inner-heading { margin-bottom: 27px; }
.inner-heading h1 { font-size: clamp(38px, 6vw, 61px); }
.inner-heading .text-link { display: inline-block; margin-top: 15px; }
.article-shell { max-width: 860px; margin-inline: auto; }
.article-shell .news-meta { margin: 21px 0 7px; }
.article-shell h1 { margin: 0 0 20px; font-size: clamp(32px, 5vw, 57px); line-height: 1.1; letter-spacing: -.05em; overflow-wrap: anywhere; }
.article-shell a:not(.text-link):not(.scr-button) { color: var(--accent); }
.article-image { width: 100%; border-radius: 12px; margin-bottom: 14px; }
.entry-content { font-size: 17px; overflow-wrap: anywhere; }
.entry-content a { text-decoration: underline; }
.entry-content pre { overflow: auto; }
.entry-content iframe { max-width: 100%; }
.scr-button { display: inline-block; margin-top: 10px; padding: 9px 14px; border: 1px solid var(--editorial-edge); border-radius: 8px; background: var(--editorial-wash); color: var(--accent); font-weight: 700; }
.pagination { margin-top: 23px; }
.page-numbers { display: inline-block; margin-right: 4px; padding: 5px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.page-numbers.current { border-color: var(--accent); color: var(--accent); }
.scr-ad { min-width: 0; text-align: center; }
.scr-ad > span { display: block; margin-bottom: 7px; color: var(--muted); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.scr-ad-content { max-width: 100%; overflow: auto; }
.scr-ad-content iframe { max-width: 100%; }
.scr-ad--header { margin-bottom: 20px; }
.scr-ad--sidebar { padding: 13px 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.scr-ad--article { margin-top: 28px; }
.site-footer { background: var(--shell); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; min-height: 76px; padding-block: 16px; }
.footer-inner > div { display: flex; gap: 16px; }
.footer-inner .wordmark { font-size: 19px; }
.footer-inner a:not(.wordmark), .footer-inner small { color: var(--muted); font-size: 13px; }
.footer-inner a:hover { color: var(--accent); }

@media (max-width: 1000px) {
    .market-layout--ad { grid-template-columns: minmax(0, 1fr); }
    .hero-radar { right: 3%; width: 260px; }
}
@media (max-width: 760px) {
    .scr-wrap { width: calc(100% - 32px); }
    .header-inner { flex-wrap: wrap; min-height: 0; padding-block: 13px; gap: 12px 20px; }
    .site-nav { order: 3; width: 100%; }
    .hero-radar { right: -65px; opacity: .47; }
    .market-hero { min-height: 176px; }
    .hero-copy p { font-size: 14px; max-width: 320px; }
    .market-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .stat-card:last-child { grid-column: 1 / -1; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 470px) {
    .ranking-heading, .ranking-toolbar { padding-inline: 13px; }
    .ranking-heading h2 { font-size: 22px; }
    .market-source { max-width: 107px; text-align: right; }
    .market-page { padding-top: 16px; }
    .stat-card { display: grid; grid-template-columns: 24px minmax(0, 1fr); padding: 10px; gap: 4px 6px; }
    .stat-card small { grid-column: 2; margin-left: 0; }
    .stat-card:last-child { grid-template-columns: 24px minmax(0, 1fr) auto; }
    .stat-card:last-child small { grid-column: 3; }
    .stat-symbol { width: 24px; height: 24px; font-size: 15px; }
    .stat-card p { font-size: 11px; }
    .market-table { width: 695px; min-width: 0; table-layout: fixed; }
    .market-table th, .market-table td { padding-inline: 7px; }
    .market-table .watch-column { width: 30px; padding-inline: 5px; }
    .market-table thead th:nth-child(2) { width: 31px; }
    .market-table thead th:nth-child(3) { width: 116px; }
    .market-table thead th:nth-child(4) { width: 105px; }
    .market-table thead th:nth-child(5), .market-table thead th:nth-child(6) { width: 67px; }
    .market-table thead th:nth-child(7), .market-table thead th:nth-child(8) { width: 84px; }
    .market-table th:last-child, .market-table td:last-child { padding-right: 7px; }
    .coin-identity { flex-direction: column; gap: 2px; line-height: 1.1; overflow-wrap: anywhere; }
    .section-heading { align-items: baseline; }
    .section-heading h2 { font-size: 21px; }
    .news-grid { grid-template-columns: minmax(0, 1fr); }
}

.header-controls { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.language-switch { display: inline-flex; align-items: center; gap: 2px; padding: 2px; background: var(--base); border: 1px solid var(--line); border-radius: 7px; }
.language-switch a { padding: 4px 6px; color: var(--muted); font: 700 11px var(--mono); border-radius: 4px; }
.language-switch a:hover { color: var(--text); }
.language-switch a[aria-current="page"] { background: var(--select-bg); color: var(--select-ink); }
@media (max-width: 470px) {
    .header-inner { column-gap: 8px; }
    .header-controls { gap: 5px; }
    .market-currency { padding-inline: 6px; }
}

.article-lead { margin: 0 0 22px; color: var(--editorial-ink); font-size: clamp(1.04rem, 2.5vw, 1.25rem); line-height: 1.55; }
.entry-content > h2 { margin: 1.5em 0 .45em; font-size: clamp(1.24rem, 2.8vw, 1.52rem); line-height: 1.25; }
.story-summary, .story-related { margin: 24px 0; padding: 14px 18px; border: 1px solid var(--editorial-edge); border-radius: 10px; background: var(--editorial-wash); }
.story-summary h2, .story-related h2 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.3; }
.story-summary ul, .story-related ul { margin: 0; padding-left: 1.2em; }
.story-summary li + li, .story-related li + li { margin-top: 6px; }
.story-source { margin-top: 24px; color: var(--muted); font-size: .9rem; }
.story-amp { display: inline-block; padding: 8px 0; }

.article-cover { margin: 0 0 24px; }
.article-cover img { display: block; width: 100%; height: auto; border-radius: 10px; }
.article-cover figcaption { margin-top: 5px; color: var(--muted); font-size: .8rem; }
.scr-adsense { margin: 24px auto; max-width: 100%; }

.scr-theme-toggle { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border-radius: 7px; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.scr-theme-toggle:hover { color: var(--accent); background: var(--select-bg); }
.scr-theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scr-theme-toggle .theme-sun, :root[data-scr-theme="dark"] .scr-theme-toggle .theme-moon { display: none; }
:root[data-scr-theme="dark"] .scr-theme-toggle .theme-sun { display: block; }

:root:not([data-scr-theme="dark"]) .market-hero {
    border-color: var(--line);
    background: radial-gradient(ellipse at 87% 80%, #e9dcfc, transparent 59%), linear-gradient(115deg, #fff 15%, #f7f2ff 100%);
}
:root:not([data-scr-theme="dark"]) .hero-copy p { color: var(--muted); }
:root:not([data-scr-theme="dark"]) .hero-copy h1 span { color: var(--accent); }
:root:not([data-scr-theme="dark"]) .hero-radar i { background: #7545b0; box-shadow: 0 0 0 4px #9370c533; }
:root:not([data-scr-theme="dark"]) .radar-sweep { opacity: .62; }

@media (max-width: 470px) {
    .market-currency { display: none; }
}
@media (max-width: 350px) {
    .header-inner .wordmark { font-size: 20px; gap: 7px; }
}
