/*
Theme Name: RBookmarking Directory
Theme URI: https://rbookmarking.com
Author: RBookmarking
Author URI: https://rbookmarking.com
Description: A professional directory submission platform theme for WordPress. Users can submit directory links with images. Full moderator control via WP Admin dashboard.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rbookmarking
Tags: directory, submissions, bookmarking, community, blog, two-columns, custom-menu, featured-images, post-formats, sticky-post, threaded-comments, translation-ready
*/

/* =============================
   CSS CUSTOM PROPERTIES
   ============================= */
:root {
  --primary: #1a9e8f;
  --primary-dark: #157a6e;
  --primary-light: #e8f7f5;
  --accent: #ff6b35;
  --accent-hover: #e55a26;
  --teal-grad: linear-gradient(135deg, #1a9e8f 0%, #0d7a6b 100%);
  --hero-grad: linear-gradient(135deg, #0f4c4a 0%, #1a9e8f 50%, #0d7a6b 100%);
  --dark: #1a1a2e;
  --text: #2d3748;
  --text-muted: #718096;
  --text-light: #a0aec0;
  --border: #e2e8f0;
  --border-light: #f0f4f8;
  --bg: #f7f9fc;
  --white: #ffffff;
  --sidebar-bg: #ffffff;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.07);
  --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Sora', 'DM Sans', sans-serif;
  --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --blue: #3b82f6;
  --badge-trending: #22c55e;
  --badge-paid: #f59e0b;
  --badge-editor: #3b82f6;
  --badge-featured: #8b5cf6;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

ul, ol { list-style: none; }

button { font-family: var(--font-body); cursor: pointer; border: none; outline: none; }

input, textarea, select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  width: 100%;
  transition: var(--transition);
  background: var(--white);
  color: var(--text);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,158,143,0.12);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

/* =============================
   LAYOUT CONTAINERS
   ============================= */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

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

.content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 28px 0;
}

.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* =============================
   TOP BAR / ANNOUNCEMENT
   ============================= */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  padding: 7px 0;
  text-align: center;
}

.top-bar a { color: var(--primary); }

/* =============================
   SITE HEADER & NAV
   ============================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark);
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--teal-grad);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 900;
}

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.header-search input {
  padding-right: 100px;
  background: var(--bg);
  border-radius: 50px;
  font-size: 0.875rem;
}

.header-search .search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--teal-grad);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.header-search .search-btn:hover { opacity: 0.9; transform: translateY(-50%) scale(1.03); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-primary {
  background: var(--teal-grad);
  color: white;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,158,143,0.3); color: white; }

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

.btn-sm { padding: 5px 14px; font-size: 0.8rem; }
.btn-lg { padding: 12px 28px; font-size: 0.95rem; }

/* =============================
   HERO SECTION
   ============================= */
.hero-section {
  background: var(--hero-grad);
  padding: 42px 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 30%;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; max-width: 560px; }

.hero-section h1 {
  font-size: 2rem;
  color: white;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-section p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.hero-highlight {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hero-highlight::before {
  content: '★';
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 1px;
}

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-hero-primary {
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 50px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); color: var(--primary-dark); }

.btn-hero-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; }

/* =============================
   SECTION HEADERS
   ============================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .icon {
  width: 22px; height: 22px;
  background: var(--teal-grad);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.7rem;
}

.view-all {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

/* =============================
   FEATURED ARTICLES
   ============================= */
.featured-articles-section { margin-bottom: 24px; }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.featured-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--teal-grad);
}

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

.featured-card-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--border);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.badge-editor { background: #dbeafe; color: #1d4ed8; }
.badge-featured { background: #ede9fe; color: #6d28d9; }
.badge-trending { background: #dcfce7; color: #15803d; }
.badge-paid { background: #fef3c7; color: #92400e; }
.badge-hot { background: #fee2e2; color: #991b1b; }

.featured-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 7px;
  line-height: 1.35;
}

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

.featured-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-light);
}

.card-meta .author { color: var(--primary); font-weight: 600; }
.card-meta .separator { color: var(--border); }

/* =============================
   WHY CHOOSE SECTION
   ============================= */
.why-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.why-section h2 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  text-align: center;
}

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

.why-item { text-align: center; }

.why-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.3rem;
}

.why-item h4 { font-size: 0.88rem; margin-bottom: 5px; }
.why-item p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* =============================
   TRENDING TODAY
   ============================= */
.trending-section { margin-bottom: 24px; }

.trending-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.trending-label {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--teal-grad);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.trending-strip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
}

.trending-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.trending-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: var(--primary-light); }

.trending-num {
  width: 24px; height: 24px;
  background: var(--teal-grad);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

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

.trending-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.trending-item-title a { color: inherit; }
.trending-item-title a:hover { color: var(--primary); }

.trending-views {
  font-size: 0.73rem;
  color: var(--text-light);
}

.trend-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  flex-shrink: 0;
}

.trend-up { background: #dcfce7; color: #15803d; }
.trend-down { background: #fee2e2; color: #991b1b; }

/* =============================
   TOP CATEGORIES
   ============================= */
.categories-section { margin-bottom: 24px; }

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

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.category-card:hover { border-color: var(--primary); box-shadow: var(--card-shadow); transform: translateY(-2px); }

.category-card h4 { font-size: 0.9rem; color: var(--dark); margin-bottom: 4px; }
.category-card span { font-size: 0.76rem; color: var(--text-muted); }

/* =============================
   RECENTLY SUBMITTED / STORY LIST
   ============================= */
.stories-section { margin-bottom: 24px; }

.story-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.story-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  align-items: flex-start;
}

.story-item:last-child { border-bottom: none; }
.story-item:hover { background: #fafcff; }

.story-num {
  width: 28px; height: 28px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.story-thumb {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--border);
}

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

.story-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.3;
}

.story-title a { color: var(--dark); }
.story-title a:hover { color: var(--primary); }

.story-excerpt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.story-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.story-footer .author { color: var(--primary); font-weight: 600; }
.story-footer .time { color: var(--text-light); }
.story-footer .category-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 1px 7px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

.story-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}

.score-btn {
  width: 32px; height: 32px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.score-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.score-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

/* =============================
   PAGINATION
   ============================= */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 20px 0;
}

.page-btn {
  min-width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  padding: 0 10px;
}

.page-btn:hover, .page-btn.active {
  background: var(--teal-grad);
  color: white;
  border-color: var(--primary);
}

.page-btn.next-btn, .page-btn.last-btn {
  background: var(--bg);
}

/* =============================
   FEATURED CONTRIBUTORS
   ============================= */
.contributors-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.contributors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.contributor-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contributor-card:hover { border-color: var(--primary); background: var(--primary-light); }

.contributor-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--teal-grad);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.contributor-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

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

/* =============================
   CTA SECTION
   ============================= */
.cta-section {
  background: var(--hero-grad);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  color: white;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.cta-section h2 { color: white; font-size: 1.5rem; margin-bottom: 8px; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 20px; font-size: 0.9rem; }

/* =============================
   SIDEBAR WIDGETS
   ============================= */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}

.widget-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.widget-title .dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
}

/* Sponsor Widget */
.sponsor-widget {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #a7f3d0;
}

.sponsor-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.sponsor-widget h3 { font-size: 1rem; margin-bottom: 6px; }
.sponsor-widget p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }

/* Platform Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

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

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

/* Top Contributors Widget */
.contrib-list-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.contrib-mini-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--teal-grad);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.72rem; font-weight: 700;
  flex-shrink: 0;
}

.contrib-name { font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.contrib-count { font-size: 0.72rem; color: var(--text-light); }

/* Most Viewed */
.viewed-list-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8rem;
}

.viewed-list-item:last-child { border-bottom: none; }
.viewed-title { color: var(--text); font-weight: 500; margin-bottom: 2px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.viewed-title a { color: inherit; }
.viewed-title a:hover { color: var(--primary); }
.viewed-views { font-size: 0.72rem; color: var(--text-light); }

/* Editor Picks */
.editor-pick-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.editor-pick-item:last-child { border-bottom: none; }
.editor-pick-title { font-size: 0.82rem; font-weight: 600; color: var(--dark); margin-bottom: 2px; line-height: 1.35; }
.editor-pick-title a { color: inherit; }
.editor-pick-title a:hover { color: var(--primary); }
.editor-pick-score { font-size: 0.72rem; color: var(--text-light); }

/* Quick Nav */
.quick-nav-list { list-style: none; }

.quick-nav-list li a {
  display: block;
  padding: 6px 0;
  font-size: 0.83rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.quick-nav-list li:last-child a { border-bottom: none; }
.quick-nav-list li a:hover { color: var(--primary); padding-left: 4px; }

/* =============================
   COMMUNITY REMINDER BAR
   ============================= */
.community-reminder {
  background: var(--primary-light);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.5;
}

.community-reminder strong { color: var(--primary-dark); }

/* =============================
   SITE FOOTER
   ============================= */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-top {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: 0.8rem; color: var(--text-muted); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }

.popular-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.popular-tags a {
  font-size: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 3px 10px;
  border-radius: 50px;
  transition: var(--transition);
}
.popular-tags a:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-light);
}

.footer-bottom a { color: var(--text-light); }
.footer-bottom a:hover { color: var(--primary); }

.footer-links { display: flex; gap: 14px; }

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

.submit-form-container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.submit-form-header {
  background: var(--hero-grad);
  padding: 28px 32px;
  color: white;
}

.submit-form-header h2 { color: white; font-size: 1.4rem; margin-bottom: 5px; }
.submit-form-header p { color: rgba(255,255,255,0.8); font-size: 0.88rem; }

.submit-form-body { padding: 32px; }

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-label .required { color: var(--accent); margin-left: 2px; }

.form-hint { font-size: 0.76rem; color: var(--text-muted); margin-top: 4px; }

.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.image-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.image-upload-icon { font-size: 2rem; margin-bottom: 10px; }
.image-upload-area p { font-size: 0.85rem; color: var(--text-muted); }

/* =============================
   SINGLE STORY PAGE
   ============================= */
.story-hero {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.story-hero-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--border);
}

.story-hero-body { padding: 24px; }

.story-category-tag {
  display: inline-flex;
  align-items: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.story-hero-body h1 { font-size: 1.5rem; margin-bottom: 12px; }

.story-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.story-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =============================
   REGISTRATION / LOGIN FORMS
   ============================= */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--card-shadow-hover);
}

.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-title {
  font-size: 1.35rem;
  text-align: center;
  margin-bottom: 6px;
}

.auth-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 18px 0;
  color: var(--text-light);
  font-size: 0.8rem;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* =============================
   MESSAGES / ALERTS
   ============================= */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-success { background: #dcfce7; border: 1px solid #a7f3d0; color: #15803d; }
.alert-error { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-info { background: #dbeafe; border: 1px solid #93c5fd; color: #1d4ed8; }
.alert-warning { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }

/* =============================
   UTILITY CLASSES
   ============================= */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 16px; }
.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.75rem; }
.w-full { width: 100%; }

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 1024px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

@media (max-width: 768px) {
  .hero-section h1 { font-size: 1.5rem; }
  .featured-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .contributors-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .header-inner { flex-wrap: wrap; }
  .header-search { order: 3; width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* =============================
   WORDPRESS SPECIFIC
   ============================= */
.wp-caption { max-width: 100%; }
.wp-caption img { display: block; }
.wp-caption .wp-caption-text { font-size: 0.8rem; color: var(--text-muted); padding: 6px 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.alignleft { float: left; margin-right: 16px; margin-bottom: 8px; }
.alignright { float: right; margin-left: 16px; margin-bottom: 8px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
