/* =================================
   ENHANCED PROFESSIONAL TELLIT CSS - FULLY RESPONSIVE
   ================================= */

:root {
  --main: #4f46e5;           
  --accent1: #7c3aed;
  --bg: #f7f8fb;
  --card: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --radius: 14px;
  --glass: rgba(255,255,255,0.55);
  --border-size: 2px;
  --max-width: 1100px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  width: 100%;
  scroll-behavior: smooth;
}

.app {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* =================================
   NAVBAR
   ================================= */

.navbar {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.08), 0 0 1px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,0.8);
  transition: all 0.3s ease;
}

.navbar:hover {
  box-shadow: 0 12px 32px rgba(15,23,42,0.12);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--main), var(--accent1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(79,70,229,0.25);
  transition: transform 0.3s ease;
}

.logo-badge:hover {
  transform: translateY(-2px) scale(1.05);
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--main), var(--accent1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand > div:last-child {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  background: rgba(79,70,229,0.08);
  color: var(--main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--main);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.cta {
  background: linear-gradient(90deg, var(--main), var(--accent1));
  color: white;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(79,70,229,0.20);
  transition: all 0.3s ease;
  display: inline-block;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(79,70,229,0.30);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: white;
  border: 1px solid rgba(15,23,42,0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hamburger:hover {
  background: rgba(79,70,229,0.06);
}

.hamburger .bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger .bar::before,
.hamburger .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger .bar::before { top: -7px; }
.hamburger .bar::after { top: 7px; }

/* =================================
   LAYOUT WITH GRID ORDER
   ================================= */

.layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-top: 20px;
}

.hero {
  grid-column: 1 / -1;
  order: 1;
}

.cats {
  grid-column: 1 / -1;
  order: 2;
}

.feed {
  order: 3;
  grid-column: 1;
}

.faq-section {
  order: 4;
  grid-column: 1;
}

.sidebar {
  order: 5;
  grid-column: 2;
  grid-row: 3 / 5;
}

/* =================================
   HERO
   ================================= */

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.5) 100%);
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

.hero-left {
  flex: 1;
  min-width: 280px;
}

.hero-kicker {
  font-weight: 700;
  color: var(--main);
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: Merriweather, serif;
  font-size: 32px;
  margin: 0 0 16px 0;
  line-height: 1.15;
  color: var(--text);
  font-weight: 700;
}

.hero-sub {
  color: var(--muted);
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

#topStory {
  width: 100%;
  max-width: 260px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(79,70,229,0.12);
  text-align: left;
  border: 1px solid rgba(79,70,229,0.08);
  transition: transform 0.3s ease;
}

#topStory:hover {
  transform: translateY(-4px);
}

/* =================================
   CATEGORIES - COMPACT & RESPONSIVE
   ================================= */

.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(79,70,229,0.2) transparent;
}

.cats::-webkit-scrollbar {
  height: 3px;
}

.cats::-webkit-scrollbar-track {
  background: transparent;
}

.cats::-webkit-scrollbar-thumb {
  background: rgba(79,70,229,0.2);
  border-radius: 10px;
}

.cats::-webkit-scrollbar-thumb:hover {
  background: rgba(79,70,229,0.4);
}

.cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  flex-shrink: 0;
  border-radius: 999px;
  background: white;
  border: 2px solid rgba(15,23,42,0.06);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.cat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--main);
}

.cat.active {
  background: linear-gradient(90deg, var(--main), var(--accent1));
  color: white;
  box-shadow: 0 8px 24px rgba(79,70,229,0.20);
  border-color: transparent;
}

/* =================================
   FEED & STORIES
   ================================= */

.feed {
  padding: 0;
}

.story {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid #f1f3f5;
}

.story:hover {
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
  border-color: #e5e7eb;
  transform: translateY(-2px);
}

.story-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.meta {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

.title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.4;
}

.excerpt {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 16px;
}

.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f3f5;
}

.actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  color: #6b7280;
}

/* Like Button - Red Heart */
.action.like {
  color: #6b7280;
}

.action.like i {
  color: #9ca3af;
  font-size: 16px;
  transition: all 0.3s ease;
}

.action.like:hover {
  background: #fef2f2;
  color: #ef4444;
}

.action.like:hover i {
  color: #ef4444;
  transform: scale(1.2);
}

.action.like.liked {
  background: #fef2f2;
  color: #ef4444;
}

.action.like.liked i {
  color: #ef4444;
  animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Comment Button */
.action.comment {
  color: #6b7280;
}

.action.comment i {
  color: #9ca3af;
  font-size: 16px;
  transition: all 0.2s ease;
}

.action.comment:hover {
  background: #eff6ff;
  color: #3b82f6;
}

.action.comment:hover i {
  color: #3b82f6;
  transform: translateY(-2px);
}

/* Share Button */
.action.share {
  color: #6b7280;
}

.action.share i {
  color: #9ca3af;
  font-size: 16px;
  transition: all 0.2s ease;
}

.action.share:hover {
  background: #f0fdf4;
  color: #10b981;
}

.action.share:hover i {
  color: #10b981;
  transform: rotate(15deg);
}

/* Read More Link */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4f46e5;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.read-more:hover {
  color: #7c3aed;
  gap: 10px;
}

.read-more i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.read-more:hover i {
  transform: translateX(4px);
}

/* Counter Numbers */
.likes-count,
.comment-count {
  font-weight: 600;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 640px) {
  .story {
    padding: 16px;
    border-radius: 12px;
  }

  .actions {
    gap: 12px;
  }

  .action {
    padding: 6px 10px;
    font-size: 13px;
  }

  .action i {
    font-size: 14px;
  }

  .story-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .read-more {
    font-size: 13px;
  }
}
/* =================================
   SIDEBAR
   ================================= */

.sidebar {
  position: sticky;
  top: 100px;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: fit-content;
}

.widget {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.widget:hover {
  box-shadow: var(--shadow-md);
}

.widget h4 {
  margin: 0 0 16px 0;
  font-weight: 700;
  font-size: 16px;
}

.popular-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.2s ease;
}

.popular-item:last-child {
  border-bottom: none;
}

.popular-item:hover {
  background: rgba(79,70,229,0.03);
  border-radius: 8px;
  padding: 12px;
  margin: 0 -12px;
}

.popular-item .num {
  font-weight: 800;
  color: var(--main);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79,70,229,0.1);
  border-radius: 8px;
  font-size: 14px;
  flex-shrink: 0;
}

.popular-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.popular-item a:hover {
  color: var(--main);
}

/* =================================
   FLOAT BUTTON
   ================================= */

.float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 16px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--main), var(--accent1));
  color: white;
  font-weight: 800;
  font-size: 15px;
  z-index: 90;
  box-shadow: 0 12px 40px rgba(79,70,229,0.30);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 50px rgba(79,70,229,0.40);
}

/* =================================
   FAQ SECTION - COMPACT
   ================================= */

.faq-section {
  margin-top: 24px;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}

.faq-heading {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.faq {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 14px 0;
  transition: all 0.2s ease;
}

.faq:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq:hover {
  background: rgba(79,70,229,0.02);
  margin: 0 -12px;
  padding: 14px 12px;
  border-radius: 12px;
}

.faq-title {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text);
}

.faq-icon {
  font-size: 20px;
  font-weight: 900;
  transition: transform 0.3s ease;
  color: var(--main);
  flex-shrink: 0;
}

.faq.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* =================================
   COMMENT SHEET - INSTAGRAM STYLE (FIXED)
   ================================= */

/* Overlay */
.comment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.comment-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Comment Sheet */
.comment-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
}

.comment-sheet.active,
.comment-sheet.open-full {
  transform: translateX(-50%) translateY(0);
}

.comment-sheet.hidden {
  display: none;
}

/* Sheet Header */
.sheet-header {
  padding: 8px 16px 12px;
  border-bottom: 1px solid #efefef;
  text-align: center;
  position: relative;
  flex-shrink: 0;
}

.handle-bar {
  width: 40px;
  height: 4px;
  background: #dbdbdb;
  border-radius: 2px;
  margin: 0 auto 12px;
  cursor: grab;
}

.sheet-title {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
}

/* Sheet Body */
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.sheet-body::-webkit-scrollbar {
  width: 0;
  display: none;
}

#sheetCommentsWrapper {
  padding: 0;
}

.empty {
  padding: 60px 20px;
  text-align: center;
  color: #8e8e8e;
  font-size: 14px;
}

/* Comment Item */
.comment-item {
  padding: 12px 16px;
  border-bottom: 1px solid #efefef;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

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

.comment-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.comment-username {
  font-weight: 600;
  font-size: 14px;
  color: #262626;
}

.comment-time {
  font-size: 12px;
  color: #8e8e8e;
}

.comment-text {
  font-size: 14px;
  line-height: 18px;
  color: #262626;
  word-wrap: break-word;
  margin-bottom: 8px;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #8e8e8e;
  font-weight: 600;
}

.comment-action {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: #8e8e8e;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.comment-action:hover {
  color: #262626;
}

.comment-like-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.comment-like-btn:hover {
  transform: scale(1.2);
}

.like-count {
  font-size: 12px;
  color: #8e8e8e;
  font-weight: 600;
}

/* Replies Section */
.comment-replies {
  margin-top: 12px;
  margin-left: 0;
}

.reply-item {
  padding: 12px 0 12px 44px;
  position: relative;
  border-bottom: 1px solid #efefef;
}

.reply-item:last-of-type {
  border-bottom: none;
}

.reply-item::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  width: 20px;
  height: 24px;
  border-left: 2px solid #efefef;
  border-bottom: 2px solid #efefef;
  border-bottom-left-radius: 12px;
}

.view-replies-btn,
.toggle-replies-btn {
  background: none;
  border: none;
  padding: 12px 0 12px 44px;
  font-size: 12px;
  color: #8e8e8e;
  font-weight: 600;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  position: relative;
}

.view-replies-btn::before,
.toggle-replies-btn::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 2px;
  background: #efefef;
}

.view-replies-btn:hover,
.toggle-replies-btn:hover {
  color: #262626;
}

/* Sheet Input */
.sheet-input {
  border-top: 1px solid #efefef;
  background: #ffffff;
  padding: 8px 16px;
  flex-shrink: 0;
}

.reaction-picker {
  display: none;
  padding: 12px 0;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reaction-picker::-webkit-scrollbar {
  display: none;
}

.reaction-picker.active,
.reaction-picker.show {
  display: flex;
}

.reaction-btn {
  background: none;
  border: none;
  font-size: 24px;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}

.reaction-btn:hover {
  transform: scale(1.2);
}

.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emoji-toggle-btn {
  background: none;
  border: none;
  font-size: 24px;
  padding: 4px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

#commentInput {
  flex: 1;
  border: 1px solid #dbdbdb;
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fafafa;
}

#commentInput:focus {
  border-color: #a8a8a8;
  background: #ffffff;
}

#sendCommentBtn {
  background: none;
  border: none;
  color: #0095f6;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 0;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}

#sendCommentBtn:hover {
  color: #00376b;
}

#sendCommentBtn:disabled {
  color: #b2dffc;
  cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .comment-sheet {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
  }
}

@media (min-width: 768px) {
  .comment-sheet {
    max-height: 80vh;
  }
}


  /* =================================
  DRAWER
  ================================= */
  .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 130;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  }
  .overlay.show {
  opacity: 1;
  pointer-events: auto;
  }
  .drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  z-index: 140;
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.15);
  padding: 0;
  overflow-y: auto;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  }
  .drawer.open {
  transform: translateX(0);
  }
  .close-x {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
  }
  .close-x button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
  border: 2px solid rgba(79, 70, 229, 0.2);
  color: var(--main);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  }
  .close-x button:hover {
  background: linear-gradient(135deg, var(--main), var(--accent1));
  color: white;
  transform: rotate(90deg);
  border-color: transparent;
  }
  .nav-item {
  margin: 0 20px 6px;
  }
  .nav-item a {
  display: block;
  padding: 14px 16px 14px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.05));
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  }
  .nav-item a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--main), var(--accent1));
  }
  .nav-item a:hover {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.08));
  color: var(--main);
  }
  /* =================================
  SHARE MODAL
  ================================= */
  .share-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  }
  .share-modal.active {
  display: flex;
  }
  .share-modal-content {
  background: white;
  border-radius: 20px;
  padding: 24px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  position: relative;
  }
  @keyframes slideUp {
  from {
  transform: translateY(30px);
  opacity: 0;
  }
  to {
  transform: translateY(0);
  opacity: 1;
  }
  }
  .share-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  }
  .share-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  }
  .share-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  }
  .share-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  }
  .share-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  }
  .share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  }
  .share-option:hover {
  background: #f3f4f6;
  transform: translateY(-4px);
  border-color: var(--main);
  }
  .share-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  }
  .share-option:hover .share-icon {
  transform: scale(1.1);
  }
  .share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  }
  .copy-notification {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  animation: notifySlide 0.3s ease;
  }
  .copy-notification.show {
  display: flex;
  }
  @keyframes notifySlide {
  from {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  }
  to {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  }
  }
  /* =================================
  RESPONSIVE BREAKPOINTS
  ================================= */
@media (max-width: 1024px) {
  .layout {
  grid-template-columns: 1fr;
  }
  .hero,
  .cats, .sidebar {
  grid-column: 1;
  }
  .sidebar {
  top: 0;
  grid-row: auto;
  }
  }
  @media (max-width: 768px) {

  .app {
  padding: 0 12px;
  }
  .navbar {
  top: 8px;
  padding: 10px 14px;
  }
  .logo-badge {
  width: 42px;
  height: 42px;
  font-size: 18px;
  }
  .brand h1 {
  font-size: 18px;
  }
  .brand > div:last-child {
  font-size: 11px;
  }
  .nav-links {
  display: none;
  }
  .hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  }
  .hero {
  padding: 20px;
  margin-bottom: 16px;
  }

    .sidebar {
  margin-bottom: 8px;
  }
  .hero-title {
  font-size: 24px;
  }
  .hero-sub {
  font-size: 15px;
  }
  #topStory {
  max-width: 100%;
  }
  .cats {
  gap: 6px;
  padding: 5px 0;
  margin-bottom: 14px;
  }
  .cat {
  padding: 7px 13px;
  font-size: 12px;
  }
  .story {
  padding: 18px;
  margin-bottom: 16px;
  }
  .avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
  }
  .title {
  font-size: 18px;
  }
  .excerpt {
  font-size: 14px;
  }
  .action {
  padding: 8px 12px;
  font-size: 13px;
  }
  .faq-section {
  padding: 20px;
  margin-top: 20px;
  }
  .faq-heading {
  font-size: 20px;
  }
  .faq-title {
  font-size: 14px;
  }
  .faq {
  padding: 12px 0;
  }
  .float {
  right: 16px;
  bottom: 16px;
  padding: 14px 20px;
  font-size: 14px;
  }
  .comment-sheet {
  height: 90%;
  }
  .reply-block {
  margin-left: 16px;
  }
  .load-more-replies {
  margin-left: 28px;
  }
  }
  @media (max-width: 480px) {
  .app {
  padding: 0 10px;
  }
  .navbar {
  padding: 8px 12px;
  }
  .logo-badge {
  width: 38px;
  height: 38px;
  font-size: 16px;
  }
  .brand h1 {
  font-size: 16px;
  }
  .hero {
  padding: 18px;
  }
  .hero-title {
  font-size: 20px;
  }
  .hero-kicker {
  font-size: 12px;
  }
  .cats {
  gap: 5px;
  }
  .cat {
  padding: 6px 12px;
  }
  .story {
  padding: 16px;
  }
  .avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
  }
  .title {
  font-size: 17px;
  }
  .story-footer {
  flex-direction: column;
  align-items: flex-start;
  }
  .faq-section {
  padding: 18px;
  }
  .float {
  padding: 12px 18px;
  font-size: 13px;
  right: 12px;
  bottom: 12px;
  }
  .share-body {
  gap: 12px;
  }
  .share-option {
  padding: 12px 8px;
  }
  .share-icon {
  width: 48px;
  height: 48px;
  font-size: 20px;
  }
  .comment-sheet {
  height: 95%;
  }
  #sheetCommentsWrapper {
  padding: 16px;
  }
  .comment-block,
  .reply-block {
  padding: 12px;
  }
  .reply-block {
  margin-left: 12px;
  }
  .comment-block .avatar,
  .reply-block .avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
  }
  .input-row {
  padding: 10px 12px 16px;
  }
  .emoji-toggle-btn,
  .input-row button {
  width: 40px;
  height: 40px;
  }
  .load-more-replies {
  margin-left: 20px;
  }
  .load-more-replies button,
  .load-more-replies-btn {
  font-size: 11px;
  padding: 7px 14px;
  }
  }
  @media (min-width: 1400px) {
  :root {
  --max-width: 1280px;
  }
  .hero-title {
  font-size: 36px;
  }
  .title {
  font-size: 22px;
  }
}











/* =================================
   READ MORE PAGE STYLES
   ================================= */

.read-more-layout {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Main Story Article */
.main-story {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
}

.main-story .story-head {
  margin-bottom: 24px;
}

.story-title {
  font-family: Merriweather, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 24px 0;
}

.story-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 32px;
}

.story-content p {
  margin-bottom: 20px;
}

/* More Stories Section */
.more-stories-section {
  margin-top: 20px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
}

.more-stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.story-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  border: 1px solid rgba(0,0,0,0.04);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79,70,229,0.15);
}

.story-card .story-head {
  margin-bottom: 12px;
}

.story-card .avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.story-card .title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 8px 0 10px 0;
  line-height: 1.3;
}

.story-card .excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* Footer Styles */
.footer {
  margin-top: 60px;
  background: #fff;
  padding: 40px 20px;
  border-top: 1px solid #eee;
  border-radius: 16px 16px 0 0;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  color: var(--main);
  font-weight: 800;
  font-size: 24px;
  margin: 0 0 8px 0;
}

.footer-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-socials {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.footer-socials .social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(79,70,229,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--main);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-socials .social:hover {
  background: var(--main);
  color: white;
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-links a {
  display: block;
  margin: 10px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--main);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 30px;
  border-top: 1px solid #eee;
  color: var(--muted);
  font-size: 14px;
}

/* Responsive - Read More Page */
@media (min-width: 768px) {
  .more-stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .more-stories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .main-story {
    padding: 24px 20px;
  }
  
  .story-title {
    font-size: 26px;
  }
  
  .story-content {
    font-size: 16px;
  }
  
  .footer-main {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .main-story {
    padding: 20px 16px;
  }
  
  .story-title {
    font-size: 22px;
  }
  
  .story-content {
    font-size: 15px;
  }
  
  .section-title {
    font-size: 20px;
  }
}






/* =================================
   CONTEXT MENU - Ultra Minimal
   ================================= */
.context-menu {
    position: fixed;
    background: rgba(255, 255, 255, 0.95); /* simple white */
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 0;
    min-width: 120px;
    z-index: 10000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 14px;
    font-weight: 500;
    color: #000;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.1s ease-in-out;
    pointer-events: none;
}

.context-menu.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.context-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    text-align: left;
    background: transparent; /* no hover effect */
    border: none;
}

.context-menu-item.danger {
    color: #ff3b30; /* just red text for delete */
}

/* Overlay for clicking outside to close menu */
.context-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 9999;
    display: none;
}

.context-overlay.show {
    display: block;
}


/* Long Press Indicator */
.long-press-indicator {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(79, 70, 229, 0.3);
    pointer-events: none;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.long-press-indicator.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(79, 70, 229, 0.8);
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Overlay for context menu */
.context-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.context-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* Haptic feedback effect */
@keyframes haptic {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.98); }
}

.haptic-feedback {
    animation: haptic 0.1s ease;
}

/* Comment/Reply blocks - add touch feedback */
.comment-block,
.reply-block {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    transition: background 0.2s ease;
}

.comment-block.long-pressing,
.reply-block.long-pressing {
    background: rgba(79, 70, 229, 0.05);
}






















.reaction-picker .reaction-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 18px;
}

.reaction-picker .reaction-btn:hover {
  background: rgba(79, 70, 229, 0.1);
  transform: scale(1.15);
}

.reaction-picker .reaction-btn i {
  color: #6b7280;
  transition: all 0.2s;
}

.reaction-picker .reaction-btn:hover i {
  color: #4f46e5;
}

/* Specific icon colors on hover */
.reaction-picker .reaction-btn:hover .fa-heart {
  color: #ef4444;
}

.reaction-picker .reaction-btn:hover .fa-fire {
  color: #f97316;
}

.reaction-picker .reaction-btn:hover .fa-thumbs-up {
  color: #3b82f6;
}

.reaction-picker .reaction-btn:hover .fa-face-laugh {
  color: #eab308;
}

.reaction-picker .reaction-btn:hover .fa-face-smile {
  color: #10b981;
}

.reaction-picker .reaction-btn:hover .fa-hands-praying {
  color: #8b5cf6;
}

.reaction-picker .reaction-btn:hover .fa-face-sad-tear {
  color: #6366f1;
}

.reaction-picker .reaction-btn:hover .fa-medal {
  color: #f59e0b;
}






























/* Email Verification Modal Styles */
.verification-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.verification-modal.active {
  display: flex;
}

.verification-modal-content {
  background: white;
  border-radius: 20px;
  padding: 40px 35px;
  max-width: 450px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.verification-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #6b7280;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.verification-close:hover {
  background: #f3f4f6;
  color: #0f172a;
}

.verification-icon {
  font-size: 64px;
  text-align: center;
  margin-bottom: 20px;
}

.verification-icon.success {
  animation: bounceIn 0.5s ease;
}

.verification-modal-content h2 {
  text-align: center;
  color: #0f172a;
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700;
}

.verification-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.verification-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.verification-form label {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 5px;
}

.verification-form input {
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.2s;
  font-family: 'Courier New', monospace;
  text-align: center;
  letter-spacing: 4px;
}

.verification-form input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.verification-form input[type="email"] {
  font-family: Inter, system-ui, sans-serif;
  text-align: left;
  letter-spacing: normal;
}

.verification-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

.verification-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.verification-btn:active {
  transform: translateY(0);
}

.verification-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.verification-link-btn {
  background: none;
  border: none;
  color: #4f46e5;
  font-size: 14px;
  cursor: pointer;
  padding: 10px;
  text-align: center;
  transition: all 0.2s;
  font-weight: 500;
}

.verification-link-btn:hover {
  color: #7c3aed;
  text-decoration: underline;
}

.verification-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: -10px;
  display: none;
}

.verification-error.show {
  display: block;
  animation: shake 0.3s ease;
}

.verification-step {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

/* Responsive */
@media (max-width: 500px) {
  .verification-modal-content {
    padding: 30px 25px;
    width: 95%;
  }
  
  .verification-icon {
    font-size: 48px;
  }
  
  .verification-modal-content h2 {
    font-size: 20px;
  }
}