/* ==========================================================================
   JHEY'S GOATED CSS SHOWCASE — MODERN STYLING SYSTEM
   ========================================================================== */

/* ── Design Tokens (CSS Custom Properties) ────────────────────────────────── */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Colors */
  --bg-obsidian: #08090b;
  --bg-card: rgba(13, 14, 18, 0.7);
  --bg-card-hover: rgba(20, 22, 28, 0.8);
  --bg-terminal: #0b0c0e;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-pink: #ff007f;
  --accent-teal: #00f2fe;
  --accent-purple: #7f00ff;
  --accent-blue: #4facfe;
  --accent-orange: #ff5e36;
  --accent-gold: #ffd700;
  --accent-green: #00ff87;

  /* Gradients */
  --grad-pink-blue: linear-gradient(135deg, var(--accent-pink), var(--accent-teal));
  --grad-teal-purple: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
  --grad-orange-gold: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
  --grad-purple-pink: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  
  /* Borders & Shadows */
  --border-glow: 1px solid rgba(255, 255, 255, 0.08);
  --border-glow-focus: 1px solid rgba(0, 242, 254, 0.4);
  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-pink: 0 0 20px rgba(255, 0, 127, 0.15);
  --shadow-teal: 0 0 20px rgba(0, 242, 254, 0.15);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Premium Scrollbars (Inspired by Jhey's scrollbar-color trick!) */
html {

  scrollbar-color: var(--accent-pink) rgba(8, 9, 11, 0.9);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-pink), var(--accent-teal));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

/* ── Background Orbs ─────────────────────────────────────────────────────── */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  transition: all 1s ease-in-out;
}

.orb-pink {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: var(--accent-pink);
  animation: floatOrb1 15s infinite alternate ease-in-out;
}

.orb-teal {
  width: 450px;
  height: 450px;
  bottom: -100px;
  left: -100px;
  background: var(--accent-teal);
  animation: floatOrb2 18s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 80px) scale(1.1); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -60px) scale(1.15); }
}

/* ── Header Styling (Initial State: Full-Width) ───────────────────────────── */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.5rem 0;
  background: var(--bg-obsidian);
  border-bottom: var(--border-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-container {
  max-width: 100%; /* Full screen width initially */
  margin: 0 auto;
  padding: 0.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-radius: 0;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Stuck State Morphing Navbar (Scrolled State) ────────────────────────── */
@media (min-width: 1025px) {
  .main-header.is-stuck {
    padding: 0.75rem 0;
    background: transparent; /* Seamless floating overlay */
    border-color: transparent;
    backdrop-filter: none;
  }
  
  .main-header.is-stuck .header-container {
    max-width: 1100px; /* Decrease width to floating bar */
    background: rgba(18, 19, 22, 0.9); /* Deep glass card background */
    border: 1px solid rgba(0, 242, 254, 0.25); /* Glowing teal boundary */
    border-radius: 16px;
    padding: 0.6rem 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.15);
    backdrop-filter: blur(20px);
  }
  
  .main-header.is-stuck .avatar-wrapper {
    width: 44px !important;
    height: 44px !important;
  }
  
  .main-header.is-stuck .brand-text h1 {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    transform: translateY(-6px) !important;
  }
  
  .main-header.is-stuck .stat-card {
    padding: 0.45rem 1rem;
    min-width: 90px;
    border-color: rgba(255, 0, 127, 0.15);
  }
  
  .main-header.is-stuck .stat-value {
    font-size: 1.25rem;
  }
  
  .main-header.is-stuck .badge-creator {
    opacity: 0;
    max-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 solid transparent !important;
    overflow: hidden !important;
    pointer-events: none;
  }
  
  .main-header.is-stuck .brand-subtitle {
    opacity: 0;
    max-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    pointer-events: none;
  }
}



.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.avatar-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
}

.creator-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent-teal), #64748b) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: rotateRing 8s linear infinite;
}

@keyframes rotateRing {
  100% { transform: rotate(360deg); }
}

.badge-creator {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-teal);
  margin-bottom: 0.35rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  max-height: 30px;
  overflow: hidden;
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 60%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.2rem;
  line-height: 1.2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 600px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  max-height: 100px;
  overflow: hidden;
}

.brand-subtitle a {
  font-weight: 600;
}

/* Header Stats Panel */
.dashboard-stats {
  display: flex;
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: var(--border-glow);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  text-align: center;
  min-width: 110px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 0, 127, 0.3);
  box-shadow: var(--shadow-pink);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Content Layout ──────────────────────────────────────────────────────── */
.content-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* ── Controls Section (Search & Filters) ────────────────────────────────── */
.controls-section {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
  background: rgba(13, 14, 18, 0.4);
  padding: 2rem;
  border-radius: 20px;
  border: var(--border-glow);
  backdrop-filter: blur(10px);
}

/* Search Box */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

#search-input {
  width: 100%;
  background: rgba(8, 9, 11, 0.8);
  border: var(--border-glow);
  border-radius: 12px;
  padding: 1.1rem 1.1rem 1.1rem 3.2rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

#search-input:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-teal), 0 0 0 2px rgba(0, 242, 254, 0.1);
}

.clear-btn {
  position: absolute;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

.clear-btn:hover {
  color: var(--text-primary);
}

/* Filter Tags */
.filters-container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-tab.active {
  background: var(--text-primary);
  color: var(--bg-obsidian);
  border-color: var(--text-primary);
}

.tab-count {
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

.filter-tab.active .tab-count {
  background: rgba(8, 9, 11, 0.15);
}

/* Options Bar */
.options-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text-secondary);
  transition: .3s;
}

input:checked + .slider {
  background-image: var(--grad-pink-blue);
}

input:checked + .slider::before {
  transform: translateX(20px);
  background-color: var(--bg-obsidian);
}

.slider.round {
  border-radius: 34px;
}

.slider.round::before {
  border-radius: 50%;
}

.toggle-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  user-select: none;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sort-dropdown {
  background: rgba(8, 9, 11, 0.8);
  border: var(--border-glow);
  color: var(--text-primary);
  padding: 0.4rem 1.5rem 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  cursor: pointer;
}

.sort-dropdown:focus {
  outline: none;
  border-color: var(--accent-teal);
}

/* ── Tips Grid & Cards ───────────────────────────────────────────────────── */
.tips-grid {
  display: block;
  column-width: 380px;
  column-gap: 2rem;
}

/* High Fidelity Cards */
.tip-card {
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-glow);
  position: relative;
  
  /* Masonry Multi-Column Support */
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 2rem;
}

.tip-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--category-gradient, var(--text-muted));
}

.tip-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), var(--category-shadow, none);
}

/* Card Header */
.card-header {
  padding: 1.5rem 1.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: var(--category-bg, rgba(255, 255, 255, 0.05));
  color: var(--category-color, var(--text-secondary));
  border: 1px solid var(--category-border, rgba(255, 255, 255, 0.1));
}

.card-metadata {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-likes {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent-pink);
  font-weight: 600;
}

/* Card Body */
.card-body {
  padding: 0.75rem 1.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tip-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: pre-wrap; /* Maintains spacing and newline characters */
  font-family: var(--font-sans);
}

.tip-text p {
  margin-bottom: 0.75rem;
}

.tip-text p:last-child {
  margin-bottom: 0;
}

/* Twitter Embed Containers */
.tweet-embed-container {
  width: 100%;
  min-height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
}

.tweet-embed-container twitter-widget {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: none !important;
}

/* Card Media/Video Previews */
.card-media {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.media-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tip-card:hover .media-thumbnail {
  transform: scale(1.03);
}

.video-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(8, 9, 11, 0.85);
  backdrop-filter: blur(4px);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Code Terminal */
.code-terminal {
  background: var(--bg-terminal);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.terminal-buttons {
  display: flex;
  gap: 0.35rem;
}

.t-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.t-close { background-color: #ff5f56; }
.t-min { background-color: #ffbd2e; }
.t-max { background-color: #27c93f; }

.terminal-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.copy-btn svg {
  width: 15px;
  height: 15px;
}

.terminal-body {
  padding: 1.1rem;
  overflow-x: auto;
  max-height: 250px;
}

.code-block {
  font-size: 0.8rem;
  white-space: pre;
  color: #e2e8f0;
}

/* Custom CSS Code Syntax Highlighting Rules */
.code-block .hl-selector { color: #f43f5e; font-weight: 600; }  /* Pink selectors */
.code-block .hl-property { color: #22d3ee; }                    /* Cyan props */
.code-block .hl-value { color: #facc15; }                       /* Gold values */
.code-block .hl-comment { color: #64748b; font-style: italic; } /* Dim slates */
.code-block .hl-func { color: #a78bfa; }                        /* Purple functions */

/* Card Actions */
.card-actions {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-x-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: gap 0.2s ease, text-shadow 0.2s ease;
}

.view-x-link:hover {
  gap: 0.75rem;
  color: var(--accent-teal);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.x-logo {
  width: 14px;
  height: 14px;
}

.arrow-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.view-x-link:hover .arrow-icon {
  transform: translateX(2px);
}

/* Load More Section Styles */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.load-more-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.9rem 2.5rem;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-glow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.load-more-btn:hover {
  background: var(--text-primary);
  color: var(--bg-obsidian);
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.2);
}

.load-more-btn svg {
  transition: transform 0.25s ease;
}

.load-more-btn:hover svg {
  transform: translateY(2px);
}

/* ── No Results View ──────────────────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.no-results-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.no-results h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.no-results p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Footer Styling ──────────────────────────────────────────────────────── */
.main-footer {
  border-top: var(--border-glow);
  padding: 3rem 0;
  margin-top: 5rem;
  text-align: center;
  background: rgba(8, 9, 11, 0.9);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-credit {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-credit a {
  font-weight: 600;
}

.footer-tech {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Responsive Adaptations ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .main-header {
    position: relative; /* Disable sticky on tablet/mobile to prevent blocking screen */
    background: var(--bg-obsidian); /* Solid dark color to prevent overlapping breaks */
    backdrop-filter: none;
    padding: 1.25rem 0;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }
  
  .brand {
    flex-direction: column;
    align-items: center;
  }
  
  .brand-subtitle {
    text-align: center;
  }
  
  .dashboard-stats {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    padding: 1.25rem 0.75rem;
  }
  
  .brand-text h1 {
    font-size: 1.5rem;
  }

  .controls-section {
    padding: 1rem;
    border-radius: 14px;
    gap: 1rem;
  }
  
  .filters-container {
    gap: 0.5rem;
  }
  
  .filter-tab {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }
  
  .options-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .sort-wrapper {
    width: 100%;
    justify-content: space-between;
  }
  
  .tips-grid {
    column-count: 1 !important;
    column-gap: 0;
  }
  
  .tip-card {
    margin-bottom: 1.5rem;
    border-radius: 16px;
  }
  
  .card-header {
    padding: 1.25rem 1rem 0.5rem;
  }
  
  .card-body {
    padding: 0.5rem 1rem 1.25rem;
    gap: 1rem;
  }

  .tweet-embed-container {
    border-radius: 10px;
    padding: 0;
    min-height: 80px;
  }

  .glow-orb {
    display: none; /* Hide expensive glowing blur filters on mobile to improve scroll performance and color consistency */
  }
}

/* Specific styling for narrow phone viewports */
@media (max-width: 480px) {
  .content-wrapper {
    padding: 1rem 0.5rem;
  }
  
  .stat-card {
    min-width: 90px;
    padding: 0.5rem 0.75rem;
  }
  
  .stat-value {
    font-size: 1.2rem;
  }
  
  .card-body {
    padding: 0.5rem 0.75rem 1rem;
  }
  
  .terminal-body {
    padding: 0.75rem;
  }
  
  .code-block {
    font-size: 0.75rem;
  }
}
