/* BOOKROAR REVIEW TIPS - Custom Responsive Page Layout stylesheet */

/* Reset global overflow constraints that block position: sticky on nested containers */
html,
body {
  overflow: visible !important;
  overflow-x: visible !important;
}

.rt-main-wrapper {
  background-color: #f8fafc; /* bg-slate-50 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.rt-hero {
  position: relative;
  background-color: #f8fafc; /* match the page background */
  padding: 2rem 1rem 1rem;
  border-bottom: 1px solid #f1f5f9; /* border-slate-100 */
}

@media (min-width: 640px) {
  .rt-hero {
    padding: 2rem 1rem 1rem;
  }
}

.rt-hero-container {
  max-width: 56rem; /* max-w-4xl */
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.rt-hero-title {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 800;
  color: var(--color-brand-600, #e11d48);
  letter-spacing: -0.025em; /* tracking-tight */
  line-height: 1.2;
  margin: 0;
}

@media (min-width: 640px) {
  .rt-hero-title {
    font-size: 2.25rem; /* sm:text-4xl */
  }
}

.rt-hero-text {
  margin: 0.75rem auto 0; /* mt-3 sm:mt-4 */
  font-size: 0.875rem; /* text-sm */
  color: #475569; /* text-slate-600 */
  max-width: 42rem; /* max-w-2xl */
  line-height: 1.5;
}

@media (min-width: 640px) {
  .rt-hero-text {
    font-size: 1rem; /* sm:text-base */
    margin-top: 1rem;
  }
}

/* Page Layout Grid */
.rt-container {
  max-width: 80rem; /* max-w-7xl */
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .rt-container {
    grid-template-columns: 1fr 3fr; /* lg:grid-cols-4 col-span-1 lg:col-span-3 */
    gap: 3rem; /* lg:gap-12 */
    padding: 3rem 1.5rem;
  }
}
@media (max-width: 1024px) {
  .rt-container {
    justify-items: center;
  }
}

/* Sidebar Menu */
.rt-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .rt-sidebar {
    display: block;
  }
}

.rt-sidebar-menu {
  position: -webkit-sticky;
  position: sticky;
  top: 7rem; /* sticky offset */
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rt-sidebar-title {
  font-size: 0.75rem; /* text-xs */
  font-weight: 700;
  color: #94a3b8; /* text-slate-400 */
  text-transform: uppercase;
  letter-spacing: 0.05em; /* tracking-wider */
  padding-left: 0.75rem;
  margin: 0 0 0.75rem 0;
}

.rt-sidebar-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;
  border-radius: 0.5rem; /* rounded-lg */
  text-decoration: none;
  transition: all 0.2s ease;
  color: #475569; /* text-slate-600 */
}

.rt-sidebar-link:hover {
  background-color: #f1f5f9; /* hover:bg-slate-100 */
  color: var(--color-brand-600, #e11d48); /* hover:text-rose-600 */
}

.rt-sidebar-link.active {
  color: #be123c; /* text-rose-700 */
  background-color: rgba(254, 242, 242, 0.8); /* bg-rose-50/80 */
}

/* Content Area styling */
.rt-content {
  max-width: 48rem; /* max-w-3xl */
  display: flex;
  flex-direction: column;
  gap: 3rem; /* space-y-12 sm:space-y-16 */
}

@media (min-width: 640px) {
  .rt-content {
    gap: 4rem;
  }
}

/* Section styling */
.rt-section {
  scroll-margin-top: 6rem; /* scroll-mt-24 */
  display: flex;
  flex-direction: column;
  gap: 1rem; /* space-y-4 */
}

@media (min-width: 640px) {
  .rt-section {
    gap: 1.5rem; /* space-y-6 */
  }
}

.rt-section-title {
  font-size: 1.125rem; /* text-lg */
  font-weight: 700;
  color: #0f172a; /* text-slate-900 */
  display: flex;
  align-items: center;
  gap: 0.625rem; /* gap-2.5 */
  margin: 0;
}

@media (min-width: 640px) {
  .rt-section-title {
    font-size: 1.25rem; /* sm:text-xl */
  }
}

/* Bullet markers */
.rt-bullet {
  width: 0.375rem; /* w-1.5 */
  height: 1.25rem; /* h-5 */
  border-radius: 9999px;
  flex-shrink: 0;
}

.rt-bullet-red {
  background-color: var(--color-brand-600, #e11d48); /* bg-rose-500 */
}

.rt-bullet-amber {
  background-color: #f59e0b; /* bg-amber-500 */
}

.rt-bullet-indigo {
  background-color: #6366f1; /* bg-indigo-500 */
}

/* Cards Wrapper Group */
.rt-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Shared Card styles */
.rt-card-base {
  border-radius: 0.75rem; /* rounded-xl */
  padding: 1rem; /* p-4 */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
  transition: all 0.2s ease-in-out;
}

@media (min-width: 640px) {
  .rt-card-base {
    padding: 1.25rem; /* sm:p-5 */
  }
}

/* Main Card Hover highlights */
.rt-card-hoverable:hover {
  border-color: var(--color-brand-600, #e11d48) !important; /* hover:border-rose-500 */
  box-shadow: 0 0 0 1px var(--color-brand-600, #e11d48) !important; /* hover:ring-1 hover:ring-rose-500 */
}

/* Card Types */
.rt-card-neutral {
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.6); /* border-slate-200/60 */
}

.rt-card-success {
  background-color: #f1f5f9; /* bg-slate-100 */
  border: 1px solid #e2e8f0; /* border-slate-200 */
}

.rt-card-warning {
  background-color: rgba(254, 243, 199, 0.4); /* bg-amber-50/40 */
  border: 1px solid #fde68a; /* border-amber-200 */
}

.rt-card-danger {
  background-color: rgba(254, 242, 242, 0.4); /* bg-rose-50/40 */
  border: 1px solid #fecaca; /* border-rose-200 */
}

/* Card Typography */
.rt-card-title-dark {
  font-size: 0.875rem; /* text-sm */
  font-weight: 700;
  color: #0f172a; /* text-slate-900 */
  margin: 0 0 0.25rem 0;
}

.rt-card-text-dark {
  font-size: 0.75rem; /* text-xs */
  color: #475569; /* text-slate-600 */
  line-height: 1.625; /* leading-relaxed */
  margin: 0;
}

@media (min-width: 640px) {
  .rt-card-text-dark {
    font-size: 0.875rem; /* sm:text-sm */
  }
}

.rt-card-title-warning {
  font-size: 0.875rem; /* text-sm */
  font-weight: 700;
  color: #78350f; /* text-amber-900 */
  margin: 0 0 0.25rem 0;
}

.rt-card-text-warning {
  font-size: 0.75rem; /* text-xs */
  color: #92400e; /* text-amber-800 */
  line-height: 1.625; /* leading-relaxed */
  margin: 0;
}

@media (min-width: 640px) {
  .rt-card-text-warning {
    font-size: 0.875rem; /* sm:text-sm */
  }
}

.rt-card-title-danger {
  font-size: 0.875rem; /* text-sm */
  font-weight: 700;
  color: #881337; /* text-rose-900 */
  margin: 0 0 0.25rem 0;
}

.rt-card-text-danger {
  font-size: 0.75rem; /* text-xs */
  color: #9f1239; /* text-rose-800 */
  line-height: 1.625; /* leading-relaxed */
  margin: 0;
}

@media (min-width: 640px) {
  .rt-card-text-danger {
    font-size: 0.875rem; /* sm:text-sm */
  }
}

/* Amazon Algorithm Notice Box explicitly styled */
.rt-notice-box {
  background: var(--color-brand-600, #e11d48);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem; /* rounded-xl */
  padding: 1rem; /* p-4 */
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.15); /* shadow-sm */
  transition: all 0.2s ease-in-out;
  color: #ffffff;
}

@media (min-width: 640px) {
  .rt-notice-box {
    padding: 1.5rem; /* sm:p-6 */
  }
}

.rt-notice-box:hover {
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 10px 20px rgba(190, 18, 60, 0.25) !important;
}

.rt-notice-header {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* gap-2 */
  margin-bottom: 0.75rem; /* mb-3 */
}

/* Ping Indicator */
.rt-ping-wrapper {
  position: relative;
  display: flex;
  height: 0.5rem; /* h-2 */
  width: 0.5rem; /* w-2 */
}

.rt-ping-ring {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: #ffffff;
  opacity: 0.6;
  animation: rt-ping-anim 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.rt-ping-dot {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  height: 0.5rem; /* h-2 */
  width: 0.5rem; /* w-2 */
  background-color: #ffffff;
}

@keyframes rt-ping-anim {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.rt-notice-tag {
  font-size: 0.6875rem; /* text-[11px] */
  font-weight: 700;
  letter-spacing: 0.05em; /* tracking-wider */
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

@media (min-width: 640px) {
  .rt-notice-tag {
    font-size: 0.75rem; /* sm:text-xs */
  }
}

.rt-notice-intro {
  font-size: 0.75rem; /* text-xs */
  color: #ffe4e6; /* light pink/ice-white text for readability */
  line-height: 1.625; /* leading-relaxed */
  margin: 0 0 1rem 0; /* mb-4 */
}

@media (min-width: 640px) {
  .rt-notice-intro {
    font-size: 0.875rem; /* sm:text-sm */
  }
}

/* Warning Rules Grid */
.rt-notice-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem; /* gap-2 */
}

@media (min-width: 640px) {
  .rt-notice-grid {
    grid-template-columns: repeat(2, 1fr); /* sm:grid-cols-2 */
  }
}

.rt-notice-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem; /* gap-2 */
  background-color: rgba(0, 0, 0, 0.12); /* clean semi-transparent dark crimson overlay */
  padding: 0.5rem 0.75rem; /* px-3 py-2 */
  border-radius: 0.5rem; /* rounded-lg */
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem; /* text-xs */
  color: #ffffff;
  font-weight: 500;
  line-height: 1.4;
}

.rt-notice-item-dot {
  color: #ffffff; /* white dot to match */
  font-weight: bold;
  flex-shrink: 0;
}

.rt-notice-footer {
  margin-top: 1rem; /* mt-4 */
  padding-top: 1rem; /* pt-4 */
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.rt-notice-footer-text {
  font-size: 0.75rem; /* text-xs */
  color: #ffe4e6;
  line-height: 1.625; /* leading-relaxed */
  margin: 0;
}

@media (min-width: 640px) {
  .rt-notice-footer-text {
    font-size: 0.875rem; /* sm:text-sm */
  }
}

/* Ideas styling section 3 */
.rt-include-header {
  border-bottom: 1px solid #e2e8f0; /* border-slate-200 */
  padding-bottom: 0.75rem; /* pb-3 */
  margin-bottom: 1rem;
}

.rt-ideas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem; /* gap-4 */
}

@media (min-width: 768px) {
  .rt-ideas-grid {
    grid-template-columns: repeat(2, 1fr); /* md:grid-cols-2 */
  }
}

/* Dual Column Spanning for bigger screens */
@media (min-width: 768px) {
  .rt-span-cols-2 {
    grid-column: span 2; /* md:col-span-2 */
  }
}
