/* ============================================================
   BloxFruitsValues.app — main.css
   Global styles shared across every page
============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Background — slightly warmer dark, less harsh than pure black */
  --bg:        #0d0d0d;
  --bg2:       #141414;
  --bg3:       #1c1c1c;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);

  /* Text — softer whites */
  --text:      #f0f0f0;
  --muted:     #7a7a7a;
  --muted2:    #a0a0a0;

  /* Accent — slightly cooler amber, less harsh */
  --accent:    #f0a500;
  --accent2:   #f5b833;
  --accent-bg: rgba(240,165,0,0.09);

  /* Status */
  --green:     #1db954;
  --red:       #e53935;
  --blue:      #3b82f6;

  /* Shape */
  --radius:    10px;
  --radius-lg: 16px;

  /* Type */
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max:       1200px;
  --trans:     0.18s ease;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font-body); }

/* --- Layout --- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section    { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.divider    { height: 1px; background: var(--border); }

/* --- Typography --- */
.section-eyebrow {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; color: var(--accent); display: block; margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(26px, 4vw, 40px);
  font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1.1;
}
.section-desc { font-size: 16px; color: var(--muted); margin-top: 12px; max-width: 560px; line-height: 1.65; }
.section-header { margin-bottom: 40px; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.view-all { font-size: 14px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; transition: gap var(--trans); white-space: nowrap; }
.view-all:hover { gap: 8px; }

/* --- Navbar --- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(13,13,13,0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 40px; width: auto; max-width: 180px; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color var(--trans), background var(--trans); }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg3); }
.nav-links a.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.btn-roblox { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--accent); color: #000; font-size: 13px; font-weight: 600; border-radius: 8px; transition: background var(--trans), transform var(--trans); white-space: nowrap; }
.btn-roblox:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-roblox svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }

/* --- Breadcrumb --- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 16px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); transition: color var(--trans); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--muted2); }

/* --- Page Hero (inner pages) --- */
.page-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(30px, 5vw, 52px); font-weight: 800; color: #fff; letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 14px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p { font-size: clamp(15px, 2vw, 18px); color: var(--muted); max-width: 600px; line-height: 1.6; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-bg); border: 1px solid rgba(245,158,11,0.25); color: var(--accent); font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }

/* --- Badges & Tags --- */
.demand-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.demand-high   { background: rgba(34,197,94,0.15);  color: #22c55e; }
.demand-medium { background: rgba(245,158,11,0.15); color: #f59e0b; }
.demand-low    { background: rgba(239,68,68,0.15);  color: #ef4444; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--bg3); color: var(--muted2); border: 1px solid var(--border); }

/* --- Cards --- */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card-pad { padding: 24px; }
.tool-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: border-color var(--trans), transform var(--trans); position: relative; overflow: hidden; }
.tool-card::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity var(--trans); background: radial-gradient(ellipse at top left, rgba(245,158,11,0.06), transparent 60%); }
.tool-card:hover { border-color: rgba(245,158,11,0.3); transform: translateY(-3px); }
.tool-card:hover::before { opacity: 1; }

/* --- Table --- */
.table-wrap { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.table-search { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.table-search svg { color: var(--muted); width: 18px; height: 18px; flex-shrink: 0; }
.table-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: var(--font-body); font-size: 15px; }
.table-search input::placeholder { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 12px 20px; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 14px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.fruit-name { font-weight: 600; color: #fff; font-size: 15px; }
.fruit-value { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 15px; }
.trend-up   { color: var(--green); }
.trend-down { color: var(--red); }
.trend-stable { color: var(--muted); }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-family: var(--font-body); font-size: 15px; font-weight: 600; cursor: pointer; transition: all var(--trans); border: none; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.25); }
.btn-ghost { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border2); background: var(--bg2); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* --- Form elements --- */
.input { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; color: var(--text); font-family: var(--font-body); font-size: 15px; outline: none; transition: border-color var(--trans); width: 100%; }
.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--muted); }
select.input { cursor: pointer; }

/* --- Copy button --- */
.copy-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text); font-family: var(--font-body); font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 8px; cursor: pointer; transition: background var(--trans), color var(--trans), border-color var(--trans); white-space: nowrap; }
.copy-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.copy-btn.copied { background: var(--green); color: #fff; border-color: var(--green); }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 600; text-align: left; transition: color var(--trans); }
.faq-question:hover { color: var(--accent); }
.faq-icon { width: 24px; height: 24px; background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--muted); font-size: 16px; transition: background var(--trans), color var(--trans), transform var(--trans); }
.faq-item.open .faq-icon { background: var(--accent); color: #000; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 14px; color: var(--muted); line-height: 1.75; }

/* --- Footer --- */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 12px; max-width: 260px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 18px; font-weight: 800; color: #fff; }
.footer-logo img { width: 30px; height: 30px; border-radius: 7px; }
.footer-logo span { color: var(--accent); }
.app-badges { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.app-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; color: var(--text); font-size: 13px; transition: border-color var(--trans); max-width: 200px; }
.app-badge:hover { border-color: rgba(245,158,11,0.4); }
.app-badge-icon { font-size: 22px; }
.app-badge-text small { display: block; font-size: 10px; color: var(--muted); }
.app-badge-text strong { display: block; font-weight: 600; font-size: 13px; }
.footer-col h4 { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: var(--muted); transition: color var(--trans); }
.footer-col ul a:hover { color: var(--accent); }
.footer-col ul .ext-link::after { content: ' ↗'; font-size: 11px; opacity: 0.5; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: var(--muted); transition: color var(--trans); }
.footer-bottom-links a:hover { color: var(--text); }

/* --- Last updated indicator --- */
.last-updated { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.last-updated::before { content: ''; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }

/* --- Stat number chips --- */
.stat-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: 13px; color: var(--muted2); }
.stat-chip strong { color: var(--accent); font-weight: 700; }

/* --- Roblox banner --- */
.roblox-banner { background: linear-gradient(135deg,rgba(245,158,11,0.1) 0%,rgba(251,191,36,0.05) 100%); border: 1px solid rgba(245,158,11,0.2); border-radius: var(--radius-lg); padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.roblox-banner h3 { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.roblox-banner p { font-size: 14px; color: var(--muted); }

/* Animations */
@keyframes pulse  { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes fadeUp { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
.fade-up { animation: fadeUp 0.4s ease both; }

/* Footer responsive */
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .section { padding: 48px 0; } }

/* ============================================================
   HAMBURGER — 3 span bars
============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px; height: 26px;
  background: none; border: none;
  cursor: pointer; padding: 2px 0; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: #ededed; border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: left center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hamburger       { display: none; }
.mobile-roblox-li{ display: none; }

/* ============================================================
   MOBILE NAV ≤ 768px — simple dropdown, nothing fancy
============================================================ */
@media (max-width: 768px) {
  .hamburger  { display: flex; }
  .btn-roblox { display: none !important; }
  .nav-logo img { height: 30px; }

  /* nav-inner must be relative so absolute child positions under it */
  .nav-inner { position: relative; }

  /* Dropdown hidden by default */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 3px solid #f59e0b;
    box-shadow: 0 16px 48px rgba(0,0,0,0.8);
    flex-direction: column;
    gap: 0; list-style: none;
    margin: 0; padding: 8px 16px 16px;
    z-index: 9999;
  }
  /* Show when JS adds .open */
  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; display: block; }
  .nav-links li + li { border-top: 1px solid rgba(255,255,255,0.06); }

  .nav-links a {
    display: block; padding: 13px 4px;
    font-size: 15px; font-weight: 500;
    color: #999; text-decoration: none;
    transition: color .15s; background: none;
  }
  .nav-links a:hover  { color: #fff; }
  .nav-links a.active { color: #f59e0b; font-weight: 600; }

  .mobile-roblox-li {
    display: block;
    margin-top: 6px; padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
  }
  .mobile-roblox-li a { color: #f59e0b !important; font-weight: 700 !important; }

  /* General mobile layout */
  .hero { padding: 36px 0 24px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .cta-primary, .cta-secondary { justify-content: center; }
  .stats-bar { gap: 16px; }
  .stat-num  { font-size: 22px; }
  .carousel-wrap { max-height: 200px; }
  .slide-subtitle { display: none; }
  .tools-grid { grid-template-columns: 1fr; gap: 12px; }
  .codes-grid { grid-template-columns: 1fr; }
  .content-section { grid-template-columns: 1fr; gap: 24px; }
  .roblox-banner { flex-direction: column; text-align: center; align-items: center; padding: 24px 16px; }
  .roblox-banner a { width: 100%; justify-content: center; }
  .calc-grid  { grid-template-columns: 1fr !important; }
  .calc-vs    { display: none !important; }
  .post-wrap, .post-layout { grid-template-columns: 1fr !important; }
  .fruit-layout { grid-template-columns: 1fr !important; }
  .pc-grid    { grid-template-columns: 1fr !important; }
  .container  { padding: 0 14px; }
  table { font-size: 13px; }
  th, td { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .page-hero h1 { font-size: 26px; }
  .section-title { font-size: 22px; }
}
