/* ============================================
   VIBEOTTER COMMUNITY — STYLES
   ============================================ */

:root {
  /* 🦦 VibeOtter Brand Colors */
  --brand: #00C2A8;          /* teal */
  --brand-dark: #009E89;     /* deep teal */
  --brand-light: #E0FAF7;    /* mint tint */
  --brand-glow: rgba(0,194,168,0.18);
  --accent: #FF6B6B;         /* coral */
  --accent-dark: #E85555;
  --accent-light: #FFE8E8;
  --sunshine: #FFD166;       /* sunshine yellow */
  --sunshine-light: #FFF8E1;
  --purple: #9B5DE5;         /* playful purple */
  --purple-light: #F0E6FF;
  --bg: #F4FFFE;
  --surface: #FFFFFF;
  --surface-2: #EBF9F7;
  --border: #C8EDE9;
  --text: #1A2E2B;
  --text-2: #4A6B66;
  --text-3: #8AADA8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --topic-prompting: #9B5DE5;
  --topic-editing: #00C2A8;
  --topic-building: #FF6B6B;
  --topic-connecting: #FFD166;
  --topic-shipping: #06D6A0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 16px rgba(0,194,168,0.10);
  --shadow-lg: 0 8px 40px rgba(0,194,168,0.18);
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: 0.01em;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
textarea, input, select { font-family: inherit; }

/* 🦦 Playful animations */
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}
.logo-img:hover {
  animation: wiggle 0.5s ease-in-out;
}
.nav-logo:hover .logo-text {
  color: var(--accent);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 3px solid var(--brand);
  box-shadow: 0 2px 16px rgba(0,194,168,0.12);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;
}
/* logo-mark replaced by logo-img */
.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand);
  flex-shrink: 0;
  display: block;
}
.logo-img-sm {
  width: 24px;
  height: 24px;
}
.logo-text {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  flex-wrap: nowrap;
}
.nav-link {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: none;
  border: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  font-family: 'Inter', Arial, sans-serif;
}
.nav-link:hover { color: var(--brand-dark); background: var(--brand-light); text-decoration: none; }
.nav-link.active { color: var(--brand-dark); background: var(--brand-light); font-weight: 800; }

.btn-ask {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8e53 100%);
  color: #fff !important;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 20px;
  margin-left: 0.5rem;
  border: none;
  font-size: 13px;
  box-shadow: 0 3px 10px rgba(255,107,107,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-ask:hover { background: linear-gradient(135deg, var(--accent-dark) 0%, #e07040 100%); color: #fff !important; text-decoration: none; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(255,107,107,0.4); }

.nav-auth { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.btn-login { color: var(--text-2); }
.btn-signup {
  background: linear-gradient(135deg, var(--brand) 0%, #00a896 100%);
  color: #fff !important;
  border-radius: 20px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 3px 10px rgba(0,194,168,0.3);
}
.btn-signup:hover { background: linear-gradient(135deg, var(--brand-dark) 0%, #008a7a 100%); color: #fff !important; text-decoration: none; }
.btn-logout { color: var(--text-3); font-size: 13px; }
.user-menu { display: flex; align-items: center; gap: 0.25rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,80,70,0.82) 0%, rgba(26,16,60,0.75) 100%);
  z-index: 1;
  pointer-events: none;
}
/* HERO OTTER ANIMATION */
.hero-otter {
  position: absolute;
  bottom: 10px;
  left: -140px;
  z-index: 3;
  animation: otterSwim 12s ease-in-out infinite;
  transform-origin: center bottom;
}
.hero-otter svg {
  animation: otterBob 1.8s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.otter-ripple {
  animation: ripplePulse 1.8s ease-in-out infinite;
}
@keyframes otterSwim {
  0%   { left: -140px; transform: scaleX(1); }
  35%  { left: calc(50% - 60px); transform: scaleX(1); }
  40%  { left: calc(50% - 60px); transform: scaleX(1); }
  /* pause and look at you */
  55%  { left: calc(50% - 60px); transform: scaleX(1); }
  60%  { left: calc(50% - 60px); transform: scaleX(1); }
  65%  { left: calc(50% - 60px); transform: scaleX(-1); }
  /* swim off right */
  100% { left: calc(100% + 20px); transform: scaleX(-1); }
}
@keyframes otterBob {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-5px) rotate(1deg); }
}
@keyframes ripplePulse {
  0%, 100% { rx: 38; opacity: 0.18; }
  50%       { rx: 44; opacity: 0.28; }
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
  color: #fff;
}
.hero-banner-content h1 {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-banner-content p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
}
.stat span {
  display: block;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--sunshine);
  line-height: 1;
}
.stat small {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  display: block;
}

/* ============================================
   PAGE HEADER (non-hero pages)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--sunshine-light) 100%);
  border-bottom: 3px solid var(--brand);
  padding: 2.5rem 1.5rem 2rem;
}
.page-header-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.page-header h1 {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 0.4rem;
}
.page-header p {
  color: var(--text-2);
  font-size: 15px;
}

/* ============================================
   LAYOUT
   ============================================ */
.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}
.layout-full {
  grid-template-columns: 1fr;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-section { }
.sidebar-title {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
}
.topic-filters, .sort-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.topic-btn, .sort-btn {
  background: none;
  border: none;
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.15s;
}
.topic-btn:hover, .sort-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}
.topic-btn.active, .sort-btn.active {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 800;
}
.sidebar-cta {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--sunshine-light) 100%);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1.5px solid var(--brand);
}
.sidebar-cta p {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* ============================================
   FEED
   ============================================ */
.feed-area { min-width: 0; }
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.feed-header h2 {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-dark);
}
.search-wrap { flex: 1; max-width: 320px; }
.search-input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }

/* ============================================
   POST CARDS
   ============================================ */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.post-list::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/playful-otter-logo-design.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 280px auto;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.post-list > * {
  position: relative;
  z-index: 1;
}

.post-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.post-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
  transform: translateY(-2px);
}
.post-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.post-vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 36px;
}
.vote-count {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.vote-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.post-main { flex: 1; min-width: 0; }
.post-title {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.post-body {
  font-size: 14px;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.post-topic {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.topic-Prompting  { background: var(--purple-light); color: var(--purple); }
.topic-Editing    { background: var(--brand-light);  color: var(--brand-dark); }
.topic-Building   { background: var(--accent-light);  color: var(--accent-dark); }
.topic-Connecting { background: var(--sunshine-light); color: #b07d00; }
.topic-Shipping   { background: rgba(6,214,160,0.12); color: #059669; }

.post-author { font-size: 12px; color: var(--text-3); }
.post-time   { font-size: 12px; color: var(--text-3); }

.post-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  background: none;
  border: none;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.action-btn:hover { background: var(--surface-2); color: var(--text-2); }
.action-btn.liked { color: var(--danger); }
.action-btn.saved { color: var(--brand); }
.action-btn svg { width: 16px; height: 16px; }

/* ============================================
   VIDEO GRID
   ============================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.video-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.video-card:hover { box-shadow: var(--shadow-lg); border-color: var(--brand); transform: translateY(-2px); }
.video-thumb {
  aspect-ratio: 16/9;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--brand);
  position: relative;
  overflow: hidden;
}
.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.video-card:hover .video-play-overlay { background: rgba(0,0,0,0.4); }
.play-btn {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 1.1rem;
}
.video-card-body { padding: 1rem; }
.video-card-topic {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.video-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
.video-card-meta {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,30,26,0.65);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}
.modal-wide { max-width: 720px; }
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.modal-header h2 { font-family: 'Plus Jakarta Sans', Arial, sans-serif; font-size: 1.4rem; font-weight: 600; color: var(--brand-dark); }
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-3);
  padding: 0;
  flex-shrink: 0;
  margin-top: -2px;
}
.modal-close:hover { color: var(--text); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.form-group textarea { resize: vertical; }
.optional { color: var(--text-3); font-weight: 400; }
.form-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 1.2em;
  margin-bottom: 0.75rem;
}
.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #00a896 100%);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Inter', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 3px 12px rgba(0,194,168,0.3);
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-dark) 0%, #008a7a 100%); color: #fff; text-decoration: none; box-shadow: 0 5px 16px rgba(0,194,168,0.4); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary.btn-full { width: 100%; text-align: center; }
.btn-secondary {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background: var(--border); text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-load-more {
  background: var(--surface);
  border: 2px solid var(--brand);
  color: var(--brand-dark);
  font-weight: 800;
  padding: 10px 28px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', Arial, sans-serif;
}
.btn-load-more:hover { border-color: var(--brand-dark); background: var(--brand-light); transform: translateY(-1px); }
.load-more-wrap { text-align: center; margin-top: 2rem; }

/* ============================================
   AUTH FORMS
   ============================================ */
.auth-form {}
.auth-switch {
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
  margin-top: 1.25rem;
}
.auth-link { text-align: center; margin-top: 0.75rem; font-size: 13px; }
.auth-note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 0.75rem;
  text-align: center;
}
.otp-msg {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 1rem;
  text-align: center;
}

/* ============================================
   REPLY SECTION
   ============================================ */
.reply-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.reply-section h3 { font-family: 'Plus Jakarta Sans', Arial, sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 1rem; }
.replies-list { display: flex; flex-direction: column; gap: 1rem; }
.reply-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.reply-card-body { font-size: 14px; color: var(--text); margin-bottom: 0.6rem; line-height: 1.6; }
.reply-card-meta { font-size: 12px; color: var(--text-3); display: flex; gap: 0.75rem; }
.reply-form .form-group textarea { min-height: 100px; }

/* ============================================
   POST DETAIL MODAL CONTENT
   ============================================ */
.post-detail-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.post-detail-body {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1rem;
  white-space: pre-wrap;
}
.post-detail-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-hero {
  background: linear-gradient(135deg, #004d42 0%, #1a1040 100%);
  padding: 3rem 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--purple) 100%);
  color: #fff;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  border: 3px solid var(--sunshine);
  box-shadow: 0 4px 16px rgba(0,194,168,0.3);
}
.profile-info h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.profile-badges { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-admin { background: rgba(255,209,102,0.25); color: var(--sunshine); border: 1px solid rgba(255,209,102,0.4); }
.badge-member { background: rgba(0,194,168,0.2); color: #7fffef; border: 1px solid rgba(0,194,168,0.3); }

.profile-stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0;
  padding: 0 1.5rem;
  max-width: 100%;
  overflow-x: auto;
}
.profile-stat {
  padding: 1.25rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.profile-stat:last-child { border-right: none; }
.profile-stat span {
  display: block;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-dark);
}
.profile-stat small {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.profile-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
.profile-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { font-family: 'Plus Jakarta Sans', Arial, sans-serif; font-size: 14px; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-dark); }
.bio-text { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 0.75rem; }

.reputation-card {}
.rep-score {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.rep-explain { font-size: 12px; color: var(--text-3); line-height: 1.5; margin-bottom: 1rem; }
.rep-breakdown { font-size: 13px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.rep-row { display: flex; justify-content: space-between; }
.rep-row span:last-child { font-weight: 600; color: var(--brand); }

.profile-main {}
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--brand); }
.tab-btn.active { color: var(--brand-dark); border-bottom-color: var(--brand); font-weight: 800; }

/* ============================================
   FORM PAGE (submit video)
   ============================================ */
.form-page-wrap {
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.file-upload-area { display: flex; align-items: center; gap: 1rem; }
.file-upload-area input[type="file"] { display: none; }
.file-upload-label {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  border: 2px solid var(--brand);
}
.file-upload-label:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.file-name-display { font-size: 13px; color: var(--text-2); margin-top: 0.5rem; }

.upload-progress { margin: 1rem 0; }
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--sunshine) 100%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s;
}
#uploadStatus { font-size: 13px; color: var(--text-2); }

.success-state {
  text-align: center;
  padding: 2rem 1rem;
}
.success-icon {
  width: 60px;
  height: 60px;
  background: rgba(34,197,94,0.1);
  color: var(--success);
  font-size: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.success-state h3 { font-family: 'Plus Jakarta Sans', Arial, sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 0.5rem; }
.success-state p { color: var(--text-2); font-size: 14px; margin-bottom: 1.5rem; }

/* ============================================
   STATES
   ============================================ */
.loading-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-3);
  font-size: 14px;
}
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}
.empty-icon {
  font-size: 3rem;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.empty-state h3 { font-family: 'Plus Jakarta Sans', Arial, sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-2); font-size: 14px; margin-bottom: 1.5rem; }

/* ============================================
   VIDEO MODAL
   ============================================ */
#videoModalContent video {
  width: 100%;
  border-radius: var(--radius-sm);
  background: #000;
}
.video-detail-info { margin-top: 1.25rem; }
.video-detail-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.video-detail-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.video-detail-meta { font-size: 12px; color: var(--text-3); margin-top: 0.75rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: linear-gradient(135deg, #004d42 0%, #1a1040 100%);
  border-top: none;
  padding: 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.footer-inner a { color: rgba(255,255,255,0.4); }
.footer-inner span { color: rgba(255,255,255,0.6); }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; font-family: 'Plus Jakarta Sans', Arial, sans-serif; font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.9); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .sidebar-section { flex: 1; min-width: 160px; }
  .topic-filters, .sort-options { flex-direction: row; flex-wrap: wrap; }
  .sidebar-cta { flex: 100%; }
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-auth { flex-direction: column; align-items: flex-start; gap: 0.25rem; margin-left: 0; width: 100%; }
  .btn-ask { margin-left: 0; }
  .user-menu { flex-direction: column; align-items: flex-start; width: 100%; }

  .hero-stats { gap: 1.5rem; }
  .stat span { font-size: 1.4rem; }

  .profile-hero { padding: 2rem 1rem 1.5rem; }
  .profile-stats-bar { padding: 0; }
  .profile-stat { padding: 1rem; }

  .video-grid { grid-template-columns: 1fr; }

  .modal { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .feed-header { flex-direction: column; align-items: flex-start; }
  .search-wrap { max-width: 100%; width: 100%; }
  .post-card { padding: 1rem; }
  .form-actions { flex-direction: column; }
  .form-actions .btn-secondary,
  .form-actions .btn-primary { width: 100%; text-align: center; }
}
