/* =====================================================
   Riamu Sensei — Redesign CSS
   Palette: cream bg, near-black text, JP red accent
   ===================================================== */

:root {
  --bg: #FAF8F5;
  --text: #1C1C1C;
  --accent: #BC002D;
  --muted: #6B6258;
  --card: #FFFFFF;
  --drawer-bg: #1C1C1C;
  --drawer-text: #FAF8F5;
}

/* --- Base --- */
body.rn-body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

/* --- Navbar --- */
.rn-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  padding: 0.75rem 1.5rem;
}

.rn-navbar.rn-scrolled {
  background: var(--bg);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

.rn-navbar .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-size: 15px;
  font-weight: 400;
  padding: 0.4rem 0.9rem !important;
  transition: color 0.2s ease;
}

.rn-navbar.rn-scrolled .nav-link {
  color: var(--text) !important;
}

.rn-navbar .nav-link:hover,
.rn-navbar .nav-link.active {
  color: var(--accent) !important;
}

.rn-navbar .navbar-toggler { border: none; }
.rn-navbar.rn-scrolled .navbar-toggler-icon {
  filter: invert(1);
}

.rn-discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #5865F2;
  color: #fff !important;
  font-size: 18px;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.rn-discord-btn:hover { opacity: 0.85; color: #fff !important; }

.rn-drawer-toggle {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.rn-drawer-toggle:hover { background: #8A0021; color: #fff; }

/* --- Account Drawer --- */
.rn-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1040;
}
.rn-drawer-overlay.rn-active { display: block; }

.rn-drawer {
  position: fixed;
  top: 0; right: -400px;
  width: 380px;
  height: 100vh;
  background: var(--drawer-bg);
  color: var(--drawer-text);
  z-index: 1050;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.rn-drawer.rn-open { right: 0; }

@media (max-width: 576px) {
  .rn-drawer { width: 100vw; right: -100vw; }
}

.rn-drawer-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none; border: none;
  color: var(--drawer-text);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7; line-height: 1;
}
.rn-drawer-close:hover { opacity: 1; }

.rn-drawer-tabs {
  display: flex;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.rn-drawer-tab {
  background: none; border: none;
  color: rgba(255,255,255,0.5);
  font-family: 'Poppins', sans-serif;
  font-size: 15px; font-weight: 500;
  padding: 0.5rem 1rem 0.75rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.rn-drawer-tab.rn-tab-active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.rn-drawer .form-label {
  color: rgba(255,255,255,0.7);
  font-size: 13px; margin-bottom: 4px;
}

.rn-drawer .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
}
.rn-drawer .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent);
  color: #fff; box-shadow: none;
}
.rn-drawer .form-control::placeholder { color: rgba(255,255,255,0.35); }

.rn-drawer-btn {
  width: 100%;
  background: var(--accent); color: #fff;
  border: none; border-radius: 4px;
  padding: 0.65rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 15px; font-weight: 600;
  cursor: pointer; margin-top: 0.5rem;
  transition: background 0.2s;
}
.rn-drawer-btn:hover { background: #8A0021; }

.rn-drawer-forgot {
  color: rgba(255,255,255,0.5);
  font-size: 13px; text-decoration: none;
  display: block; margin-top: 0.75rem;
  text-align: center;
}
.rn-drawer-forgot:hover { color: rgba(255,255,255,0.8); }

.rn-drawer-msg { font-size: 13px; margin-top: 0.5rem; min-height: 1.2em; }

.rn-drawer-username {
  font-size: 18px; font-weight: 600;
  margin-bottom: 1.75rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.rn-drawer-replays-btn {
  display: block; width: 100%;
  background: var(--accent); color: #fff;
  text-align: center; border: none;
  border-radius: 4px; padding: 0.85rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 16px; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.rn-drawer-replays-btn:hover { background: #8A0021; color: #fff; }

.rn-drawer-logout {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 14px; text-decoration: none;
  text-align: center;
  margin-top: auto; padding-top: 2rem;
}
.rn-drawer-logout:hover { color: rgba(255,255,255,0.75); }

/* --- Hero --- */
.rn-hero {
  min-height: 100vh;
  background-image: url('../images/japaneseLanterns.jpg');
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
}
.rn-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.30);
}

.rn-hero-content {
  position: relative; z-index: 1;
  max-width: 720px; padding: 0 1.5rem;
}

.rn-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300; color: #fff;
  line-height: 1.2; margin-bottom: 1rem;
}

.rn-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
}

.rn-hero-cta {
  display: inline-block;
  background: var(--accent); color: #fff;
  text-decoration: none;
  padding: 0.85rem 2.25rem; border-radius: 4px;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}
.rn-hero-cta:hover { background: #8A0021; color: #fff; }

/* --- Shared section --- */
.rn-section { padding: 5rem 0; }

.rn-section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600; color: var(--text);
  margin-bottom: 0.4rem;
}

.rn-section-muted {
  color: var(--muted); font-size: 1rem;
  margin-bottom: 3rem;
}

/* --- Philosophy --- */
.rn-philosophy { background: var(--bg); }

.rn-phil-card {
  background: var(--card); border-radius: 8px;
  padding: 2rem 1.5rem; height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.rn-phil-card img {
  width: 52px; height: 52px;
  object-fit: contain; margin-bottom: 1rem;
  display: block;
}
.rn-phil-card h3 {
  font-size: 1.05rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.6rem;
}
.rn-phil-card p {
  color: var(--muted); font-size: 0.92rem;
  line-height: 1.65; margin: 0;
}

/* --- About --- */
.rn-about { background: var(--card); }
.rn-about-img {
  border-radius: 8px; width: 100%;
  object-fit: cover; max-height: 480px;
  display: block;
}
.rn-about h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600; margin-bottom: 1.25rem;
}
.rn-about p { color: var(--muted); font-size: 1rem; line-height: 1.8; }

/* --- Subscription CTA --- */
.rn-cta {
  background: var(--bg);
  position: relative; overflow: hidden;
}
.rn-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../images/torii.jpg');
  background-size: cover; background-position: center;
  opacity: 0.07;
}
.rn-cta-inner {
  position: relative; z-index: 1;
  max-width: 640px; margin: 0 auto;
  text-align: center;
}
.rn-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600; margin-bottom: 1.5rem;
}
.rn-cta ul {
  list-style: none; padding: 0;
  margin: 0 0 2.25rem; text-align: left;
}
.rn-cta ul li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  color: var(--muted); font-size: 0.97rem;
}
.rn-cta ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent); font-weight: 600;
}
.rn-cta-btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  text-decoration: none;
  padding: 0.9rem 2.5rem; border-radius: 4px;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}
.rn-cta-btn:hover { background: #8A0021; color: #fff; }

/* --- Footer --- */
.rn-footer {
  background: #111;
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 1.5rem;
  font-size: 14px;
}
.rn-footer h4 {
  color: #fff; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.rn-footer a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  display: block; margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.rn-footer a:hover { color: #fff; }

.rn-footer-social { display: flex; gap: 1rem; margin-top: 0.5rem; }
.rn-footer-social a {
  display: flex; width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  align-items: center; justify-content: center;
  font-size: 16px; margin-bottom: 0;
  transition: border-color 0.2s, color 0.2s;
}
.rn-footer-social a:hover { border-color: #fff; color: #fff; }

.rn-footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  color: rgba(255,255,255,0.25); font-size: 13px;
}

/* --- Shop comparison table --- */
.rn-shop-intro { max-width: 680px; }
.rn-shop-intro p { color: var(--muted); }
.rn-shop-intro ul { padding-left: 1.25rem; color: var(--muted); font-size: 0.97rem; }
.rn-shop-intro ul li { margin-bottom: 0.4rem; }

.rn-compare-wrap { overflow-x: auto; margin-top: 2.5rem; }

.rn-compare-table {
  width: 100%; border-collapse: separate;
  border-spacing: 0; min-width: 480px;
}
.rn-compare-table th {
  background: var(--text); color: #fff;
  padding: 1.25rem 1.5rem;
  font-size: 1rem; font-weight: 600;
  text-align: center; width: 50%;
}
.rn-compare-table th:first-child { border-radius: 8px 0 0 0; }
.rn-compare-table th:last-child  { border-radius: 0 8px 0 0; }

.rn-compare-table td {
  padding: 0.9rem 1.5rem;
  border: 1px solid #e8e2db;
  vertical-align: top;
  font-size: 0.95rem; color: var(--muted);
  background: var(--card);
}
.rn-compare-table td.rn-price-cell {
  font-size: 1.4rem; font-weight: 600;
  color: var(--text); text-align: center;
  padding: 1.25rem;
}
.rn-compare-table tbody tr:last-child td:first-child { border-radius: 0 0 0 8px; }
.rn-compare-table tbody tr:last-child td:last-child  { border-radius: 0 0 8px 0; }

.rn-stripe-note {
  text-align: center; margin-top: 2rem;
  color: var(--muted); font-size: 0.9rem;
}
.rn-stripe-note a { color: var(--accent); }

/* --- CTA perk cards (index.php) --- */
.rn-perk-card {
  background: var(--card);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
}
.rn-perk-icon {
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.85rem;
}
.rn-perk-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.rn-perk-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}
.rn-perk-card a { color: var(--accent); }

/* --- Shop image --- */
.rn-shop-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.rn-shop-intro-text { color: var(--muted); margin-bottom: 1rem; }
.rn-shop-list {
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.rn-shop-list li { margin-bottom: 0.5rem; }
.rn-shop-list a { color: var(--accent); }

/* --- Big subscribe button (shop.php) --- */
.rn-subscribe-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 1.1rem 4rem;
  border-radius: 6px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 20px rgba(188,0,45,0.25);
}
.rn-subscribe-btn:hover {
  background: #8A0021;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(188,0,45,0.35);
}

/* --- Navbar spacer for fixed nav on inner pages --- */
.rn-spacer { height: 72px; }
