/* ============================================
   Tales From Love — Global Styles
   Color Scheme: Burgundy #8B1A2F | Blush #FDF6F0 | Gold #C9962A
   Fonts: Playfair Display (headings) | Inter (body)
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --rose: #8B1A2F;
  --rose-dark: #6e1430;
  --rose-light: #a8325a;
  --cream: #FDF6F0;
  --cream-dark: #f5edd8;
  --gold: #C9962A;
  --gold-light: #e6c97a;
  --text-dark: #2D2D2D;
  --text-medium: #555;
  --text-light: #888;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 12px 40px rgba(139,26,47,0.12);
  --radius: 16px;
  --transition: all 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--rose);
  line-height: 1.3;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* === UTILITY === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.section-title.center {
  text-align: center;
}

.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 0.01em;
}

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

.btn-primary:hover {
  background: var(--rose-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

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

.btn-gold:hover {
  background: #b8872a;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--rose);
  border: 2px solid var(--rose);
}

.btn-outline:hover {
  background: var(--rose);
  color: var(--white);
}

.btn-nav-cta {
  background: var(--rose);
  color: var(--white);
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-cta:hover {
  background: var(--rose-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-category {
  background: var(--gold);
  color: var(--white);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  z-index: 2;
  position: relative;
}

.badge-category:hover {
  background: var(--rose);
  transform: scale(1.05);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0 20px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.navbar-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-logo span {
  color: var(--gold);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar-links a {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-medium);
  position: relative;
  padding: 4px 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: var(--transition);
  border-radius: 1px;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--rose);
}

.nav-search-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
  padding: 4px;
}

.nav-search-btn:hover {
  color: var(--rose);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* === SEARCH OVERLAY === */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,45,45,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.search-overlay.active {
  display: flex;
  opacity: 1;
}

.search-overlay-inner {
  width: 90%;
  max-width: 560px;
  text-align: center;
}

.search-overlay input {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.1rem;
  border: none;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.search-overlay .close-search {
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  margin-top: 18px;
  display: inline-block;
  background: none;
  border: none;
  opacity: 0.7;
  transition: var(--transition);
}

.search-overlay .close-search:hover {
  opacity: 1;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, rgba(139,26,47,0.88), rgba(110,20,48,0.92)),
    url('https://images.unsplash.com/photo-1518199266791-5375a83190b7?w=1200') center/cover no-repeat;
  color: var(--white);
  padding: 72px 20px;
  text-align: center;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* === FEATURED STORY === */
.featured-section {
  padding: 48px 0;
}

.featured-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  max-height: 380px;
}

.featured-card:hover {
  box-shadow: var(--shadow-hover);
}

.featured-card-img {
  flex: 0 0 40%;
  min-height: 300px;
  background: linear-gradient(135deg, var(--rose), var(--rose-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
  overflow: hidden;
}

.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card-body {
  flex: 1;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  width: fit-content;
}

.featured-card-body h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.featured-card-body .meta {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.featured-card-body .meta .meta-category {
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.featured-card-body .meta .meta-category:hover {
  color: var(--rose);
}

.featured-card-body p {
  color: var(--text-medium);
  margin-bottom: 16px;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* === CATEGORY FILTER BAR === */
.category-filter-bar {
  padding: 0 0 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.category-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.category-pill {
  padding: 7px 18px;
  border-radius: 9999px;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: var(--white);
  color: var(--text-medium);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.category-pill:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.category-pill.active {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}

/* === STORIES GRID === */
.stories-section {
  padding: 48px 0;
}

.stories-layout {
  display: flex;
  gap: 36px;
}

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

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.story-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.04);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.story-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--rose-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.story-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card-img .badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.story-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card-body h3 a {
  color: var(--text-dark);
}

.story-card-body h3 a:hover {
  color: var(--rose);
}

.story-card-body .excerpt {
  color: var(--text-medium);
  font-size: 0.85rem;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.story-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-light);
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-wrap: wrap;
  gap: 6px;
}

.story-card-footer .author {
  font-weight: 600;
  color: var(--rose);
}

.story-card-footer .story-card-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-card-footer .read-time {
  color: var(--text-light);
  font-size: 0.75rem;
}

.story-card-footer .comments-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

.load-more-wrap {
  text-align: center;
  padding: 16px 0;
}

/* === SIDEBAR === */
.sidebar {
  flex: 0 0 280px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.sidebar-widget .top-story-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-widget .top-story-item:last-child {
  border-bottom: none;
}

.sidebar-widget .top-story-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.sidebar-widget .top-story-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.sidebar-widget .top-story-title a {
  color: var(--text-dark);
}

.sidebar-widget .top-story-title a:hover {
  color: var(--rose);
}

.sidebar-widget .top-story-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-widget .top-story-cat {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-widget .top-story-cat:hover {
  color: var(--rose);
}

.sidebar-widget .cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--text-dark);
  font-size: 0.9rem;
}

.sidebar-widget .cat-list a:last-child {
  border-bottom: none;
}

.sidebar-widget .cat-list a:hover {
  color: var(--rose);
}

.sidebar-widget .cat-count {
  background: var(--cream);
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.ad-placeholder {
  background: var(--cream);
  border: 1.5px dashed rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 36px 18px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

.fb-widget-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fb-widget-link:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.fb-widget-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.fb-widget-fallback {
  display: block;
  background: var(--cream);
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
}
.fb-widget-fallback:hover {
  background: var(--gold);
  color: #fff;
}

/* === SINGLE STORY PAGE === */
.story-page {
  padding: 40px 0 60px;
}

.story-page-layout {
  max-width: 800px;
  margin: 0 auto;
}

.story-header {
  margin-bottom: 30px;
}

.story-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.story-meta .author-name {
  font-weight: 700;
  color: var(--rose);
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.share-btn:hover {
  transform: translateY(-2px);
  color: var(--white);
}

.share-btn.facebook { background: #1877F2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.copy-link { background: var(--text-medium); }

.story-body {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.story-body p {
  margin-bottom: 1.5rem;
}

/* === VOTE SECTION === */
.vote-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.vote-section h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.vote-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.vote-btn {
  padding: 12px 30px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vote-btn.real {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #a5d6a7;
}

.vote-btn.real:hover {
  background: #2e7d32;
  color: var(--white);
}

.vote-btn.fake {
  background: #fce4ec;
  color: #c62828;
  border-color: #ef9a9a;
}

.vote-btn.fake:hover {
  background: #c62828;
  color: var(--white);
}

.vote-count {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 12px;
}

/* === COMMENTS === */
.comments-section {
  margin-bottom: 40px;
}

.comments-section h2 {
  font-size: 1.6rem;
  margin-bottom: 25px;
}

.comment-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.comment-form .form-group {
  margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--cream);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--rose);
}

.comment-form textarea {
  min-height: 100px;
  resize: vertical;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.comment-item .comment-name {
  font-weight: 700;
  color: var(--rose);
  font-size: 0.95rem;
}

.comment-item .comment-time {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-left: 10px;
}

.comment-item .comment-text {
  margin-top: 8px;
  color: var(--text-medium);
  line-height: 1.6;
}

.comment-item .comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-item .reply-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  padding: 0;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.comment-item .reply-btn:hover {
  color: var(--rose);
}

/* Reply threading */
.comment-replies {
  padding-left: 28px;
  border-left: 2px solid var(--gold-light);
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: -3px;
  margin-bottom: 12px;
}

.comment-reply {
  background: var(--cream);
  box-shadow: none;
  border: 1px solid rgba(0,0,0,0.05);
  padding: 16px;
}

.comment-reply .comment-name {
  font-size: 0.88rem;
}

/* Inline reply form */
.reply-form-inline {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 18px;
  margin-left: 44px;
  border: 1.5px solid rgba(0,0,0,0.08);
  margin-top: -3px;
  margin-bottom: 12px;
}

.reply-form-inline input,
.reply-form-inline textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  background: var(--white);
  transition: var(--transition);
  margin-bottom: 10px;
}

.reply-form-inline input:focus,
.reply-form-inline textarea:focus {
  outline: none;
  border-color: var(--rose);
}

.reply-form-inline textarea {
  min-height: 70px;
  resize: vertical;
}

.reply-form-actions {
  display: flex;
  gap: 8px;
}

.reply-form-actions .btn {
  padding: 7px 18px;
  font-size: 0.82rem;
}

/* === RELATED STORIES === */
.related-section {
  padding: 40px 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* === CATEGORIES PAGE === */
.categories-page {
  padding: 60px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-bottom: 3px solid var(--gold);
}

.category-card .cat-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.category-card .cat-story-count {
  color: var(--text-light);
  font-size: 0.9rem;
}

.category-stories-section {
  padding: 40px 0;
  display: none;
}

.category-stories-section.active {
  display: block;
}

.category-back-btn {
  margin-bottom: 20px;
}

/* === SUBMIT PAGE === */
.submit-page {
  padding: 60px 0;
}

.submit-form-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.submit-form-wrap .subheading {
  text-align: center;
  color: var(--text-medium);
  font-size: 1.1rem;
  margin-bottom: 35px;
}

.submit-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rose);
}

.form-group textarea {
  min-height: 250px;
  resize: vertical;
}

.form-group input[type="file"] {
  padding: 10px;
}

.form-group .checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-group .checkbox-wrap input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.char-count {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

.submission-rules {
  margin-top: 30px;
  padding: 25px;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

.submission-rules h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.submission-rules ul {
  list-style: disc;
  padding-left: 20px;
}

.submission-rules li {
  margin-bottom: 8px;
  color: var(--text-medium);
  font-size: 0.9rem;
}

.success-msg {
  display: none;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
}

/* === ABOUT PAGE === */
.about-page {
  padding: 60px 0;
}

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

.about-content h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 15px;
}

.about-content .about-tagline {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: 40px;
}

.about-block {
  margin-bottom: 40px;
}

.about-block h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.about-block p,
.about-block li {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 10px;
}

.about-block ol,
.about-block ul {
  padding-left: 20px;
}

.about-block ol {
  list-style: decimal;
}

.about-block ul {
  list-style: disc;
}

.how-it-works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.step-card {
  text-align: center;
  padding: 25px 15px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.step-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--rose);
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* === ADMIN PAGE === */
.admin-page {
  padding: 40px 0;
}

.admin-login {
  max-width: 400px;
  margin: 100px auto;
  text-align: center;
}

.admin-login h1 {
  margin-bottom: 20px;
}

.admin-login input {
  width: 100%;
  padding: 14px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  margin-bottom: 15px;
  text-align: center;
}

.admin-login input:focus {
  outline: none;
  border-color: var(--rose);
}

.admin-panel {
  display: none;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e8e0d4;
  padding-bottom: 10px;
}

.admin-tab {
  padding: 10px 24px;
  border-radius: 8px 8px 0 0;
  font-weight: 700;
  cursor: pointer;
  background: var(--cream);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.admin-tab.active {
  background: var(--rose);
  color: var(--white);
}

.admin-story-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.admin-story-info {
  flex: 1;
}

.admin-story-info h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.admin-story-info .admin-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.admin-story-info .admin-excerpt {
  color: var(--text-medium);
  font-size: 0.9rem;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.admin-btn.approve {
  background: #e8f5e9;
  color: #2e7d32;
}
.admin-btn.approve:hover {
  background: #2e7d32;
  color: var(--white);
}

.admin-btn.edit {
  background: #fff3e0;
  color: #e65100;
}
.admin-btn.edit:hover {
  background: #e65100;
  color: var(--white);
}

.admin-btn.reject {
  background: #fce4ec;
  color: #c62828;
}
.admin-btn.reject:hover {
  background: #c62828;
  color: var(--white);
}

.admin-btn.feature {
  background: #fff8e1;
  color: #f9a825;
}
.admin-btn.feature:hover {
  background: #f9a825;
  color: var(--white);
}

/* === FOOTER === */
.footer {
  background: #2D2D2D;
  color: rgba(255,255,255,0.85);
  padding: 48px 20px 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 28px;
}

.footer h3 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer p,
.footer a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  line-height: 1.7;
}

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

.footer-email {
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
  text-underline-offset: 2px;
}

.footer-email:hover {
  color: #fff;
  text-decoration-color: #fff;
}

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

.footer-socials .social-icon:hover {
  color: #fff;
  opacity: 0.85;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(139,26,47,0.25);
  transition: var(--transition);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
}

/* === TOAST / NOTIFICATION === */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-dark);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  z-index: 3000;
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* === LOADING SPINNER === */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--cream-dark);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-wrap {
  text-align: center;
  padding: 40px;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal h2 {
  margin-bottom: 20px;
}

.modal .form-group textarea {
  min-height: 200px;
}

/* === NO RESULTS === */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.no-results h3 {
  color: var(--text-light);
  margin-bottom: 10px;
}

/* === RESPONSIVE === */

/* Prevent horizontal overflow on all screens */
html, body {
  overflow-x: hidden;
}

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

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-it-works {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-card-body h2 {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .sidebar {
    flex: 0 0 240px;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transform: translateY(-120%);
    transition: var(--transition);
    z-index: 999;
  }

  .navbar-links.open {
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 56px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .featured-section {
    padding: 36px 0;
  }

  .featured-card {
    flex-direction: column;
    max-height: none;
  }

  .featured-card-img {
    min-height: 200px;
    flex: none;
  }

  .featured-card-body {
    padding: 24px;
  }

  .featured-card-body h2 {
    font-size: 1.3rem;
  }

  .stories-section {
    padding: 36px 0;
  }

  .stories-layout {
    flex-direction: column;
    gap: 28px;
  }

  .sidebar {
    flex: auto;
  }

  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-pills {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .story-header h1 {
    font-size: 1.8rem;
  }

  .story-body {
    font-size: 1rem;
    line-height: 1.85;
  }

  .story-meta {
    font-size: 0.85rem;
  }

  .vote-section {
    padding: 24px 20px;
  }

  .vote-section h3 {
    font-size: 1.15rem;
  }

  .vote-buttons {
    flex-direction: column;
    align-items: center;
  }

  .vote-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .comment-form {
    padding: 20px;
  }

  .comment-replies {
    padding-left: 16px;
    margin-left: 8px;
  }

  .reply-form-inline {
    margin-left: 24px;
    padding: 14px;
  }

  .admin-story-card {
    flex-direction: column;
  }

  .footer {
    padding: 36px 16px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .how-it-works {
    grid-template-columns: repeat(2, 1fr);
  }

  .submit-form {
    padding: 25px;
  }

  .about-content h1 {
    font-size: 2rem;
  }

  .about-block h2 {
    font-size: 1.3rem;
  }

  .categories-page {
    padding: 40px 0;
  }

  .submit-page {
    padding: 40px 0;
  }

  .about-page {
    padding: 40px 0;
  }

  .story-page {
    padding: 30px 0 40px;
  }

  .story-card-img {
    height: 150px;
  }

  .story-card-body {
    padding: 14px;
  }

  .story-card-body h3 {
    font-size: 0.95rem;
  }

  .story-card-body .excerpt {
    font-size: 0.82rem;
  }

  .story-card-footer {
    font-size: 0.72rem;
  }

  .category-card {
    padding: 30px 20px;
  }

  .category-card .cat-icon {
    font-size: 2.5rem;
  }

  .ad-placeholder {
    padding: 28px 14px;
  }

  .btn {
    padding: 9px 20px;
    font-size: 0.82rem;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 18px;
    right: 18px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .navbar {
    padding: 0 10px;
  }

  .navbar .container {
    height: 56px;
  }

  .navbar-logo {
    font-size: 1.2rem;
  }

  .navbar-links {
    top: 56px;
  }

  .hero {
    padding: 44px 16px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.92rem;
  }

  .featured-card-body {
    padding: 18px;
  }

  .featured-card-body h2 {
    font-size: 1.15rem;
  }

  .featured-card-body p {
    font-size: 0.88rem;
  }

  .stories-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .section-title {
    font-size: 1.2rem;
  }

  .story-header h1 {
    font-size: 1.5rem;
  }

  .about-content h1 {
    font-size: 1.6rem;
  }

  .about-content .about-tagline {
    font-size: 1rem;
  }

  .how-it-works {
    grid-template-columns: 1fr;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-btn {
    justify-content: center;
  }

  .submit-form {
    padding: 20px 16px;
  }

  .sidebar-widget {
    padding: 18px;
  }

  .story-card-img {
    height: 170px;
  }

  .story-card-body {
    padding: 14px;
  }

  .comment-form {
    padding: 16px;
  }

  .comment-item {
    padding: 16px;
  }

  .toast {
    left: 10px;
    right: 10px;
    transform: translateX(0) translateY(100px);
    text-align: center;
    font-size: 0.85rem;
    padding: 12px 16px;
  }

  .toast.show {
    transform: translateX(0) translateY(0);
  }

  .search-overlay input {
    padding: 14px 18px;
    font-size: 1rem;
  }

  .modal {
    padding: 22px 16px;
  }

  .admin-actions {
    flex-direction: column;
    width: 100%;
  }

  .admin-btn {
    width: 100%;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════
   LANGUAGE SWITCHER
   ═══════════════════════════════════════════ */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 3px 4px;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 14px;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.2s, background 0.2s, transform 0.15s;
}

.lang-btn:hover {
  opacity: 0.85;
  transform: scale(1.1);
}

.lang-btn.active {
  opacity: 1;
  background: rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
  .lang-switcher {
    margin: 10px 0 0 0;
    justify-content: center;
  }
}

/* ============================
   SOCIAL ICONS
   ============================ */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.95rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}
.social-icon:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}
.social-icon.facebook { background: #1877F2; }
.social-icon.twitter { background: #000; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
