/* r/Kochi Community Web Extension & Newsletters — Minimal Modern Theme */
:root {
  --bg-color: #ffffff;
  --text-color: #1f2937;
  --text-muted: #6b7280;
  --link-color: #0284c7;
  --link-hover: #0369a1;
  --border-color: #e5e7eb;
  --card-bg: #f9fafb;
  --card-hover: #f3f4f6;
  --quote-bg: #f3f4f6;
  --quote-border: #0284c7;
  --accent-color: #059669;
  --accent-badge-bg: #e0f2fe;
  --accent-badge-text: #0369a1;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --link-color: #38bdf8;
    --link-hover: #7dd3fc;
    --border-color: #334155;
    --card-bg: #1e293b;
    --card-hover: #243248;
    --quote-bg: #1e293b;
    --quote-border: #38bdf8;
    --accent-color: #34d399;
    --accent-badge-bg: #0c4a6e;
    --accent-badge-text: #7dd3fc;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  padding: 2rem 1.25rem;
}

.container {
  max-width: 980px;
  margin: 0 auto;
}

.article-container {
  max-width: 780px;
  margin: 0 auto;
}

header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2.25rem;
}

header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

header p.tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.nav-links {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
  align-items: center;
}

.nav-links a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-links a.active {
  font-weight: 700;
  color: var(--text-color);
  border-bottom: 2px solid var(--link-color);
  padding-bottom: 2px;
}

/* Section Titles & Layouts */
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: -0.45rem;
  margin-bottom: 1.25rem;
}

/* Portal Hero Section */
.portal-hero {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(5, 150, 105, 0.06) 100%);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}

.portal-hero h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.portal-hero p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.hero-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  transition: all 0.15s ease;
}

.btn-hero-action:hover {
  background-color: var(--card-hover);
  border-color: var(--link-color);
  color: var(--link-color);
  transform: translateY(-1px);
}

.btn-hero-primary {
  background-color: var(--link-color);
  color: #ffffff !important;
  border-color: var(--link-color);
}

.btn-hero-primary:hover {
  opacity: 0.92;
  color: #ffffff !important;
}

/* Search Input Styling */
.search-wrapper {
  position: relative;
  margin-bottom: 1.35rem;
}

.search-input {
  width: 100%;
  padding: 0.8rem 1.15rem 0.8rem 2.75rem;
  font-size: 0.98rem;
  font-family: var(--font-stack);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--card-bg);
  color: var(--text-color);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  border-color: var(--link-color);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Helpline Grid & Directory Cards */
.helpline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.helpline-card {
  background-color: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.helpline-card:hover {
  transform: translateY(-2px);
  border-color: var(--link-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.helpline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.helpline-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.helpline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.helpline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background-color: rgba(125, 125, 125, 0.04);
  border: 1px solid rgba(125, 125, 125, 0.08);
}

.helpline-item-info {
  display: flex;
  flex-direction: column;
}

.helpline-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-color);
}

.helpline-item-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.helpline-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.btn-dial {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff !important;
  background-color: var(--link-color);
  border-radius: 6px;
  text-decoration: none !important;
  transition: opacity 0.15s ease;
}

.btn-dial:hover {
  opacity: 0.9;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff !important;
  background-color: #16a34a;
  border-radius: 6px;
  text-decoration: none !important;
  transition: opacity 0.15s ease;
}

.btn-wa:hover {
  opacity: 0.9;
}

/* Timeline Milestones */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.timeline-card {
  background-color: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-left: 4px solid var(--link-color);
  border-radius: 10px;
  padding: 1.15rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.timeline-card:hover {
  transform: translateY(-2px);
  border-color: var(--link-color);
}

.timeline-date-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 14px;
  background-color: var(--accent-badge-bg);
  color: var(--accent-badge-text);
  margin-bottom: 0.35rem;
}

.timeline-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Community Guides Grid */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
  margin-top: 1rem;
}

.community-card {
  background-color: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.community-card:hover {
  transform: translateY(-2px);
  border-color: var(--link-color);
}

/* Newsletter Hub Components */
.featured-section {
  margin-bottom: 2.75rem;
}

.featured-card {
  background-color: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.featured-card:hover {
  transform: translateY(-2px);
  border-color: var(--link-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background-color: var(--accent-badge-bg);
  color: var(--accent-badge-text);
  margin-bottom: 0.75rem;
}

.sub-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background-color: var(--border-color);
  color: var(--text-muted);
  margin-right: 0.4rem;
  margin-bottom: 0.5rem;
}

.featured-card h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.featured-card h2 a {
  color: inherit;
  text-decoration: none;
}

.featured-card h2 a:hover {
  color: var(--link-color);
}

.featured-card .dates {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.featured-card p.excerpt {
  color: var(--text-color);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  background-color: var(--link-color);
  color: #ffffff !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: opacity 0.15s ease;
}

.btn-read:hover {
  opacity: 0.9;
}

/* Two-Column Responsive Layout */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .two-col-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

.column-box {
  display: flex;
  flex-direction: column;
}

.column-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.15rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.column-card:hover {
  transform: translateY(-2px);
  border-color: var(--link-color);
}

.column-card h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.column-card h3 a {
  color: inherit;
  text-decoration: none;
}

.column-card h3 a:hover {
  color: var(--link-color);
}

.column-card .dates {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.column-card p.excerpt {
  color: var(--text-color);
  font-size: 0.92rem;
  line-height: 1.55;
}

.column-card .read-link {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--link-color);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.column-card .read-link:hover {
  text-decoration: underline;
}

.empty-channel {
  background-color: var(--card-bg);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Post Content Styling */
.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

article {
  font-size: 1.05rem;
}

article h1, article h2, article h3, article h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

article h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

article h3 {
  font-size: 1.25rem;
}

article p {
  margin-bottom: 1.25rem;
}

article ul, article ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

article li {
  margin-bottom: 0.5rem;
}

article blockquote {
  background-color: var(--quote-bg);
  border-left: 4px solid var(--quote-border);
  padding: 0.85rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-color);
}

article blockquote p {
  margin-bottom: 0;
}

article a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
}

article a:hover {
  text-decoration: underline;
}

article hr {
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin: 2rem 0;
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
  border: 1px solid var(--border-color);
}

/* Table Styles */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

article th, article td {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

article th {
  background-color: var(--card-bg);
  font-weight: 700;
  color: var(--text-color);
}

article tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.02);
}

@media (max-width: 600px) {
  article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

html {
  scroll-behavior: smooth;
}

/* Deep link target highlight */
:target {
  animation: highlight-target 2s ease-out;
}

@keyframes highlight-target {
  0% {
    background-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.25);
    border-radius: 4px;
  }
  100% {
    background-color: transparent;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

/* Headings scroll offset & layout */
article h1[id], article h2[id], article h3[id], article h4[id] {
  scroll-margin-top: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-stack);
  color: var(--text-muted);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  opacity: 0.75;
  margin-left: 0.25rem;
}

.section-share-btn:hover {
  opacity: 1;
  color: var(--link-color);
  border-color: var(--link-color);
  background-color: var(--card-hover);
  transform: translateY(-1px);
}

.section-share-btn svg {
  stroke: currentColor;
}

/* Page Share Button */
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-stack);
  color: var(--text-color);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-share:hover {
  background-color: var(--card-hover);
  border-color: var(--link-color);
  color: var(--link-color);
  transform: translateY(-1px);
}

/* Card Action Row */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
}

.btn-card-share {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-stack);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-card-share:hover {
  color: var(--link-color);
  border-color: var(--link-color);
  background: var(--card-hover);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-notification.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .toast-notification {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
    justify-content: center;
  }
}

/* Pagination & Filter Styles */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.btn-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-stack);
  color: var(--text-color);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-page:hover:not(:disabled) {
  color: var(--link-color);
  border-color: var(--link-color);
  background-color: var(--card-hover);
  transform: translateY(-1px);
}

.btn-page.active {
  background-color: var(--link-color);
  color: #ffffff !important;
  border-color: var(--link-color);
}

.btn-page:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-summary-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0.25rem;
}

.channel-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  margin-top: 0.5rem;
}

.filter-chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-stack);
}

.filter-chip:hover {
  color: var(--link-color);
  border-color: var(--link-color);
  background: var(--card-hover);
}

.filter-chip.active {
  background: var(--link-color);
  color: #ffffff;
  border-color: var(--link-color);
}

.paginate-card {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Recommendations Directory Table & Accordion Styles */
.rec-directory-wrapper {
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.rec-filter-container {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  margin-bottom: 1.35rem;
}

.rec-filter-btn {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-stack);
}

.rec-filter-btn:hover {
  color: var(--link-color);
  border-color: var(--link-color);
  background: var(--card-hover);
}

.rec-filter-btn.active {
  background: var(--link-color);
  color: #ffffff !important;
  border-color: var(--link-color);
}

.rec-table-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.rec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  margin: 0 !important;
}

.rec-table th {
  background-color: rgba(125, 125, 125, 0.06);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1.5px solid var(--border-color);
}

.rec-table td {
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.rec-row:hover td {
  background-color: var(--card-hover);
}

.rec-name-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.rec-sub-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background-color: var(--accent-badge-bg);
  color: var(--accent-badge-text);
}

.rec-loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.rec-star-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 14px;
  background-color: #fef3c7;
  color: #92400e;
  white-space: nowrap;
}

.btn-view-reviews {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-stack);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--link-color);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-view-reviews:hover {
  background: var(--link-color);
  color: #ffffff !important;
  border-color: var(--link-color);
}

.btn-view-reviews.expanded {
  background: var(--link-color);
  color: #ffffff !important;
  border-color: var(--link-color);
}

/* Accordion Row */
.rec-details-row {
  background-color: rgba(125, 125, 125, 0.03);
}

.rec-details-container {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--link-color);
  margin: 0.25rem 0;
}

.rec-quote-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.75rem;
}

.rec-quote-card:first-child {
  margin-top: 0.5rem;
}

.rec-quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rec-author-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.rec-quote-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 0.65rem;
}

.btn-reddit-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--link-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-reddit-link:hover {
  text-decoration: underline;
}

/* Mobile Responsiveness for Directory Table */
@media (max-width: 768px) {
  .rec-table, .rec-table thead, .rec-table tbody, .rec-table th, .rec-table td, .rec-table tr {
    display: block;
  }
  
  .rec-table thead {
    display: none;
  }
  
  .rec-row {
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 0.25rem;
  }
  
  .rec-table td {
    padding: 0.35rem 0.75rem;
    border: none;
  }
  
  .rec-table td.actions-cell {
    padding-top: 0.65rem;
  }
}

footer {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  margin-top: 3.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}
