/* ============================================================
GLOBAL RESET + BASE
============================================================ */

* {
  box-sizing: border-box;
  }

body {
margin: 0;
font-family: Arial, sans-serif;
background: #f5f7fa;
color: #1f2937;
}

/* ============================================================
LAYOUT
============================================================ */

.container {
max-width: 1200px;
margin: 0 auto;
padding: 28px 20px 48px;
}

.wrap {
max-width: 1400px;
margin: 0 auto;
padding: 32px 20px 48px;
}

/* ============================================================
HERO
============================================================ */

.hero {
background: white;
border-radius: 20px;
padding: 36px 28px;
box-shadow: 0 8px 24px rgba(0,0,0,0.06);
margin-bottom: 28px;
}

.hero-brand {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 18px;
}

.hero-logo-word {
height: 72px;
max-width: min(260px, 70vw);
}
.logo-word {
    height: 36px;
    display: block;
}
.hero p {
font-size: 18px;
color: #475569;
max-width: 760px;
}

.hero-actions {
margin-top: 20px;
display: flex;
gap: 12px;
}

/* ============================================================
BUTTONS
============================================================ */

.btn {
padding: 12px 16px;
border-radius: 12px;
font-weight: 700;
text-decoration: none;
}

.btn-primary {
background: #2563eb;
color: white;
}

.btn-secondary {
background: white;
color: #2563eb;
border: 1px solid #cbd5e1;
}

/* ============================================================
HOT DEAL CARDS
============================================================ */

.hot-deals-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 18px;
}

.hot-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: 0.15s;

    overflow: hidden; /* ✅ ADD THIS */
}

.hot-card:hover {
transform: translateY(-2px);
}

.hot-card-featured {
    box-shadow: 0 0 0 2px #2563eb;
    background: #f8fafc;
}
.hot-card-featured .hot-card-body {
    gap: 12px;
}
.hot-card-featured .hot-card-signal {
    font-size: 0.9rem;
    padding: 6px 12px;
}
.hot-card-featured .hot-card-price {
    font-size: 2rem;
}
.hot-card-image {
max-width: 100%;
max-height: 140px;
object-fit: contain;
}

.hot-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hot-card-image-wrap {
display: flex;
align-items: center;
justify-content: center;
background: #f8fafc;
padding: 16px;
border-bottom: 1px solid #e5e7eb;
min-height: 160px;
}

.hot-card-brand {
font-size: 0.9rem;
font-weight: 600;
color: #64748b;
}

.hot-card-title {
margin: 0;
font-size: 1.05rem;
line-height: 1.3;
}

.hot-card-title a {
text-decoration: none;
color: inherit;
}

.hot-card-reason {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
    padding-top: 2px;
    min-height: 44px;
}
.hot-card-price {
    font-size: 1.8rem;
    font-weight: 800;
}

.hot-card-cta {
    margin-top: auto;
    background: #111827;
    color: white;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.15s;
    
}

.hot-card-cta:hover {
    transform: translateY(-1px);
}

/* ============================================================
SIGNAL STYLING (CRITICAL FOR DECISION UX)
============================================================ */

.hot-card-signal {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    display: inline-block;
    width: fit-content;
}

/* Signal Colors */
.hot-card-signal-strong-buy {
    background: #16a34a;
    color: white;
}

.hot-card-signal-buy {
    background: #2563eb;
    color: white;
}

.hot-card-signal-fair-price {
    background: #374151;
    color: white;
}

.hot-card-signal-wait {
    background: #f59e0b;
    color: white;
}

.hot-card-signal-history {
    background: #9ca3af;
    color: white;
}
.hot-card-reason {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #1f2937;
  margin-top: 10px;
}

.hot-card-reason-support {
  font-size: 0.82rem;
  line-height: 1.35;
  color: #6b7280;
  margin-top: 6px;
  margin-bottom: 14px;
}
/* Buy */
.signal-buy {
  background: #dcfce7;   /* light green */
  color: #166534;
}

/* Fair */
.signal-fair {
  background: #f3f4f6;   /* light gray */
  color: #374151;
}
.hot-card-trust-link {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.8;
}

.hot-card-trust-link a {
    text-decoration: none;
}

.hot-card-trust-link a:hover {
    text-decoration: underline;
}

.hot-card-trend {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.85;
}

.hot-card-trend.down {
    color: #16a34a; /* green */
}

.hot-card-trend.up {
    color: #dc2626; /* red */
}

.hot-card-trend.flat {
    color: #6b7280; /* gray */
}
/* ============================================================
TABLE
============================================================ */

.table-wrap {
background: white;
border-radius: 18px;
overflow: hidden;
}

table {
width: 100%;
border-collapse: collapse;
}

th, td {
padding: 12px;
}

/* ============================================================
FILTERS
============================================================ */

.brand-filter button,
.signal-filter button {
padding: 6px 12px;
border-radius: 8px;
cursor: pointer;
}

.brand-filter button.active,
.signal-filter button.active {
background: #0f172a;
color: white;
}

/* ============================================================
DASHBOARD LAYOUT
============================================================ */

.site-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
}

.top-nav a[aria-current="page"] {
    color: #111827;
}

.page-hero {
    margin: 28px 0 24px;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: 2.2rem;
    line-height: 1.1;
}

.hero-copy {
    margin: 0;
    max-width: 760px;
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
}

.dashboard-grid-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 420px;
}

.dashboard-search-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
}

.dashboard-search-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 0.95rem;
    color: #111827;
    background: #ffffff;
}

.dashboard-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.16);
}

.brand-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-grid .hot-card-body {
    gap: 10px;
    padding: 12px;
}

.dashboard-grid .hot-card-price {
    font-size: 1.5rem;
}

.dashboard-grid .hot-card-reason {
    font-size: 0.9rem;
    min-height: 0;
}

.dashboard-grid .hot-card-cta {
    padding: 12px 14px;
    font-size: 0.9rem;
}

.card-sparkline-wrap {
  margin: 10px 0 8px 0;
  height: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.sparkline {
  display: block;
  width: 140px;
  height: 40px;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.top-nav a {
    font-size: 14px;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
}

.top-nav a:hover {
    color: #111827;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 40px;
}

.footer-brand {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
}

.footer-links a:hover {
    color: #111827;
}

.footer-note {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-nav {
        gap: 14px;
    }
}
