/*
Theme Name: Switch ROM
Theme URI: https://switchrom.example.com
Author: Switch ROM Community
Author URI: https://switchrom.example.com
Description: Fast, lightweight, and modern Nintendo Switch ROMs download theme for WordPress with 6-column grid (12 games/page), Global PPI Ad Locker support, dark gaming speech bubble comments, interactive 5-star rating, and screenshots lightbox.
Version: 1.3.0
License: GNU General Public License v2 or later
Text Domain: switch-rom
*/

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.sr-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.sr-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.sr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.sr-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.sr-logo:hover .sr-logo-svg {
  transform: scale(1.05);
}
.sr-logo-text {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}
.sr-logo:hover .sr-logo-text {
  background: linear-gradient(90deg, #7928CA 0%, #c026d3 50%, #ff0080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sr-logo-highlight {
  color: #d946ef;
}
.sr-logo-sub {
  display: block;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Search bar */
.sr-search-form {
  position: relative;
  width: 100%;
  max-width: 560px;
}
.sr-search-input {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px 10px 38px;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}
.sr-search-input:focus {
  background: #ffffff;
  border-color: #c026d3;
  box-shadow: 0 0 0 3px rgba(192, 38, 211, 0.15);
}
.sr-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

/* Navigation Links */
.sr-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.sr-nav-link {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.sr-nav-link:hover, .sr-nav-link.active {
  color: #c026d3;
  background: #fdf4ff;
}

/* Category Filter Bar */
.sr-cat-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
}
.sr-cat-list {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}
.sr-cat-btn {
  display: inline-block;
  padding: 6px 14px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.sr-cat-btn:hover {
  background: linear-gradient(90deg, #7928CA 0%, #c026d3 50%, #ff0080 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(192, 38, 211, 0.35);
  transform: translateY(-1px);
}
.sr-cat-btn.active {
  background: linear-gradient(90deg, #7928CA 0%, #c026d3 50%, #ff0080 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(192, 38, 211, 0.3);
}

/* 6-Column Grid Layout */
.sr-grid-6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .sr-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 900px) {
  .sr-grid-6 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1200px) {
  .sr-grid-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Game Card */
.sr-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.sr-card:hover {
  transform: translateY(-4px);
  border-color: #d946ef;
  box-shadow: 0 12px 26px -4px rgba(217, 70, 239, 0.45);
}
.sr-card-thumb {
  position: relative;
  aspect-ratio: 2/3;
  width: 100%;
  background: #0f172a;
  overflow: hidden;
}
.sr-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.sr-card:hover .sr-card-thumb img {
  transform: scale(1.05);
}
.sr-badge-format {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #000000;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.sr-badge-size {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(2, 6, 23, 0.85);
  color: #34d399;
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.sr-card-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sr-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sr-card:hover .sr-card-title {
  color: #c026d3;
}
.sr-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  font-size: 11px;
}
.sr-card-cat {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.sr-card-rating {
  color: #10b981;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Pagination: Previous Page & Next Page (No Numbers) */
.sr-pagination-wrap {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.sr-pagination-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.sr-page-nav-btn a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.sr-page-nav-btn a:hover {
  background: linear-gradient(90deg, #7928CA 0%, #c026d3 50%, #ff0080 100%);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(217, 70, 239, 0.45);
  transform: translateY(-2px);
}
.sr-next-btn a {
  background: linear-gradient(90deg, #7928CA 0%, #c026d3 50%, #ff0080 100%);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.35);
}
.sr-next-btn a:hover {
  background: linear-gradient(90deg, #6b21a8 0%, #a21caf 50%, #e11d48 100%);
  box-shadow: 0 6px 22px rgba(217, 70, 239, 0.55);
  transform: translateY(-2px);
}
/* Hide standard numeric pagination links (1, 2, etc.) */
.page-numbers:not(.prev):not(.next) {
  display: none !important;
}
.page-numbers.prev,
.page-numbers.next {
  display: inline-flex !important;
  align-items: center;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}
.page-numbers.prev:hover,
.page-numbers.next:hover {
  background: linear-gradient(90deg, #7928CA 0%, #c026d3 50%, #ff0080 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 18px rgba(217, 70, 239, 0.45) !important;
  transform: translateY(-2px);
}

/* Detail Page Layout */
.sr-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin: 16px 0;
  flex-wrap: wrap;
}
.sr-breadcrumb a {
  color: #475569;
  font-weight: 600;
}
.sr-breadcrumb a:hover {
  color: #c026d3;
}

/* ============================================================
   SINGLE ROM 2-COLUMN RESPONSIVE LAYOUT (MAIN CONTENT + RIGHT SIDEBAR)
   ============================================================ */
.sr-single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 768px) {
  .sr-single-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .sr-single-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 28px;
  }
}
@media (min-width: 1280px) {
  .sr-single-layout {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 32px;
  }
}
.sr-single-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sr-single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .sr-single-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    z-index: 10;
  }
}

/* Sidebar Widgets */
.sr-sidebar-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.sr-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.sr-badge-hot {
  font-size: 10px;
  font-weight: 800;
  color: #e11d48;
  background: #fff1f2;
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid #fecdd3;
  letter-spacing: 0.04em;
}
.sr-popular-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sr-popular-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: inherit;
}
.sr-popular-item:hover {
  background: #ffffff;
  border-color: #f0abfc;
  box-shadow: 0 4px 14px rgba(192, 38, 211, 0.12);
  transform: translateY(-1px);
}
.sr-pop-rank {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}
.sr-pop-rank-1 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}
.sr-pop-rank-2 {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #0f172a;
}
.sr-pop-rank-3 {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #ffffff;
}
.sr-pop-rank-n {
  background: #e2e8f0;
  color: #475569;
}
.sr-pop-thumb {
  position: relative;
  width: 48px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  background: #0f172a;
}
.sr-pop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.sr-popular-item:hover .sr-pop-thumb img {
  transform: scale(1.06);
}
.sr-pop-badge-fmt {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  font-family: monospace;
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1;
}
.sr-pop-info {
  flex: 1;
  min-width: 0;
}
.sr-pop-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 3px 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}
.sr-popular-item:hover .sr-pop-title {
  color: #c026d3;
}
.sr-pop-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.sr-pop-arrow {
  padding: 6px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.sr-popular-item:hover .sr-pop-arrow {
  background: linear-gradient(90deg, #7928CA, #ff0080);
  color: #ffffff;
}
.sr-cat-pill {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}
.sr-cat-pill:hover {
  background: #fdf4ff;
  border-color: #f0abfc;
  color: #c026d3;
}

.sr-detail-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}
.sr-detail-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .sr-detail-top {
    grid-template-columns: 260px 1fr;
  }
}
@media (min-width: 1024px) {
  .sr-detail-top {
    grid-template-columns: 310px 1fr;
  }
}
.sr-cover-wrap {
  position: relative;
  aspect-ratio: 2/3;
  width: 100%;
  max-width: 310px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.sr-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Game Info Table */
.sr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
}
.sr-table tr {
  border-bottom: 1px solid #f1f5f9;
}
.sr-table td {
  padding: 10px 12px;
}
.sr-table td:first-child {
  font-weight: 700;
  color: #475569;
  width: 150px;
  background: #f8fafc;
}
.sr-table td:last-child {
  color: #0f172a;
}

/* 2-Step Download Buttons Stack under Cover Image */
.sr-dl-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
  max-width: 310px;
}
.sr-dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}
@media (min-width: 600px) {
  .sr-dl-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.sr-dl-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.sr-dl-btn-base {
  background: linear-gradient(135deg, #090d16 0%, #1e1b4b 50%, #4c1d95 100%);
  border-color: #6d28d9;
}
.sr-dl-btn-base:hover {
  background: linear-gradient(135deg, #7928CA 0%, #c026d3 50%, #ff0080 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 70, 239, 0.4);
}
.sr-dl-btn-update {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  border-color: #10b981;
}
.sr-dl-btn-update:hover {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* Category Badges on Single */
.sr-post-cat-pill {
  background: rgba(217,70,239,0.12);
  color: #c026d3;
  border: 1px solid rgba(217,70,239,0.3);
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}
.sr-post-cat-pill:hover {
  background: linear-gradient(90deg, #7928CA 0%, #c026d3 50%, #ff0080 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(217,70,239,0.4);
}
.sr-fw-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-block;
}

/* 3 In-Game Screenshots */
.sr-shots-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.sr-shot-item {
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #0f172a;
}
.sr-shot-item:hover {
  border-color: #c026d3;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(192, 38, 211, 0.3);
}
.sr-shot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   COMMENTS & GAMING COMMUNITY DISCUSSIONS STYLING
   ============================================================ */
.sr-comments-area {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
}
.sr-comment-list .children {
  list-style: none;
  margin-left: 24px;
  padding-left: 12px;
  border-left: 2px solid #e2e8f0;
  margin-top: 10px;
}
.sr-comment-reply a {
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sr-comment-reply a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.sr-comment-submit-btn,
#submit {
  background: linear-gradient(135deg, #7928CA 0%, #c026d3 50%, #ff0080 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 10px rgba(217,70,239,0.3) !important;
}
.sr-comment-submit-btn:hover,
#submit:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(217,70,239,0.5) !important;
}

/* Footer */
.sr-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 40px 0 24px 0;
  margin-top: 48px;
  border-top: 1px solid #1e293b;
  position: relative;
}
.sr-footer-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7928CA 0%, #c026d3 50%, #ff0080 100%);
}
.sr-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 9999px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sr-social-pill:hover {
  background: linear-gradient(90deg, #7928CA, #ff0080);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-1px);
}
.sr-footer-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
}
@media (min-width: 768px) {
  .sr-footer-main {
    flex-direction: row;
    align-items: center;
  }
}
.sr-footer-left {
  max-width: 720px;
  text-align: left;
}
.sr-footer-right {
  text-align: left;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .sr-footer-right {
    text-align: right;
  }
}
.sr-footer-links {
  list-style: none;
  padding: 0;
}
.sr-footer-links li {
  margin-bottom: 8px;
}
.sr-footer-links a {
  color: #94a3b8;
  transition: color 0.2s;
}
.sr-footer-links a:hover {
  color: #d946ef;
}
.sr-footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* Reaction & Social Share Styles */
.sr-reaction-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
  margin: 24px 0 16px 0;
  text-align: center;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}
.sr-reaction-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
.sr-reaction-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 20px;
}
.sr-reaction-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sr-reaction-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.sr-reaction-btn:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}
.sr-reaction-btn.is-active {
  background: #fdf4ff;
  border-color: #d946ef;
  transform: scale(1.05);
}
.sr-reaction-btn svg {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  transition: transform 0.2s ease;
}
.sr-reaction-btn:hover svg {
  transform: scale(1.1);
}
.sr-reaction-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.sr-reaction-btn.is-active .sr-reaction-label {
  color: #a21caf;
}
.sr-reaction-count {
  min-width: 38px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: #f1f5f9;
  color: #0f172a;
  transition: all 0.2s;
}
.sr-reaction-btn.is-active .sr-reaction-count {
  background: linear-gradient(90deg, #7928CA, #ff0080);
  color: #ffffff;
}

.sr-share-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .sr-share-bar {
    flex-direction: row;
  }
}
.sr-share-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.sr-share-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sr-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.sr-share-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.sr-share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.sr-share-icon-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ============================================================
   POST & PAGE CONTENT - INTERNAL LINKING & KEYWORD HIGHLIGHTS
   ============================================================ */
.sr-post-content,
.entry-content,
.sr-page-content {
  font-size: 14.5px;
  line-height: 1.8;
  color: #334155;
}

.sr-post-content p,
.entry-content p,
.sr-page-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.sr-post-content p:last-child,
.entry-content p:last-child,
.sr-page-content p:last-child {
  margin-bottom: 0;
}

/* Base style for any internal/external link inside post & page content */
.sr-post-content a,
.entry-content a,
.sr-page-content a,
.sr-content-body a,
.sr-detail-box .sr-post-content a,
.sr-detail-box .entry-content a,
.sr-detail-box p a,
article.post .entry-content a,
.sr-internal-link {
  color: #2563eb !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: #93c5fd !important;
  text-decoration-thickness: 1.5px !important;
  text-underline-offset: 3px !important;
  border-radius: 4px;
  padding: 1px 4px;
  margin: -1px -2px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline;
  cursor: pointer !important;
}

/* Cursor Hover Effect: High-contrast color change + soft background glow pill */
.sr-post-content a:hover,
.entry-content a:hover,
.sr-page-content a:hover,
.sr-content-body a:hover,
.sr-detail-box .sr-post-content a:hover,
.sr-detail-box .entry-content a:hover,
.sr-detail-box p a:hover,
article.post .entry-content a:hover,
.sr-internal-link:hover {
  color: #e11d48 !important; /* Vibrant Rose / Magenta highlight */
  background-color: #ffe4e6 !important; /* Soft rose highlight tint */
  text-decoration: underline !important;
  text-decoration-color: #e11d48 !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.15) !important;
}

/* Visited links */
.sr-post-content a:visited,
.entry-content a:visited,
.sr-page-content a:visited {
  color: #7c3aed !important;
  text-decoration-color: #c4b5fd !important;
}

.sr-post-content a:visited:hover,
.entry-content a:visited:hover,
.sr-page-content a:visited:hover {
  color: #e11d48 !important;
  background-color: #ffe4e6 !important;
  text-decoration-color: #e11d48 !important;
}

.sr-post-content a:focus-visible,
.entry-content a:focus-visible,
.sr-page-content a:focus-visible {
  outline: 2px solid #e11d48;
  outline-offset: 2px;
  border-radius: 4px;
}
