/* assets/css/home.css — Kryptopy Home Page Market Intelligence, Orbital Radar HUD, Pulse Cards & Feature Strip */

.sikke-home-intelligence-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 3rem auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
    font-family: var(--font-family, 'Inter', sans-serif);
}

/* 1. Live Top Market Ribbon (Ticker Strip) */
.sikke-ticker-ribbon {
    width: 100%;
    overflow: hidden;
    background: var(--card-bg, rgba(17, 24, 39, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 0.55rem 0;
    margin: 0.5rem auto 1.25rem auto;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.sikke-ticker-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    animation: sikkeTickerScroll 42s linear infinite;
    padding: 0 1rem;
}
.sikke-ticker-ribbon:hover .sikke-ticker-track {
    animation-play-state: paused;
}
@keyframes sikkeTickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.sikke-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-main, #f9fafb);
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    transition: background 0.18s ease;
    white-space: nowrap;
}
.sikke-ticker-item:hover {
    background: rgba(59, 130, 246, 0.12);
}
.sikke-ticker-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.sikke-ticker-sym {
    font-weight: 800;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
}
.sikke-ticker-price {
    font-size: 0.83rem;
    font-weight: 600;
    opacity: 0.88;
}
.sikke-ticker-chg {
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.12rem 0.42rem;
    border-radius: 5px;
}
.sikke-ticker-chg.up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.14);
}
.sikke-ticker-chg.down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.14);
}

/* 2. Orbital Radar Stage & Telemetry HUD Strip */
#arthaMasterCanvas {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
}
.sikke-home-hud-strip {
    width: 100%;
    max-width: 980px;
    margin: 0.75rem auto 1.5rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 0.85rem;
    font-family: var(--font-family, 'Inter', sans-serif);
}
.sikke-hud-card {
    background: var(--card-bg, rgba(17, 24, 39, 0.78));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.45rem;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: var(--text-main, #f9fafb);
}
.sikke-hud-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.sikke-hud-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.68;
}
.sikke-hud-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}
.sikke-hud-sym {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.sikke-hud-price {
    font-size: 0.85rem;
    opacity: 0.82;
    font-weight: 600;
}
.sikke-hud-badge {
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}
.sikke-hud-badge.up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.14);
}
.sikke-hud-badge.down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.14);
}
.sikke-breadth-bar {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.35);
    overflow: hidden;
    margin-top: 0.2rem;
}
.sikke-breadth-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 999px;
    transition: width 0.4s ease;
}
.sikke-hud-cta {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(16, 185, 129, 0.18));
    border-color: rgba(59, 130, 246, 0.42);
}
.sikke-hud-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.85rem;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-top: 0.15rem;
    align-self: flex-start;
}

/* Section Headers */
.sikke-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2.25rem 0 1rem 0;
}
.sikke-section-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--text-main, #f9fafb);
}
.sikke-section-sub {
    font-size: 0.84rem;
    opacity: 0.68;
    color: var(--text-main, #f9fafb);
}

/* 3. 3-Column Market Pulse Cards */
.sikke-pulse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1.15rem;
    margin-bottom: 2.25rem;
}
.sikke-pulse-card {
    background: var(--card-bg, #111827);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sikke-pulse-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.65rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.sikke-pulse-card-title {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-main, #f9fafb);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.sikke-pulse-card-link {
    font-size: 0.76rem;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
}
.sikke-pulse-card-link:hover {
    text-decoration: underline;
}
.sikke-pulse-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.sikke-pulse-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.52rem 0.6rem;
    border-radius: 9px;
    text-decoration: none;
    color: var(--text-main, #f9fafb);
    transition: background 0.16s ease, transform 0.16s ease;
}
.sikke-pulse-row:hover {
    background: rgba(59, 130, 246, 0.09);
    transform: translateX(2px);
}
.sikke-pulse-coin {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}
.sikke-pulse-coin-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.sikke-pulse-coin-fallback {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #334155;
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    flex-shrink: 0;
}
.sikke-pulse-coin-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sikke-pulse-sym {
    font-weight: 800;
    font-size: 0.88rem;
    line-height: 1.2;
}
.sikke-pulse-sub {
    font-size: 0.72rem;
    opacity: 0.65;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sikke-pulse-metrics {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: right;
    flex-shrink: 0;
}
.sikke-pulse-price {
    font-weight: 700;
    font-size: 0.85rem;
}

/* Whale L/S dual bar inside Futures Sentiment Card */
.sikke-whale-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.22rem;
    min-width: 125px;
}
.sikke-whale-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 700;
}
.sikke-whale-bar {
    width: 115px;
    height: 6px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.45);
    overflow: hidden;
}
.sikke-whale-bar-long {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 999px;
}
.sikke-funding-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.38rem;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.14);
    color: #60a5fa;
}

/* 4. Bilingual Feature Strip (Quick Links into All 6 Kryptopy Analytics Modules) */
.sikke-feature-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.15rem;
    margin-top: 0.5rem;
}
.sikke-feature-card {
    position: relative;
    background: var(--card-bg, #111827);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 1.35rem 1.4rem;
    text-decoration: none;
    color: var(--text-main, #f9fafb);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.sikke-feature-card:hover {
    transform: translateY(-3px);
    border-color: #3b82f6;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}
.sikke-feature-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.sikke-feature-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.16);
    color: #60a5fa;
}
.sikke-feature-title {
    margin: 0.35rem 0 0.35rem 0;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
}
.sikke-feature-desc {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    opacity: 0.78;
}
.sikke-feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.83rem;
    font-weight: 800;
    color: #3b82f6;
    margin-top: 0.25rem;
}

/* 5. Homepage Blog / Analysis Cards (Aligned with Kryptopy Pulse & Feature Cards) */
.sikke-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.15rem;
    margin-top: 0.5rem;
}

.sikke-blog-card {
    background: var(--card-bg, #111827);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main, #f9fafb);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.sikke-blog-card:hover {
    transform: translateY(-3px);
    border-color: #3b82f6;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.sikke-blog-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: rgba(15, 23, 42, 0.35);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.sikke-blog-body {
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    flex: 1;
}

.sikke-blog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}

.sikke-blog-date {
    font-size: 0.74rem;
    font-weight: 600;
    opacity: 0.65;
}

.sikke-blog-title {
    margin: 0 0 0.45rem 0;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-main, #f9fafb);
}

.sikke-blog-excerpt {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    opacity: 0.78;
}

.sikke-blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    opacity: 0.7;
    padding: 2.5rem 1.5rem;
    background: var(--card-bg, #111827);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

[data-theme="light"] .sikke-pulse-card,
[data-theme="light"] .sikke-feature-card,
[data-theme="light"] .sikke-blog-card,
[data-theme="light"] .sikke-blog-empty {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .sikke-blog-card:hover,
[data-theme="light"] .sikke-feature-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .sikke-blog-title,
[data-theme="light"] .sikke-feature-title,
[data-theme="light"] .sikke-pulse-card-title {
    color: #0f172a;
}

[data-theme="light"] .sikke-blog-excerpt,
[data-theme="light"] .sikke-feature-desc,
[data-theme="light"] .sikke-blog-date {
    color: #475569;
    opacity: 1;
}

[data-theme="light"] .sikke-feature-badge {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

/* 3b. Upcoming Token Unlocks Grid */
.sikke-unlocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
    margin-bottom: 2.25rem;
}

.sikke-unlock-card {
    background: var(--card-bg, #111827);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 0.9rem 1.05rem;
    text-decoration: none;
    color: var(--text-main, #f9fafb);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.sikke-unlock-card:hover {
    transform: translateY(-2px);
    border-color: #10b981;
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.15);
}

.sikke-unlock-top,
.sikke-unlock-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.sikke-unlock-str {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.sikke-unlock-str.str-strong { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.sikke-unlock-str.str-medium { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.sikke-unlock-str.str-small  { background: rgba(59, 130, 246, 0.16); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }

.sikke-unlock-val {
    font-size: 0.94rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.sikke-unlock-pct {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.75;
}

.sikke-unlock-date {
    font-size: 0.74rem;
    opacity: 0.65;
    margin-top: 0.1rem;
}

.sikke-unlock-days {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.22rem 0.58rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    flex-shrink: 0;
}

[data-theme="light"] .sikke-unlock-card {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .sikke-unlock-card:hover {
    border-color: #059669;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.12);
}

[data-theme="light"] .sikke-unlock-date,
[data-theme="light"] .sikke-unlock-pct {
    color: #475569;
    opacity: 1;
}

[data-theme="light"] .sikke-unlock-str.str-strong { background: rgba(220, 38, 38, 0.12); color: #b91c1c; border-color: rgba(220, 38, 38, 0.3); }
[data-theme="light"] .sikke-unlock-str.str-medium { background: rgba(217, 119, 6, 0.12); color: #b45309; border-color: rgba(217, 119, 6, 0.3); }
[data-theme="light"] .sikke-unlock-str.str-small  { background: rgba(37, 99, 235, 0.1); color: #1d4ed8; border-color: rgba(37, 99, 235, 0.25); }
[data-theme="light"] .sikke-unlock-days { background: rgba(5, 150, 105, 0.12); color: #047857; }

/* 1b. Macro Regime Strip */
.sikke-macro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 0.72rem 1.15rem;
    margin: 0.85rem 0 1.25rem 0;
    border-radius: 12px;
    background: var(--card-bg, #111827);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.sikke-macro-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
}

.sikke-macro-label {
    color: var(--text-dim, #94a3b8);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.sikke-macro-val {
    font-weight: 800;
    color: var(--text-main, #f8fafc);
    font-variant-numeric: tabular-nums;
}

.sikke-macro-watchlist-btn {
    padding: 0.34rem 0.78rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    transition: background 0.15s ease;
}

.sikke-macro-watchlist-btn:hover {
    background: rgba(245, 158, 11, 0.28);
}

/* 3a. Funding Rate Extremes Radar */
.sikke-funding-radar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.15rem;
    margin-bottom: 2.25rem;
}

.sikke-funding-extreme {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.18rem 0.5rem;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}

.sikke-funding-extreme.neg {
    background: rgba(6, 182, 212, 0.16);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.32);
}

.sikke-funding-extreme.pos {
    background: rgba(249, 115, 22, 0.16);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.32);
}

[data-theme="light"] .sikke-macro-strip {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .sikke-macro-label { color: #475569; }
[data-theme="light"] .sikke-macro-val { color: #0f172a; }
[data-theme="light"] .sikke-macro-watchlist-btn {
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.35);
    color: #b45309;
}
[data-theme="light"] .sikke-funding-extreme.neg { background: rgba(8, 145, 178, 0.12); color: #0e7490; border-color: rgba(8, 145, 178, 0.3); }
[data-theme="light"] .sikke-funding-extreme.pos { background: rgba(234, 88, 12, 0.12); color: #c2410c; border-color: rgba(234, 88, 12, 0.3); }
