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

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

:root {
  --bg:        #0a0a0a;
  --bg2:       #111111;
  --bg3:       #1a1a1a;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);
  --text:      #ededed;
  --muted:     #888888;
  --muted2:    #aaaaaa;
  --accent:    #f59e0b;
  --accent2:   #fbbf24;
  --accent-bg: rgba(245,158,11,0.10);
  --green:     #22c55e;
  --red:       #ef4444;
  --blue:      #3b82f6;
  --radius:    12px;
  --radius-lg: 20px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max:       1200px;
  --trans:     0.2s 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(10,10,10,0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); 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: 38px; width: auto; max-width: 160px; 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; }

/* --- 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:.3} }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.fade-up { animation: fadeUp 0.45s ease both; }

/* --- Animations --- */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.fade-up { animation: fadeUp 0.45s ease both; }

/* --- 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; }

/* ============================================================
   RESPONSIVE — ONE CLEAN DEFINITIVE BLOCK
   No duplicates anywhere in this file.
============================================================ */

/* Footer grid */
@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; } }

/* ============================================================
   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 */
@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 BUTTON — desktop hidden, mobile shown
============================================================ */
.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 0.25s ease, opacity 0.25s ease;
  transform-origin: left center;
}
/* X state when open */
.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); }

/* Desktop: hamburger hidden, mobile roblox li hidden */
.hamburger         { display: none; }
.mobile-roblox-li  { display: none; }

/* ============================================================
   MOBILE NAV  — max 768px
   APPROACH: simple absolute dropdown below nav bar.
   display:none → display:flex when .open class added.
   This is the most reliable approach — no z-index wars.
============================================================ */
@media (max-width: 768px) {

  /* Show hamburger */
  .hamburger  { display: flex; }

  /* Hide desktop Roblox button */
  .btn-roblox { display: none !important; }

  /* Smaller logo */
  .nav-logo img { height: 30px; }

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

  /* ---- THE DROPDOWN ---- */
  .nav-links {
    /* Hidden by default */
    display: none;

    /* Dropdown positioning */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    /* Appearance */
    background: #111111;
    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);

    /* Layout */
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 8px 16px 16px;
    z-index: 9999;
  }

  /* OPEN — show the dropdown */
  .nav-links.open {
    display: flex;
  }

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

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

  /* Mobile roblox item */
  .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;
    padding: 12px 4px !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; }
}
