@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --neon-purple: #6500ff;
    --purple:     #8500ff;
    --cyan: #41e114;  /* Pixels Green */
    --cyan-light: #a9fe75;  /* Pixels Light Green */
    --yellow:     #edff84;
    --green:      #b7eb05;
    --bg-color:   #0a0a15;
    --dark-bg:    #1a1a2e;
    --card-bg:    #0f3460;

    --pixels-green: #41e114;
    --pixels-green-light: #a9fe75;
    
    --accent:     var(--cyan);
    --accent-glow:var(--purple);
    --highlight:  var(--yellow);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #16213e 100%);
    color: #e4e4e4;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* ─── Global Elements ──────────────────────────────────────── */

a {
    color: var(--cyan);
    text-decoration: none;
}

a:hover {
    color: var(--yellow);
}

h1, h2, h3 {
    font-family: 'Press Start 2P', monospace;
    text-shadow: 0 0 12px rgba(237, 255, 132, 0.5);
}

h1 { font-size: 1.8rem; margin-bottom: 1.5rem; line-height: 1.4; }
h2 { font-size: 1.3rem; margin: 2.5rem 0 1.2rem; line-height: 1.5; }
h3 { font-size: 1rem; margin: 2rem 0 1rem; line-height: 1.5; }

/* ─── Header ───────────────────────────────────────────────── */

header {
    background: linear-gradient(90deg, var(--purple) 0%, #6a00cc 100%);
    padding: 0;
    border-bottom: 3px solid var(--yellow);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 0.4rem 1.5rem;
    height: 58px;
    box-sizing: border-box;
}

.logo-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-section img, .logo {
    width: 42px;
    height: 42px;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.6));
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-text h1, .logo-section h1 {
    font-size: 1.05rem;
    color: white;
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
}
.logo-text .tagline, .header-tagline {
    font-size: 0.62rem;
    color: var(--yellow);
    margin: 0;
    opacity: 0.9;
    white-space: nowrap;
    font-family: 'Segoe UI', sans-serif;
}
.header-translate { margin-left: auto; flex-shrink: 0; }
.translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 4px 10px;
    background: rgba(65,225,20,0.1);
    border: 1px solid rgba(65,225,20,0.4);
    border-radius: 6px;
    font-size: 0.78rem;
    color: #41e114;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.translate-btn:hover { background: rgba(65,225,20,0.2); }
.header-price { flex-shrink: 0; max-width: 180px; overflow: hidden; }
.header-auth {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.header-auth a {
    padding: 0.28rem 0.7rem;
    font-size: 0.76rem;
    white-space: nowrap;
}
.welcome-text { font-size: 0.75rem; opacity: 0.8; white-space: nowrap; }

/* legacy - kept for rest of site */
.user-nav, .right-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.price-widget {
    padding: 0.4rem 0.8rem;
    max-width: 160px;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.45);
    border-radius: 8px;
    border: 1px solid rgba(237,255,132,0.25);
    overflow: hidden;
}
.price-widget coingecko-coin-price-marquee-widget {
    color: #edff84 !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7) !important;
}
.price-widget-compact coingecko-coin-price-marquee-widget {
    width: 100% !important; height: auto !important; display: block;
}

/* ─── Navigation Bar ───────────────────────────────────────── */

.nav-toggle { display: none; }

nav {
    background: var(--card-bg);
    padding: 0.3rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

nav ul#navMenu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.2rem 0;
}

nav a {
    color: var(--cyan);
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.88rem;
    transition: 0.3s;
    white-space: nowrap;
    display: block;
}
nav a:hover {
    color: white;
    background: rgba(65,225,20,0.18);
}

/* ─── Main Layout + Sidebar ────────────────────────────────── */

.main-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    padding: 1.5rem;
}

.sidebar {
    flex: 0 0 260px;
    background: var(--dark-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(101,0,255,0.25);
    height: fit-content;
    position: sticky;
    top: 1rem;
}

.sidebar h4, .sidebar h5 {
    color: var(--yellow);
    margin-bottom: 1rem;
}

.sidebar a {
    display: block;
    padding: 0.7rem 0;
    color: var(--cyan);
    transition: 0.25s;
}

.sidebar a:hover {
    color: var(--yellow);
    padding-left: 0.6rem;
}

.main-content-area {
    flex: 1;
    min-width: 0;
}

/* Constrain images inside article content at ALL screen sizes */
.content-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* ─── Hero Section – Full-width background with floating buttons ──────── */

.hero-full {
  position: relative;
  width: 100%;
  min-height: 420px;               /* shrunk from 380px/600px */
  overflow: visible !important;
  margin: 0;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;  /* crop from the top, keep the bottom */
  display: block;
}

/* No overlay – as you requested */
.hero-overlay {
  display: none;                   /* or just remove this block entirely */
}

.hero-content {
  position: relative;
  z-index: 3;                      /* above background */
  padding: 2.5rem 2rem 3rem;       /* reduced top padding since hero is shorter */
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  color: white;
  overflow: visible !important;
}

.hero-title {
  font-size: 3.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 3.5rem;           /* extra space before buttons */
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ── Pill buttons (replaced big cards) ─────────────────────── */
.hero-pill-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 52, 96, 0.75);
  backdrop-filter: blur(6px);
  border: 2px solid var(--cyan);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.hero-pill:hover {
  background: rgba(65, 225, 20, 0.15);
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(133,0,255,0.4);
}

/* Keep old .main-buttons classes harmless in case used elsewhere */
.main-buttons { display: none; }

/* ── Dojo Picks homepage block ──────────────────────────────── */
.dojo-picks-block {
  margin: 0 0 2.5rem;
  background: linear-gradient(135deg, rgba(10,14,26,0.8) 0%, rgba(17,24,39,0.9) 100%);
  border: 1px solid rgba(65,225,20,0.25);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.5rem;
}

.dojo-picks-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.dojo-picks-eyebrow {
  font-size: 0.7rem;
  color: var(--cyan);
  opacity: 0.6;
  flex-basis: 100%;
  letter-spacing: 0.1em;
}

.dojo-picks-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.55rem, 1.5vw, 0.8rem);
  color: var(--yellow);
  margin: 0;
  flex: 1;
  text-shadow: 0 0 16px rgba(237,255,132,0.3);
}

.dojo-picks-viewall {
  font-size: 0.82rem;
  color: var(--cyan);
  opacity: 0.7;
  text-decoration: none;
  white-space: nowrap;
}
.dojo-picks-viewall:hover { opacity: 1; color: var(--yellow); }

.dojo-picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.dojo-pick-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1.1rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  position: relative;
  min-height: 100px;
}

.dojo-pick-card:hover {
  border-color: rgba(65,225,20,0.4);
  background: rgba(65,225,20,0.04);
  transform: translateY(-2px);
  color: inherit;
}

.dojo-pick-card.pick-winner {
  border-color: rgba(237,255,132,0.35);
  background: rgba(237,255,132,0.03);
}

.pick-winner-badge {
  position: absolute;
  top: 0.5rem; right: 0.6rem;
  background: var(--yellow);
  color: #000;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.38rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  line-height: 1.6;
}

.pick-handle {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.pick-snippet {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pick-cta {
  font-size: 0.72rem;
  color: var(--cyan);
  opacity: 0.5;
  margin-top: 0.25rem;
}

.dojo-picks-footer {
  text-align: center;
  margin-top: 1.25rem;
}

.dojo-picks-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(65,225,20,0.08);
  border: 1px solid rgba(65,225,20,0.3);
  color: var(--cyan);
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
}
.dojo-picks-cta:hover {
  background: rgba(65,225,20,0.18);
  border-color: var(--cyan);
  color: white;
}

@media (max-width: 900px) {
  .dojo-picks-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .dojo-picks-grid { grid-template-columns: 1fr; }
  .hero-pill { font-size: 0.9rem; padding: 0.6rem 1.3rem; }
}


/* ─── Search ───────────────────────────────────────────────── */

.search-bar-container {
    max-width: 800px;
    margin: 2.5rem auto;
}

.search-form {
    display: flex;
    background: var(--card-bg);
    border: 2px solid var(--cyan);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(65, 225, 20,0.2);
}

.search-form input {
    flex: 1;
    padding: 1.1rem 1.8rem;
    font-size: 1.1rem;
    background: transparent;
    border: none;
    color: white;
}

.search-form input::placeholder {
    color: var(--cyan-light);
}

.search-form button {
    background: var(--cyan);
    color: var(--dark-bg);
    border: none;
    padding: 0 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.search-form button:hover {
    background: var(--cyan-light);
}

/* ─── Cards & Grids ────────────────────────────────────────── */

.card-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
    margin: 2rem 0;
}

.card {
    background: var(--card-bg);
    padding: 1.6rem;
    border-radius: 12px;
    border: 2px solid var(--neon-purple);
    transition: all 0.35s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan);
    box-shadow: 0 12px 32px rgba(101,0,255,0.3);
}

.card h3 {
    color: var(--cyan);
}

.author-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(65, 225, 20, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(65, 225, 20, 0.2);
  margin: 2rem 0 3rem;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cyan, #41e114);
  flex-shrink: 0;
}

.author-info h4 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--yellow, #ffff00);
}

.author-info h4 a {
  color: inherit;
  text-decoration: none;
}

.author-info h4 a:hover {
  color: var(--cyan);
}

.author-bio {
  margin: 0 0 1rem;
  color: #d0d0ff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.social-links {
  margin: 0.5rem 0 1rem;
}

.social-link {
  margin-right: 1rem;
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.95rem;
}

.social-link:hover {
  color: var(--yellow);
  text-decoration: underline;
}

.btn-tip {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--cyan);
  color: black;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s;
}

.btn-tip:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}

/* ─── Content Sections ─────────────────────────────────────── */

.content-section {
    background: var(--card-bg);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 12px;
    border-left: 5px solid var(--cyan);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.wiki-page {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--cyan);
}

.page-header {
  margin-bottom: 2rem;
}

.page-meta {
  display: flex;
  gap: 1.2rem;
  color: #aaa;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.gallery-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--neon-purple);
}

.no-media {
  color: #888;
  font-style: italic;
  text-align: center;
  margin: 2rem 0;
}

/* Wider recent guides block */
.category-block.recent.wide-block {
  grid-column: 1 / -1;                    /* spans full width in grid */
  background: transparent;
  border: none;
  padding: 0;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.recent-card {
  display: flex;
  background: var(--card-bg);
  border: 2px solid var(--neon-purple);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(101,0,255,0.15);
}

.recent-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(133,0,255,0.35);
  border-color: var(--cyan);
}

.card-image {
  width: 140px;
  flex-shrink: 0;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-right: 2px solid var(--neon-purple);
}

.card-content {
  padding: 1.2rem;
  flex: 1;
}

.card-content h3 {
  color: var(--cyan);
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
}

.card-content .snippet {
  font-size: 0.95rem;
  color: #d0d0ff;
  line-height: 1.4;
  margin: 0 0 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content small {
  color: #aaa;
  font-size: 0.9rem;
}

/* Make this block wider than others in grid */
.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-grid .wide-block {
  grid-column: 1 / -1;
}

.sort-controls a {
  color: var(--cyan);
  margin: 0 0.6rem;
  text-decoration: none;
  font-weight: 500;
}

.sort-controls a:hover,
.sort-controls a.active {
  color: var(--yellow);
  text-decoration: underline;
}

.npc-page-content {
  padding: 4rem;                /* all sides – adjust as needed */
  padding-top: 2rem;            /* less top if you want tighter feel */
  padding-bottom: 3rem;         /* more breathing room at bottom */
  max-width: 1200px;            /* optional: cap width like homepage */
  margin: 0 auto;               /* center it */
}

/* ─── Buttons ──────────────────────────────────────────────── */

.btn {
    display: inline-block;
    background: var(--cyan);
    color: var(--dark-bg);
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background: var(--cyan-light);
    transform: translateY(-2px);
}

.btn-purple {
    background: var(--purple);
    color: white;
}

.btn-purple:hover {
    background: #6a00cc;
}

/* ─── Footer ───────────────────────────────────────────────── */

footer {
    background: var(--card-bg);
    border-top: 4px solid var(--cyan);
    padding: 3rem 1.5rem 2rem;
    color: #d0d0d0;
    margin-top: 5rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;         /* ← makes all blocks same height */
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-block {
    flex: 1;
    min-width: 220px;
    border: 1px solid var(--neon-purple);
    border-radius: 12px;
    padding: 1.6rem;
    background: rgba(101,0,255,0.08);
    box-shadow: 0 6px 20px rgba(101,0,255,0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* content spreads nicely */
    transition: all 0.3s;
}

.footer-block:hover {
    box-shadow: 0 10px 30px rgba(133,0,255,0.3);
    transform: translateY(-4px);
}

.profile-block {
    flex: 1.8; /* slightly wider for profile */
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--cyan);
    object-fit: cover;
}

.profile-name {
    color: var(--yellow);
    font-size: 1.2rem;
    margin: 0;
}

.social-block {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 1rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
}

.logo-block {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    max-width: 160px;
    height: auto;
}

.footer-copyright {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(237,255,132,0.2);
    font-size: 0.95rem;
    color: #aaa;
}

/* Mobile footer */
@media (max-width: 992px) {
    .footer-row {
        flex-direction: column;
        gap: 1.8rem;
    }
    
    .profile-block,
    .social-block,
    .logo-block {
        flex: none;
        text-align: center;
    }
    
    .profile-card {
        flex-direction: column;
        gap: 1rem;
    }
}

.profile-edit-container {
  background: rgba(20, 20, 40, 0.8);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(65, 225, 20, 0.2);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 32px rgba(65, 225, 20, 0.1);
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--cyan, #41e114);
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group input[type="file"] {
  width: 100%;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(65, 225, 20, 0.3);
  border-radius: 6px;
  color: white;
  font-size: 1rem;
}

.form-group input:disabled,
.form-group textarea:disabled {
  background: rgba(50, 50, 70, 0.6);
  color: #aaa;
  cursor: not-allowed;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(65, 225, 20, 0.3);
}

.form-group small {
  color: #aaa;
  font-size: 0.85rem;
  display: block;
  margin-top: 0.3rem;
}

.btn-save {
  background: var(--cyan, #41e114);
  color: black;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save:hover {
  background: var(--yellow, #ffff00);
  transform: translateY(-2px);
}

/* Better like/dislike buttons */
.interaction-bar {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.7);
    border-radius: 12px;
    border: 1px solid var(--cyan);
}

.like-btn, .dislike-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid var(--cyan);
    background: transparent;
    color: var(--cyan);
}

.like-btn:hover, .like-btn.liked {
    background: var(--cyan);
    color: var(--dark-bg);
    border-color: var(--cyan);
    transform: scale(1.05);
}

.dislike-btn:hover, .dislike-btn.disliked {
    background: #ff4444;
    color: white;
    border-color: #ff4444;
    transform: scale(1.05);
}

/* Icons (use Font Awesome or emoji if you have them) */
.like-btn::before { content: '👍 '; }
.dislike-btn::before { content: '👎 '; }


/* ────────────────────────────────────────────────
   MOBILE & TABLET RESPONSIVE STYLES (Cleaned & Fixed)
───────────────────────────────────────────────── */

/* Main mobile breakpoint – phones */
@media (max-width: 768px) {
  /* Hide hero completely – no image, no buttons from hero if separate */
  .hero-split,
  .hero-full,
  .hero-content,
  .hero-left,
  .hero-right,
  .main-buttons {  /* if main-buttons are inside hero, hide; otherwise adjust below */
    display: none !important;
  }

  /* 3 main buttons – horizontal row if space, else stack */
  .main-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    padding: 1.5rem 1rem;
    margin: 1rem 0;
  }

  .main-button {
    flex: 1 1 45%;               /* 2 per row if possible */
    max-width: 48%;
    min-width: 140px;
    padding: 1.4rem 1rem;
    font-size: 1rem;
  }

  .main-button .icon {
    font-size: 2.8rem;
    margin-bottom: 0.6rem;
  }

  .main-button h3 {
    font-size: 1.3rem;
    margin: 0.4rem 0;
  }

  .main-button p {
    font-size: 0.95rem;
    margin: 0;
  }

  /* Sidebar (left nav) – full-width below buttons */
  aside.sidebar,               /* adjust selector to your sidebar/nav class */
  .left-nav {
    width: 100%;
    margin: 1.5rem 0;
    padding: 1rem;
    order: 4;                    /* push after buttons/content if using flex on parent */
  }

  /* Main content */
  .content-section,
  .card-grid,
  main {
    padding: 1.2rem 1rem;
    margin: 0;
  }

  /* Footer */
  .footer-row {
    flex-direction: column;
    gap: 1.4rem;
    padding: 1.5rem 1rem;
  }

  /* General tweaks – prevent huge scrolling */
  body {
    font-size: 1rem;             /* base readable size */
    line-height: 1.5;
    margin: 0;
  }

  html, body {
    overflow-x: hidden;          /* no horizontal scroll madness */
  }

  * {
    box-sizing: border-box;
  }
}

/* Tablets / narrow laptops – lighter adjustments */
@media (max-width: 992px) {
  .npc-page-content {
    padding: 1.2rem;
  }

  .npc-grid,
  .npc-list {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
  }

  .main-button {
    flex: 1 1 30%;               /* allow 3 in a row on tablets if space */
    max-width: 32%;
  }

  .user-nav,
  .top-bar {
    gap: 1rem;
  }
}

/* ────────────────────────────────────────────────
   MOBILE & TABLET RESPONSIVE STYLES (Restored + Fixed)
───────────────────────────────────────────────── */

/* Main mobile/tablet breakpoint – up to 992px */
@media (max-width: 992px) {

/* Make ALL images responsive on mobile – shrink to fit screen/container */
img {
  max-width: 100% !important;     /* never wider than parent/screen */
  height: auto !important;        /* keep aspect ratio */
  display: block;                 /* remove bottom gap if any */
  margin: 0 auto;                 /* center if needed */
}

/* Extra: if images are in cards/sections, ensure containers allow shrinking */
.content-section img,
.card-grid img,
main img,
.page-content img {
  width: 100%;                    /* force fill container width */
  object-fit: contain;            /* or 'cover' if you want cropping instead of letterboxing */
}
    
  /* Reset sidebar – no overlap, full width, no fixed positioning */
  .sidebar,
  aside,
  .left-nav {
    position: static !important;     /* kill any fixed/sticky */
    width: 100%;
    margin: 1.5rem 0 0;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid rgba(101, 0, 255, 0.3); /* your old separator */
    background: transparent;         /* no forced bg */
  }

  /* Main wrapper – simple vertical stack, no forced order */
  .main-wrapper,
  .container,
  .page-wrapper,
  main {
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    gap: 1.5rem;
  }

  /* Hero – hide completely on mobile */
  .hero-split,
  .hero-full,
  .hero-section {
    display: none !important;
  }

  /* Main buttons (the 3 cards) – stack or 2-per-row */
  .main-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 1rem;
  }

  .main-button {
    width: 100%;
    max-width: 380px;
    padding: 2rem 1.3rem;
  }

  .main-button .icon {
    font-size: 3.2rem;
  }

  .main-button h3 {
    font-size: 1.5rem;
  }

  /* Content – no squish */
  .content-section,
  .card-grid,
  main,
  .first-section {
    padding: 1.5rem 1rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

   /* Login/Register form – make bigger, full-width, touch-friendly */
.login-form,                    /* common classes – adjust to yours, e.g. .login-page, .auth-form */
.register-form,
.auth-container,
#login-form,
.session-form {
  width: 90% !important;        /* almost full width, some breathing room */
  max-width: 420px !important;  /* bigger than before */
  margin: 2rem auto !important; /* center with more top/bottom space */
  padding: 2rem 1.5rem !important;
  box-sizing: border-box;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"],
.register-form input,
.auth-container input {
  width: 100% !important;
  padding: 1.2rem 1rem !important; /* taller inputs */
  font-size: 1.1rem !important;
  margin-bottom: 1.2rem !important;
  border-radius: 8px;
  border: 1px solid #444;
}

.login-form button,
.register-form button,
.auth-button,
#login-btn {
  width: 100% !important;
  padding: 1.2rem !important;
  font-size: 1.15rem !important;
  min-height: 54px !important;    /* good touch target size */
  border-radius: 8px;
  margin-top: 1rem;
}

/* If login is in a modal/popup */
.modal-content .login-form {
  padding: 1.5rem;
  width: 95%;
} 

  /* Footer */
  .footer-row {
    flex-direction: column;
    gap: 1.6rem;
    padding: 1.5rem 1rem;
  }

  /* General fixes */
  body {
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
    overflow-x: hidden;
  }

  html, body {
    overflow-x: hidden;
  }

  * {
    box-sizing: border-box;
  }
}

/* Finer adjustments for very small phones if needed */
@media (max-width: 480px) {
  .main-button { padding: 1.8rem 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   ADDITIONS ONLY - Add these to the BOTTOM of your existing style.css
   This keeps all your buttons, header styles, everything!
   ═══════════════════════════════════════════════════════════════════ */

/* ─── HERO HEIGHT ADJUSTMENT ─────────────────────────────────────── */
.hero-full {
    min-height: 450px !important;  /* Reduced from 600px */
}

.hero-tagline {
    margin-bottom: 2.5rem !important;  /* Reduced from 3.5rem */
}

/* ─── HEADER PADDING ADJUSTMENT ─────────────────────────────────── */
header {
    padding: 1.5rem 1rem 1.2rem !important;  /* Reduced bottom padding */
}

/* ─── COMPACT FEATURED CARDS (tiny thumbnails) ──────────────────── */
.featured-post {
    background: rgba(20, 20, 40, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.featured-post h2 {
    color: var(--cyan);
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.featured-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s;
}

.featured-card:hover {
    transform: translateX(5px);
    border-color: var(--cyan);
    background: rgba(0, 255, 255, 0.1);
}

.featured-card img {
    width: 100px;  /* Smaller square thumbnail */
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--cyan);
    flex-shrink: 0;
}

.featured-card > div {
    flex: 1;
}

.featured-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.featured-card h3 a {
    color: var(--yellow);
    text-decoration: none;
}

.featured-card h3 a:hover {
    color: var(--cyan);
}

.featured-card p {
    color: #d0d0ff;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.featured-card small {
    color: #999;
    font-size: 0.85rem;
}

/* ─── FEATURED COMPACT (Most Upvoted / Most Viewed) ─────────────── */
.featured-compact {
  background: rgba(20, 20, 40, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.featured-compact h2 {
  color: var(--cyan);
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
}

.compact-card {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}

.compact-card:hover {
  transform: translateX(4px);
}

.compact-card:hover .compact-info {
  border-color: var(--cyan);
  background: rgba(0, 255, 255, 0.08);
}

.compact-thumb {
  width: 220px;
  max-width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  flex-shrink: 0;
}

.compact-info {
  flex: 1;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.25s;
}

.compact-info h3 {
  color: var(--yellow);
  margin: 0 0 0.6rem 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

.compact-meta {
  color: #999;
  font-size: 0.9rem;
  margin: 0 0 0.8rem 0;
}

.compact-snippet {
  color: #c8c8e8;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── QUICK ACCESS - 3x2 GRID WITH SQUARE BLOCKS ───────────────── */
.content-section.quick-access {
    background: rgba(237, 255, 132, 0.05);
    border: 2px solid rgba(237, 255, 132, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.content-section.quick-access h2 {
    color: var(--yellow);
    margin: 0 0 1.5rem 0;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 3 columns */
    gap: 1rem;
}

.quick-block {
    background: rgba(0, 255, 255, 0.1);
    padding: 2rem 1.5rem;  /* Square-ish padding */
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s;
    min-height: 140px;  /* Makes them more square */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quick-block:hover {
    transform: translateY(-3px);
    border-color: var(--cyan);
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.quick-block h3 {
    color: var(--cyan);
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
}

.quick-block p {
    color: #d0d0ff;
    margin: 0;
    font-size: 0.9rem;
}

/* Special styling for contributor block */
.quick-block.contributor-block {
    background: linear-gradient(135deg, rgba(237, 255, 132, 0.15), rgba(237, 255, 132, 0.05));
    border-color: var(--yellow);
}

.quick-block.contributor-block:hover {
    border-color: var(--yellow);
    background: linear-gradient(135deg, rgba(237, 255, 132, 0.25), rgba(237, 255, 132, 0.15));
}

.quick-block.contributor-block h3 {
    color: var(--yellow);
}

/* Special styling for merch block */
.quick-block.merch-block {
    background: linear-gradient(135deg, rgba(169, 254, 117, 0.15), rgba(65, 225, 20, 0.05));
    border-color: var(--cyan-light);
}

.quick-block.merch-block:hover {
    border-color: var(--cyan-light);
    background: linear-gradient(135deg, rgba(169, 254, 117, 0.25), rgba(65, 225, 20, 0.15));
}

.quick-block.merch-block h3 {
    color: var(--cyan-light);
}

/* ─── FOOTER - SIDE BY SIDE LAYOUT ─────────────────────────────── */
footer {
    background: var(--dark-bg);
    border-top: 3px solid var(--cyan);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
    clear: both;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Support Banner */
.support-banner {
    background: linear-gradient(135deg, rgba(65,225,20,0.15) 0%, rgba(169,254,117,0.15) 100%);
    border-top: 3px solid rgba(65, 225, 20, 0.5);
    border-bottom: 3px solid rgba(65, 225, 20, 0.5);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    text-align: center;
}

.support-content {
    max-width: 800px;
    margin: 0 auto;
}

.support-banner h3 {
    color: #41e114;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.support-banner p {
    color: #ddd;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.payment-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.payment-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.paypal-btn {
    background: #00457C;
    color: white;
}

.kofi-btn {
    background: #41e114;
    color: #000;
}

.crypto-btn {
    background: linear-gradient(135deg, #41e114 0%, #a9fe75 100%);
    color: #000;
}

.support-note {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

/* Footer Blocks - Side by Side */
.footer-blocks {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;  /* Profile wider, Social & Logo equal */
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-block h4 {
    color: var(--yellow);
    margin-bottom: 1rem;
}

/* Profile Block */
.profile-card {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--cyan);
    object-fit: cover;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-name {
    color: var(--yellow);
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.profile-blurb {
    color: #ddd;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.sponsor-credit {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
    margin: 0;
}

.sponsor-credit a {
    color: var(--cyan);
}

/* Social Block */
.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.contribute-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, var(--yellow) 0%, #ffd700 100%);
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(237, 255, 132, 0.3);
}

.contribute-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(237, 255, 132, 0.5);
}

/* Logo Block */
.footer-logo {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    color: #999;
    font-size: 0.9rem;
}

/* Crypto Modal */
.crypto-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a2e;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #41e114;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    max-width: 500px;
    width: 90%;
}

.crypto-modal h3 {
    color: #41e114;
    margin: 0 0 1rem 0;
}

.crypto-address-box {
    background: rgba(65, 225, 20, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid rgba(65, 225, 20, 0.3);
    word-break: break-all;
}

.crypto-address-box code {
    color: #41e114;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.modal-buttons {
    display: flex;
    gap: 0.5rem;
}

.modal-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn {
    background: #41e114;
    color: #000;
}

.close-btn {
    background: #666;
    color: #fff;
}

.modal-note {
    color: #999;
    font-size: 0.8rem;
    margin-top: 1rem;
    text-align: center;
}

.crypto-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 columns on tablets */
    }
    
    .footer-blocks {
        grid-template-columns: 1fr;  /* Stack on tablets */
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-full {
        min-height: 300px !important;
    }
    
    .quick-grid {
        grid-template-columns: 1fr;  /* 1 column on mobile */
    }
    
    .featured-card {
        flex-direction: column;
    }
    
    .featured-card img {
        width: 100%;
        height: 150px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   END OF ADDITIONS
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   AMA PAGE FIXES - Add this to the BOTTOM of your style.css file
   ═══════════════════════════════════════════════════════════════════ */

/* Fix: Make main content area wider and images reasonable size */
.main-content,
.content-area,
.page-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Fix: Constrain ALL images on wiki/AMA pages */
.page-content img,
.article-content img,
.wiki-content img,
.ama-content img,
.ama-body img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Fix: Iframes (YouTube embeds) should also be constrained */
.page-content iframe,
.article-content iframe,
.ama-content iframe,
.ama-body iframe {
    max-width: 100% !important;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 1.5rem auto;
    display: block;
    border-radius: 8px;
}

/* Fix: The AMA content wrapper from the scraper */
.ama-content {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 2rem 1rem;
}

/* Fix: AMA body text should be readable width */
.ama-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    line-height: 1.8;
}

/* Fix: AMA source and footer boxes */
.ama-source,
.ama-footer {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Fix: Lists inside AMA content */
.ama-body ul,
.ama-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.ama-body li {
    margin-bottom: 0.5rem;
}

/* Fix: Headings inside AMA content */
.ama-body h1,
.ama-body h2,
.ama-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--cyan);
}

/* Fix: Paragraphs inside AMA content */
.ama-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Fix: Blockquotes inside AMA content */
.ama-body blockquote {
    border-left: 4px solid var(--cyan);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #ddd;
}

/* Fix: Code blocks inside AMA content */
.ama-body pre,
.ama-body code {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 4px;
    overflow-x: auto;
}

/* Hide browser blocked content errors */
#sub-frame-error,
#sub-frame-error-details {
    display: none !important;
}

iframe[src="about:blank"] {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   END OF AMA PAGE FIXES
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   NUCLEAR OPTION - OBLITERATE ALL BLOCKED CONTENT ERRORS
   Add this to the BOTTOM of your style.css (after the other AMA fixes)
   ═══════════════════════════════════════════════════════════════════ */

/* Hide ALL variations of blocked content errors */
#sub-frame-error,
#sub-frame-error-details,
[id*="sub-frame"],
[id*="error-details"],
[id*="frame-error"],
.icon-generic,
.sub-frame-error,
iframe[src="about:blank"],
iframe[src=""],
iframe:not([src]),
div:has(> .icon-generic),
div:has(> #sub-frame-error-details) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide any divs that only contain the blocked message */
.ama-body > div:empty,
.ama-content > div:empty,
.content-body > div:empty {
    display: none !important;
}

/* If somehow an iframe still exists in AMA content, obliterate it */
.ama-body iframe,
.ama-content iframe,
.content-body iframe {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ═══════════════════════════════════════════════════════════════════
   END OF NUCLEAR OPTION
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Back to Top Button ──────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: linear-gradient(135deg, #41e114 0%, #a9fe75 100%);
  color: #000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(65, 225, 20, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 9998;
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(65, 225, 20, 0.6);
  background: linear-gradient(135deg, #a9fe75 0%, #41e114 100%);
  color: #000;
}
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* ─── Google Translate Widget ─────────────────────────────────── */
#google_translate_element {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.goog-te-gadget-simple {
  background: rgba(65, 225, 20, 0.1) !important;
  border: 1px solid rgba(65, 225, 20, 0.4) !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
.goog-te-gadget-simple span,
.goog-te-gadget-simple .goog-te-menu-value span {
  color: #41e114 !important;
}
.goog-te-gadget-simple img { display: none !important; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0 !important; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE HEADER — single authoritative block, wins everything
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Header stacks vertically, centered */
  .header-container {
    flex-direction: column !important;
    height: auto !important;
    padding: 0.8rem 1rem !important;
    gap: 0.4rem !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Logo row: icon left, title+tagline right */
  .logo-section {
    flex-direction: row !important;
    justify-content: center !important;
    width: auto !important;
    margin: 0 !important;
  }
  .logo-section img, .logo {
    width: 52px !important;
    height: 52px !important;
  }
  .logo-text h1, .logo-section h1 {
    font-size: 1.15rem !important;
    white-space: nowrap !important;
  }
  .logo-text .tagline, .header-tagline {
    display: block !important;
    font-size: 0.65rem !important;
    white-space: normal !important;
  }

  /* Auth buttons in a row */
  .header-auth {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }
  .header-auth a {
    padding: 0.32rem 0.9rem !important;
    font-size: 0.8rem !important;
    min-width: unset !important;
    min-height: unset !important;
    white-space: nowrap !important;
  }

  /* Translate */
  .header-translate { margin-left: 0 !important; }

  /* Keep price widget visible */
  .header-price {
    display: block !important;
    max-width: 230px !important;
  }

  /* Pill nav toggle */
  .nav-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    margin: 0.3rem auto !important;
    padding: 0.42rem 1.1rem !important;
    background: rgba(65,225,20,0.12) !important;
    border: 1px solid #41e114 !important;
    border-radius: 50px !important;
    color: #41e114 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    width: fit-content !important;
  }
  .nav-toggle:hover, .nav-toggle.open {
    background: rgba(65,225,20,0.25) !important;
  }
  .nav-toggle .nav-arrow { display: inline-block; transition: transform 0.25s; }
  .nav-toggle.open .nav-arrow { transform: rotate(180deg); }

  /* Nav hidden by default, shown when toggled */
  nav ul#navMenu {
    display: none !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.15rem !important;
    padding: 0.3rem 0 0.5rem !important;
  }
  nav ul#navMenu.nav-open {
    display: flex !important;
  }
  nav ul#navMenu li a {
    padding: 0.5rem 2rem !important;
    font-size: 0.9rem !important;
  }

  .welcome-text { display: none !important; }
}

/* ── Header auth buttons — completely independent of .btn ── */
.hdr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(65,225,20,0.15);
  border: 1px solid rgba(65,225,20,0.5);
  color: #fff;
  line-height: 1;
}
.hdr-btn:hover { background: rgba(65,225,20,0.3); color: #fff; }
.hdr-btn-logout { background: rgba(255,60,60,0.15); border-color: rgba(255,60,60,0.4); }
.hdr-btn-logout:hover { background: rgba(255,60,60,0.3); }
.hdr-btn-admin { background: rgba(237,255,132,0.15); border-color: rgba(237,255,132,0.4); color: var(--yellow); }
.hdr-btn-dashboard { background: rgba(0,200,255,0.15); border-color: rgba(0,200,255,0.4); }

/* Mobile: slightly bigger tap targets */
@media (max-width: 768px) {
  .hdr-btn {
    padding: 0.45rem 1.1rem !important;
    font-size: 0.88rem !important;
    border-radius: 8px !important;
    min-height: 38px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE — compact headings + guide cards
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Shrink Press Start 2P headings — they're huge on mobile */
  h1 { font-size: 1rem !important; line-height: 1.4 !important; margin-bottom: 0.8rem !important; }
  h2 { font-size: 0.75rem !important; line-height: 1.5 !important; margin: 1.2rem 0 0.6rem !important; }
  h3 { font-size: 0.65rem !important; line-height: 1.5 !important; margin: 1rem 0 0.5rem !important; }

  /* Featured compact section — stack image above info */
  .compact-card {
    flex-direction: column !important;
    gap: 0.8rem !important;
  }
  .compact-thumb {
    width: 100% !important;
    max-width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
  }
  .compact-info {
    padding: 0.8rem 1rem !important;
  }
  .compact-info h3 {
    font-size: 0.7rem !important;
    margin-bottom: 0.4rem !important;
  }
  .compact-snippet {
    font-size: 0.85rem !important;
    -webkit-line-clamp: 2 !important;
  }
  .featured-compact {
    padding: 1rem !important;
    margin: 0.8rem 0 !important;
  }
  .featured-compact h2 {
    font-size: 0.75rem !important;
    margin-bottom: 0.8rem !important;
  }

  /* Quick access grid — 2 cols on mobile */
  .quick-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }
  .quick-block {
    padding: 1rem 0.8rem !important;
    min-height: 90px !important;
  }
  .quick-block h3 { font-size: 0.6rem !important; }

  /* Card grids — single column */
  .card-grid {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }
  .card-image { height: 140px !important; }
  .card-image img { height: 140px !important; }
}

/* ── Mobile: stack all guide cards vertically ── */
@media (max-width: 768px) {

  .featured-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.7rem !important;
    padding: 0.8rem !important;
  }
  .featured-card img {
    width: 100% !important;
    height: 160px !important;
    border-radius: 6px !important;
  }
  .featured-card h3 {
    font-size: 0.68rem !important;
    margin: 0.3rem 0 !important;
  }
  .featured-card p {
    font-size: 0.82rem !important;
    margin: 0 !important;
  }

  .compact-card {
    flex-direction: column !important;
    gap: 0.7rem !important;
  }
  .compact-thumb {
    width: 100% !important;
    max-width: 100% !important;
    height: 160px !important;
  }
  .compact-info h3 {
    font-size: 0.68rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE — index.ejs card + grid fixes (final)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Category grid — single column */
  .category-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Recent guides grid — single column, no min-width blowout */
  .recent-grid {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }

  /* Recent card — stack image on top, content below */
  .recent-card {
    flex-direction: column !important;
  }
  .card-image {
    width: 100% !important;
    height: 160px !important;
  }
  .card-image img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    border-right: none !important;
    border-bottom: 2px solid var(--neon-purple) !important;
  }
  .card-content h3 {
    font-size: 0.65rem !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.5 !important;
  }
  .card-content .snippet {
    font-size: 0.82rem !important;
    -webkit-line-clamp: 2 !important;
  }
  .card-content {
    padding: 0.8rem !important;
  }

  /* Most upvoted/viewed compact cards — stack vertically */
  .compact-card {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .compact-thumb {
    width: 100% !important;
    max-width: 100% !important;
    height: 180px !important;
    border-radius: 8px 8px 0 0 !important;
  }
  .compact-info {
    padding: 0.9rem 1rem !important;
    border-radius: 0 0 8px 8px !important;
  }
  .compact-info h3 {
    font-size: 0.65rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.4rem !important;
  }
  .compact-snippet {
    font-size: 0.82rem !important;
    -webkit-line-clamp: 2 !important;
  }
  .featured-compact {
    padding: 1rem !important;
    margin: 0.8rem 0 !important;
  }
  .featured-compact > h2 {
    font-size: 0.7rem !important;
    margin-bottom: 0.8rem !important;
  }
}

/* ── Footer — compact, social top-aligned, slimmer button ── */
footer {
  padding: 1.4rem 1.5rem 1rem !important;
  margin-top: 2.5rem !important;
}
.footer-row {
  align-items: center !important;
  gap: 1rem !important;
}
.footer-block {
  padding: 1rem 1.2rem !important;
  justify-content: flex-start !important;
}
.profile-pic {
  width: 58px !important;
  height: 58px !important;
}
.profile-name {
  font-size: 0.95rem !important;
  margin-bottom: 0.25rem !important;
}
.profile-blurb, .profile-info p:not(.profile-name) {
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}
.social-block {
  justify-content: flex-start !important;
  text-align: left !important;
}
.social-block h4 {
  margin: 0 0 0.5rem 0 !important;
  font-size: 0.8rem !important;
}
.social-icons {
  gap: 0.9rem !important;
  margin-top: 0 !important;
  justify-content: flex-start !important;
}
.social-icon {
  width: 28px !important;
  height: 28px !important;
}
.contribute-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 0.7rem !important;
  padding: 0.45rem 1.1rem !important;
  font-size: 0.8rem !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
}
.footer-logo {
  max-width: 100px !important;
}
.footer-copyright {
  margin-top: 1rem !important;
  padding-top: 0.8rem !important;
  font-size: 0.78rem !important;
}
