/* =============================================
   randomthat.com — shared styles
   Font: Inter (all languages)
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
body { background: #f5f2eb; color: #1a1a1a; font-family: 'Inter', sans-serif; min-height: 100vh; }

/* ── NAV ── */
.nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.nav-logo { font-size: 18px; font-weight: 800; color: #111; letter-spacing: -0.03em; text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-back { font-size: 12px; font-weight: 500; color: #999; text-decoration: none; transition: color 0.15s; }
.nav-back:hover { color: #111; }

/* ── LANG SWITCHER ── */
.lang-wrapper { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; background: transparent; border: 1.5px solid #d0ccc3; border-radius: 40px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: #888; cursor: pointer; letter-spacing: 0.05em; transition: all 0.15s; user-select: none; }
.lang-btn:hover, .lang-btn.open { border-color: #111; color: #111; }
.lang-btn .arrow { font-size: 8px; transition: transform 0.2s; }
.lang-btn.open .arrow { transform: rotate(180deg); }
.lang-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid #e0dbd0; border-radius: 10px; overflow: hidden; min-width: 90px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); z-index: 10; }
.lang-dropdown.open { display: block; }
.lang-option { display: block; padding: 10px 16px; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: #888; cursor: pointer; transition: background 0.1s; }
.lang-option:hover { background: #f5f2eb; color: #111; }
.lang-option.active { color: #111; font-weight: 700; }

/* ── FOOTER ── */
.footer { margin-top: 64px; display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid #e0dbd0; flex-wrap: wrap; gap: 12px; }
.footer-left { font-size: 12px; font-weight: 500; color: #888; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a { font-size: 13px; color: #777; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #111; }
@media (max-width: 600px) {
  .footer { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .footer-links { gap: 24px; }
}

/* ── PAGE ── */
.page { max-width: 960px; margin: 0 auto; padding: 48px 32px 80px; }
@media (max-width: 600px) {
  .page { padding: 28px 16px 60px; }
  .nav { gap: 8px; flex-wrap: wrap; }
  .nav-right { gap: 8px; }
  .nav-back { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
  .lang-btn { padding: 7px 10px; font-size: 10px; }
}

/* ── PAGE TITLE ── */
.page-title { font-size: clamp(38px, 6vw, 58px); font-weight: 800; letter-spacing: -0.04em; color: #111; line-height: 1.05; margin-bottom: 10px; }
.page-sub { font-size: 16px; color: #999; font-weight: 400; margin-bottom: 36px; line-height: 1.6; }

/* ── BUTTONS ── */
.btn-primary { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: #f5f2eb; background: #111; border: none; border-radius: 40px; padding: 14px 40px; cursor: pointer; transition: opacity 0.15s, transform 0.1s; }
.btn-primary:hover { opacity: 0.85; }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: #aaa; background: transparent; border: 1.5px solid #d0ccc3; border-radius: 40px; padding: 12px 20px; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.btn-secondary:hover { border-color: #111; color: #111; }

/* ── RESULT BOX ── */
.result-box { background: #FFD9B0; border-radius: 12px; padding: 14px 24px; text-align: center; transition: opacity 0.3s; }
.result-box.hidden { opacity: 0; pointer-events: none; }
.result-label { font-size: 10px; font-weight: 600; color: #a07840; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.result-value { font-size: 18px; font-weight: 700; color: #111; }

/* ── HISTORY ── */
.history-title { font-size: 11px; font-weight: 600; color: #777; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border: 1px solid #e8e4dc; border-radius: 10px; }

/* ── SEO SECTION ── */
.seo-section { margin-top: 72px; border-top: 1px solid #e0dbd0; padding-top: 56px; display: flex; flex-direction: column; gap: 56px; }
.seo-block h2 { font-size: 22px; font-weight: 700; color: #111; letter-spacing: -0.02em; margin-bottom: 16px; }
.seo-block p { font-size: 15px; color: #555; line-height: 1.8; font-weight: 400; margin-bottom: 12px; }
.seo-block p:last-child { margin-bottom: 0; }

/* ── USE CASES ── */
.use-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 4px; }
.use-case { background: #fff; border: 1px solid #e8e4dc; border-radius: 10px; padding: 14px 16px; font-size: 14px; color: #444; line-height: 1.4; }
.use-case strong { display: block; font-size: 10px; font-weight: 700; color: #999; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }

/* ── HOW-TO ── */
.how-to-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.how-to-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid #e8e4dc; border-radius: 12px; }
.how-to-num { font-size: 13px; font-weight: 700; color: #ccc; flex-shrink: 0; min-width: 24px; }
.how-to-text { font-size: 14px; color: #444; line-height: 1.55; }
.how-to-text strong { color: #111; font-weight: 600; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.faq-item { border: 1px solid #e8e4dc; border-radius: 10px; overflow: hidden; }
.faq-q { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; color: #111; padding: 16px 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; transition: background 0.15s; user-select: none; }
.faq-q:hover { background: #faf8f4; }
.faq-q .faq-icon { font-size: 16px; color: #ccc; flex-shrink: 0; transition: transform 0.2s; }
.faq-q.open .faq-icon { transform: rotate(45deg); color: #111; }
.faq-a { font-size: 14px; color: #666; line-height: 1.7; padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; background: #fff; }
.faq-a.open { max-height: 200px; padding: 0 18px 16px; }

/* ── COOKIE BANNER ── */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; padding: 0 24px 24px; display: flex; justify-content: center; pointer-events: none; }
.cookie-inner { background: #111; color: #f5f2eb; border-radius: 16px; padding: 18px 24px; display: flex; align-items: center; gap: 20px; max-width: 760px; width: 100%; box-shadow: 0 8px 32px rgba(0,0,0,0.18); pointer-events: all; animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-text { font-size: 14px; color: #aaa; line-height: 1.55; flex: 1; }
.cookie-text a { color: #f5f2eb; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.cookie-accept { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700; color: #111; background: #f5f2eb; border: none; border-radius: 40px; padding: 10px 22px; cursor: pointer; transition: opacity 0.15s; white-space: nowrap; flex-shrink: 0; }
.cookie-accept:hover { opacity: 0.85; }
.cookie-banner.hiding { animation: slideDown 0.3s ease-in forwards; }
@keyframes slideDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(24px); opacity: 0; } }
@media (max-width: 600px) {
  .cookie-banner { padding: 0 16px 16px; }
  .cookie-inner { flex-direction: column; gap: 14px; }
  .cookie-accept { width: 100%; text-align: center; padding: 12px; }
}
