/* ==========================================================================
   RatioYT — No-BS Website (LibRedirect-inspired style)
   Clean, fast, text-forward, high-contrast dark theme
   ========================================================================== */

:root {
  --text:         #ffffff;
  --text-muted:   #c0c0c8;
  --text-dim:     #888894;
  --bg-main:      #0c0c0e;
  --bg-secondary: #15151a;
  --bg-card-hover:#1c1c22;
  --active:       #ffd23f;
  --danger:       #ec3750;
  --blue:         #9cccff;
  --border:       #26262e;
  --border-focus: #444450;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    18px;
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  --mono:         ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background-color: var(--bg-main);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--active);
  color: #000000;
}

a {
  color: var(--active);
  text-decoration: none;
  transition: color 120ms ease-out;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

/* ── Header ── */

#header {
  text-align: center;
  margin-bottom: 24px;
}

#logo {
  margin-top: 10px;
  margin-bottom: 12px;
}

#logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: opacity 140ms ease-out;
}

#logo a:hover {
  opacity: 0.85;
  text-decoration: none;
}

#logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

#logo h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ── Navigation bar ── */

.nav_bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 12px;
  margin: 12px auto 24px;
  padding: 6px 14px;
}

.nav_bar a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none !important;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 140ms ease-out, background-color 140ms ease-out;
}

.nav_bar a:hover,
.nav_bar a.active {
  color: var(--active);
}

.nav_bar a.donate_nav {
  color: var(--danger);
}

.nav_bar a.donate_nav:hover {
  color: #ff6b7e;
}

.title {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 24px;
}

/* ── Sections ── */

.section-block {
  margin-top: 36px;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 14px;
  text-align: left;
}

/* ── Store badges (Extension.js squircle style) ── */

.install-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px auto 16px;
}

.browser-badge {
  width: 7em;
  height: 7em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease-out;
}

.browser-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.browser-badge:hover {
  transform: scale(1.2);
}

.install-note {
  font-size: 0.95rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 12px;
}

.install-note strong {
  color: var(--text-muted);
}

/* ── Connect links ── */

.connect-section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.connect-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px 16px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin: 0 auto;
  max-width: fit-content;
}

.connect-item {
  display: inline-flex;
  gap: 6px;
}

.connect-item strong {
  color: var(--text-muted);
}

.connect-links .sep {
  color: var(--border-focus);
  user-select: none;
}

/* ── Feature / Info List (ul.clear li LibRedirect pattern) ── */

.features-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.features-layout ul.clear {
  flex: 1;
  min-width: 0;
}

.popup-preview {
  flex-shrink: 0;
  width: 320px;
  position: sticky;
  top: 24px;
}

.popup-frame-wrapper {
  width: 320px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  background: #000000;
}

.popup-preview iframe {
  width: 320px;
  height: 560px;
  border: none;
  display: block;
}

ul.clear {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

ul.clear li {
  margin: 0;
  padding: 12px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.5;
  font-size: 0.98rem;
  color: var(--text-muted);
  transition: border-color 140ms ease-out, background-color 140ms ease-out;
}

ul.clear li:hover {
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
}

ul.clear li strong {
  color: var(--text);
  font-weight: 700;
}

ul.clear .arrow {
  color: var(--active);
  margin: 0 6px;
  font-weight: bold;
}

/* ── Footer ── */

#footer {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-nav a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--active);
}

/* ── Responsive ── */

@media (max-width: 860px) {
  .popup-preview {
    display: none !important;
  }
}

@media (max-width: 720px) {
  #logo h1 {
    font-size: 2rem;
  }

  .title {
    font-size: 1.1rem;
  }

  .browser-badge {
    width: 60px;
    height: 60px;
    padding: 11px;
  }

  ul.clear li {
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .connect-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .connect-links .sep {
    display: none;
  }
}
