/**
 * reflection.css - Optimized Version
 * The Stoic Wire - Reflection Page Styling
 * Fixed grid layout for desktop with wisdom menu support
 */

/* ============================================ */
/* 1. CSS VARIABLES & BASE STYLES               */
/* ============================================ */

:root {
  --color-paper: #f9f7f1;
  --color-paper-light: #faf9f5;
  --color-ink: #2c2c2c;
  --color-ink-light: #666666;
  --color-accent: #9c6644;
  --color-accent-light: #b8906f;
  --color-accent-dark: #7a513a;
  --font-primary: 'EB Garamond', serif;
  --font-mono: 'Roboto Mono', monospace;
}

/* ============================================ */
/* 2. READING PROGRESS BAR                      */
/* ============================================ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-accent);
  z-index: 1000;
  transition: width 0.1s ease;
}

/* ============================================ */
/* 3. BASE LAYOUT                               */
/* ============================================ */

body {
  background-color: var(--color-paper);
}

.single-reflection {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.full-reflection {
  background-color: var(--color-paper-light);
  border: none;
  padding: 3rem;
  margin: 0 auto;
  max-width: 1000px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* ============================================ */
/* 4. AUTHOR ATTRIBUTION                        */
/* ============================================ */

.author-attribution {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2d9c8;
}

.author-portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2d9c8;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: 0.5px;
}

.author-tagline {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  color: var(--color-ink-light);
  font-style: italic;
  letter-spacing: 0.5px;
}

/* ============================================ */
/* 5. HEADER & VIRTUE BADGE                     */
/* ============================================ */

.reflection-header {
  background-color: #000000;
  color: #ffffff;
  padding: 2rem;
  margin-left: -3rem;
  margin-right: -3rem;
  width: calc(100% + 6rem);
  margin-bottom: 0;
}

.virtue-badge {
  display: inline-block;
  background-color: #a67c52;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 8px 20px;
  border-radius: 4px;
  margin-right: 1rem;
  vertical-align: baseline;
  position: relative;
  top: -0.15em;
  width: auto;
}

.reflection-title {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
  display: inline;
}

/* ============================================ */
/* 6. METADATA ROW                              */
/* ============================================ */

.reflection-metadata {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: #000000;
  color: #ffffff;
  padding: 1rem 2rem;
  margin-left: -3rem;
  margin-right: -3rem;
  width: calc(100% + 6rem);
  margin-top: 0;
  margin-bottom: 0;
}

.metadata-source {
  text-decoration: none;
  color: #ffffff;
  transition: color 0.2s ease;
  cursor: pointer;
}

.metadata-source:hover {
  color: var(--color-accent-light);
}

.metadata-separator {
  margin: 0 0.25rem;
  opacity: 0.5;
  color: #ffffff;
}

.metadata-date {
  color: #ffffff;
}

.reading-time {
  color: #ffffff;
  opacity: 0.8;
}

/* ============================================ */
/* 7. SHARE BUTTONS                             */
/* ============================================ */

.share-buttons-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 16px 0 0 0;
  padding: 0;
  background-color: #000000;
  padding: 12px 2rem;
  margin-left: -3rem;
  margin-right: -3rem;
  width: calc(100% + 6rem);
}

/* Desktop (1024px and up): Hide native share button */
@media (min-width: 1024px) {
  .share-buttons-top .share-btn[data-share="native"] {
    display: none !important;
  }
}

/* Mobile and Tablet (up to 1023px): Hide platform buttons, show only native */
@media (max-width: 1023px) {
  .share-buttons-top .share-btn[data-share="facebook"],
  .share-buttons-top .share-btn[data-share="x"],
  .share-buttons-top .share-btn[data-share="link"] {
    display: none !important;
  }
  
  /* Style native share button on mobile */
  .share-buttons-top .share-btn[data-share="native"] {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .share-buttons-top .share-btn[data-share="native"] .share-icon svg {
    stroke: #2a2a2a;
  }
  
  /* Center the share button on mobile */
  .share-buttons-top {
    justify-content: center;
  }
}

.share-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
  box-sizing: border-box;
}

.share-btn:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 111, 87, 0.3);
}

.share-btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

.share-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.share-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  flex-shrink: 0;
}

.share-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.share-icon svg:not(.x-logo) {
  stroke: white;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-icon svg.x-logo {
  fill: white;
  stroke: none;
  width: 18px;
  height: 18px;
}

.link-icon {
  transform: rotate(-45deg);
}

/* Share tooltips */
.share-tooltip {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a2a2a;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-tooltip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.share-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #2a2a2a;
}

/* Success state for copy link */
.share-btn[data-share="link"].copied .share-tooltip {
  background: #28a745;
}

.share-btn[data-share="link"].copied .share-tooltip::before {
  border-top-color: #28a745;
}

/* ============================================ */
/* 8. VISUAL SECTION & ARTWORK                  */
/* ============================================ */

.reflection-visual {
  position: relative;
  width: calc(100% + 6rem);
  margin-left: -3rem;
  margin-right: -3rem;
  margin-bottom: 0;
  text-align: center;
  overflow: hidden;
  background-color: #000000;
  padding-bottom: 0;
}

.reflection-visual svg {
  max-width: 100%;
  max-height: 450px;
  width: auto;
  height: auto;
  position: relative;
}

.reflection-artwork {
  margin: 0 auto;
  max-width: 100%;
  width: auto;
  position: relative;
  display: inline-block;
  background-color: #000000;
  overflow: hidden;
}

.reflection-artwork figure {
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
}

.image-container {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  display: block;
  overflow: hidden;
}

.reflection-artwork-image {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-height: 80vh;
  object-fit: contain;
}

/* ============================================ */
/* 9. ARTWORK ATTRIBUTION                       */
/* ============================================ */

/* Hide artwork attribution completely */
.artwork-attribution,
.artwork-context-section,
.reflection-artwork figcaption {
  display: none !important;
}

/* ============================================ */
/* 10. ARTICLE SUMMARY                          */
/* ============================================ */

.article-summary {
  background-color: #000000;
  color: #ffffff;
  padding: 0 2rem 2rem 2rem;
  margin-left: -3rem;
  margin-right: -3rem;
  width: calc(100% + 6rem);
  margin-top: 0;
  margin-bottom: 2rem;
}

.article-summary p {
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #ffffff;
  margin: 0;
}

.article-summary p::first-letter {
  font-size: inherit !important;
  float: none !important;
  line-height: inherit !important;
  margin: 0 !important;
  color: inherit !important;
  font-weight: inherit !important;
}

/* ============================================ */
/* 11. BODY TEXT                                */
/* ============================================ */

.reflection-body {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--color-ink);
  margin-bottom: 0.75rem;
}

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

.reflection-body p:last-child {
  margin-bottom: 0;
}

.reflection-body p:first-of-type::first-letter {
  font-size: 4rem;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  margin-top: 0.1rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* ============================================ */
/* 12. SPECIAL CONTENT BLOCKS                   */
/* ============================================ */

.uncomfortable-truth-container {
  background-color: #2c2c2c;
  color: #ffffff;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.uncomfortable-truth-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.uncomfortable-truth-content {
  font-size: 1.2rem;
  line-height: 1.7;
  font-style: italic;
  font-weight: 400;
}

.article-pull-quote {
  position: relative;
  margin: 3rem 0;
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid #e2d9c8;
  border-bottom: 1px solid #e2d9c8;
}

.pull-quote-symbol {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-primary);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.2;
  z-index: 0;
}

.pull-quote-text {
  position: relative;
  font-family: var(--font-primary);
  font-size: 1.75rem;
  line-height: 1.4;
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent);
  max-width: 80%;
  margin: 0 auto;
  z-index: 1;
}

/* ============================================ */
/* 13. THEME & SHARE ACTIONS                    */
/* ============================================ */

.theme-action-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 0.25rem;
  padding: 0.5rem 0;
  width: 100%;
}

.theme-tag-link,
.share-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 20px;
  background: transparent;
  color: var(--color-accent);
  border-radius: 4px;
  border: 1px solid var(--color-accent);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1.5;
  box-sizing: border-box;
  letter-spacing: 0.5px;
  text-transform: none;
}

.theme-tag-link {
  font-style: italic;
  font-size: 1rem;
  border: none;
  padding: 6px 12px;
  color: var(--color-accent);
  height: auto;
  width: auto;
  max-width: 90%;
  text-align: center;
}

.theme-tag-link:hover {
  background: transparent;
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.theme-tag-link::after {
  display: none;
}

.share-subtle {
  gap: 8px;
  height: 44px;
}

.share-subtle:hover {
  background: var(--color-accent);
  color: #fff;
}

.share-subtle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.share-subtle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(139, 111, 87, 0.3);
}

/* ============================================ */
/* 14. ENDING VISUAL                            */
/* ============================================ */

.reflection-ending-visual {
  width: 100%;
  height: 80px;
  margin: 1rem 0 0.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reflection-ending-visual svg {
  max-width: 100%;
  height: auto;
}

/* ============================================ */
/* 15. RELATED REFLECTIONS                      */
/* ============================================ */

.related-reflections {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #e2d9c8;
}

.related-reflections h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: var(--color-ink);
  position: relative;
}

.related-reflections h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 1rem auto 0;
}

.related-reflections-placeholder {
  height: 50px;
  margin-top: 4rem;
}

.related-reflections-loading,
.related-reflections-error {
  text-align: center;
  padding: 2rem;
  color: var(--color-ink-light);
  animation: fadeIn 0.3s ease-in;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.related-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  animation: slideUp 0.4s ease-out;
  animation-fill-mode: both;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.related-card:nth-child(2) { animation-delay: 0.1s; }
.related-card:nth-child(3) { animation-delay: 0.2s; }
.related-card:nth-child(4) { animation-delay: 0.3s; }

.related-card-visual {
  height: 200px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

.related-card-content {
  padding: 1.5rem;
}

.related-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-ink-light);
}

.related-card-meta .source {
  background-color: var(--color-accent);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  order: 1;
}

.related-card-meta .date {
  color: var(--color-accent);
  order: 2;
}

.related-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--color-ink);
}

.related-card .preview {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-ink-light);
  margin-bottom: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ============================================ */
/* 16. ANIMATIONS                               */
/* ============================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 0.7; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================ */
/* 17. TABLET LAYOUT (769px - 1023px)          */
/* ============================================ */

@media (min-width: 769px) and (max-width: 1023px) {
  .single-reflection {
    padding: 0;
  }
  
  .full-reflection {
    padding: 0;
    box-shadow: none;
    max-width: 100%;
  }
  
  /* Black background sections */
  .reflection-visual,
  .reflection-header,
  .reflection-metadata,
  .article-summary {
    background-color: #000000;
    margin: 0;
    width: 100%;
  }
  
  .reflection-visual {
    padding: 0;
  }
  
  .reflection-header {
    padding: 2rem 3rem;
    color: #ffffff;
  }
  
  .reflection-title {
    color: #ffffff;
  }
  
  .reflection-metadata {
    padding: 1rem 3rem;
    color: #ffffff;
  }
  
  .metadata-source,
  .metadata-separator,
  .metadata-date,
  .reading-time {
    color: #ffffff;
  }
  
  .metadata-source:hover {
    color: var(--color-accent-light);
  }
  
  /* Share buttons on tablet */
  .share-buttons-top {
    background-color: #000000;
    padding: 12px 3rem 16px 3rem;
    margin: 0;
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
  }
  
  .share-buttons-top .share-btn {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .share-buttons-top .share-btn:hover,
  .share-buttons-top .share-btn:active {
    background: #f0f0f0;
  }
  
  .share-buttons-top .share-icon svg:not(.x-logo) {
    stroke: #2a2a2a;
  }
  
  .share-buttons-top .share-icon svg.x-logo {
    fill: #2a2a2a;
  }
  
  .article-summary {
    padding: 1.5rem 3rem 2rem 3rem;
    color: #ffffff;
  }
  
  .article-summary p {
    color: #ffffff;
  }
  
  /* Paper background sections */
  .author-attribution {
    padding: 2rem 3rem;
    margin: 0;
    background-color: var(--color-paper-light);
  }
  
  .reflection-body {
    padding: 0 3rem;
    background-color: var(--color-paper-light);
  }
  
  .theme-action-container {
    padding: 2rem 3rem;
    background-color: var(--color-paper-light);
  }
  
  .reflection-ending-visual {
    padding: 0 3rem;
    background-color: var(--color-paper-light);
  }
  
  .related-reflections {
    padding: 3rem;
    background-color: var(--color-paper-light);
  }
}

/* ============================================ */
/* 18. DESKTOP LAYOUT (1024px+)                */
/* ============================================ */

@media (min-width: 1024px) {
  body {
    background-color: #faf9f5;
  }
  
  .single-reflection {
    padding: 0;
    max-width: 100%;
  }
  
  /* Grid layout */
  .full-reflection {
    max-width: 100%;
    padding: 0;
    background-color: #ffffff;
    box-shadow: none;
    border-radius: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
  }
  
  /* Grid positioning */
  .reflection-visual {
    grid-column: 1;
    grid-row: 1 / span 5;
    width: 100%;
    height: 100%;
    margin: 0;
    position: relative;
    background-color: #f8f8f8;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
  }
  
  .reflection-header {
    grid-column: 2;
    grid-row: 1;
    background: transparent;
    color: var(--color-ink);
    padding: 60px 80px 0 80px;
    margin: 0;
    width: 100%;
    text-align: left;
    align-self: end;
  }
  
  .reflection-metadata {
    grid-column: 2;
    grid-row: 2;
    background: transparent;
    color: var(--color-ink);
    padding: 0 80px;
    margin: 1rem 0 0 0;
    width: 100%;
    justify-content: flex-start;
    font-size: 0.85rem;
    opacity: 0.9;
  }
  
  .share-buttons-top {
    grid-column: 2;
    grid-row: 3;
    padding: 0 80px;
    margin: 16px 0 0 0;
    justify-content: flex-start;
    background-color: transparent;
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
  }
  
  .article-summary {
    grid-column: 2;
    grid-row: 4;
    background: transparent;
    color: var(--color-ink);
    padding: 0 80px;
    margin: 1.5rem 0 0 0;
    width: 100%;
  }
  
  /* Full width content */
  .author-attribution {
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 60px auto 2rem;
    padding: 0 80px 2rem;
    border-bottom: 1px solid #e2d9c8;
    background-color: #ffffff;
  }
  
  .reflection-body {
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 80px;
    font-size: 1.25rem;
    line-height: 1.8;
    background-color: #ffffff;
  }
  
  .reflection-ending-visual {
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 80px;
    background-color: #ffffff;
  }
  
  .theme-action-container {
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 80px;
    background-color: #ffffff;
  }
  
  .wisdom-sections {
    grid-column: 1 / -1;
    background-color: #ffffff;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  /* Desktop-specific styles */
  .reflection-artwork {
    box-shadow: none;
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
  }
  
  .reflection-artwork figure {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .reflection-artwork-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: none;
  }
  
  .virtue-badge {
    font-size: 1.2rem;
    padding: 3px 10px;
    margin-bottom: 1rem;
    margin-left: 0;
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    letter-spacing: 1.5px;
  }
  
  .reflection-title {
    color: var(--color-ink);
    font-size: 2.5rem;
    display: block;
    line-height: 1.15;
    font-weight: 400;
    margin-top: 0;
  }
  
  .metadata-source {
    color: var(--color-ink);
    text-decoration: none;
    margin-left: 0;
  }
  
  .metadata-source:hover {
    color: var(--color-accent);
    text-decoration: underline;
  }
  
  .metadata-separator,
  .metadata-date,
  .reading-time {
    color: var(--color-ink);
  }
  
  .article-summary p {
    color: var(--color-ink-light);
    font-size: 1.5rem;
    line-height: 1.65;
    opacity: 0.9;
    text-align: left;
  }
  
  .reflection-body p:first-of-type::first-letter {
    font-size: 3.5rem;
  }
}

@media (min-width: 1400px) {
  .reflection-header,
  .reflection-metadata,
  .share-buttons-top,
  .article-summary {
    padding-left: 100px;
    padding-right: 100px;
  }
  
  .author-attribution,
  .reflection-body,
  .reflection-ending-visual,
  .theme-action-container {
    max-width: 1000px;
    padding-left: 100px;
    padding-right: 100px;
  }
  
  .reflection-title {
    font-size: 2.75rem;
  }
}

/* ============================================ */
/* 19. MOBILE LAYOUT (up to 768px)             */
/* ============================================ */

@media (max-width: 768px) {
  body {
    background-color: var(--color-paper-light);
  }
  
  .single-reflection {
    padding: 0;
    background-color: transparent;
  }
  
  .full-reflection {
    padding: 0;
    box-shadow: none;
    background-color: var(--color-paper-light);
    color: var(--color-ink);
    overflow: visible;
    display: block;
  }
  
  /* Mobile share button at top */
  .mobile-share-top {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background-color: var(--color-paper-light);
    margin-bottom: 0;
  }
  
  .mobile-share-top .share-subtle {
    width: auto;
    padding: 10px 24px;
    font-size: 1rem;
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
  }
  
  .mobile-share-top .share-subtle:active {
    background: var(--color-accent);
    color: #fff;
    transform: scale(0.98);
  }
  
  .mobile-share-top .share-subtle svg {
    width: 18px;
    height: 18px;
  }
  
  /* Black background sections */
  .reflection-visual,
  .reflection-header,
  .reflection-metadata,
  .share-buttons-top,
  .article-summary {
    background-color: #000000;
  }
  
  /* Visual/artwork section */
  .reflection-visual {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #000000;
  }
  
  .reflection-artwork-image {
    max-height: 70vh;
    max-width: 100%;
  }
  
  /* Header section */
  .reflection-header {
    padding: 1rem 2rem 0.5rem 2rem;
    margin: 0;
    width: 100%;
    background-color: #000000;
    color: #ffffff;
  }
  
  .virtue-badge {
    font-size: 1rem;
    padding: 2px 10px;
    letter-spacing: 1.5px;
    background-color: #a67c52;
    color: #fff;
  }
  
  .reflection-title {
    font-size: 1.8rem;
    color: #ffffff;
  }
  
  /* Metadata section */
  .reflection-metadata {
    padding: 0.5rem 2rem;
    margin: 0;
    width: 100%;
    background-color: #000000;
    color: #ffffff;
  }
  
  .metadata-date,
  .reading-time {
    font-size: 0.6rem;
  }
  
  /* Share buttons container - with white background */
  .share-buttons-top {
    margin: 0;
    padding: 8px 2rem 12px 2rem;
    background-color: #000000;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
  }
  
  .share-buttons-top .share-btn {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  
  .share-buttons-top .share-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
  }
  
  .share-buttons-top .share-icon svg:not(.x-logo) {
    stroke: #2a2a2a;
    fill: none;
  }
  
  .share-buttons-top .share-icon svg.x-logo {
    fill: #2a2a2a;
  }
  
  .share-tooltip {
    background: white;
    color: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .share-tooltip::before {
    border-top-color: white;
  }
  
  /* Article summary */
  .article-summary {
    margin: 0;
    padding: 1.25rem 2rem 2rem 2rem;
    width: 100%;
    background-color: #000000;
    color: #ffffff;
  }
  
  /* Author attribution - paper background starts */
  .author-attribution {
    display: flex;
    margin: 0;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2d9c8;
    background-color: var(--color-paper-light);
    color: var(--color-ink);
    width: 100%;
  }
  
  .author-portrait {
    width: 80px;
    height: 80px;
    border: 2px solid #e2d9c8;
  }
  
  .author-name {
    font-size: 1.2rem;
    color: var(--color-ink);
  }
  
  .author-tagline {
    font-size: 1.1rem;
    color: var(--color-ink-light);
  }
  
  /* Reflection body */
  .reflection-body {
    font-size: 1.2rem;
    padding: 2rem;
    color: var(--color-ink);
    background-color: var(--color-paper-light);
    margin: 0;
    width: 100%;
  }
  
  .reflection-body p:first-of-type::first-letter {
    font-size: 3rem;
    margin-right: 0.3rem;
    color: var(--color-accent);
  }
  
  /* Ending visual */
  .reflection-ending-visual {
    height: 70px;
    margin: 0.75rem 0 0.25rem;
    background-color: var(--color-paper-light);
  }
  
  /* Related sections */
  .related-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .related-reflections h2 {
    font-size: 1.75rem;
  }
  
  .related-card-visual {
    height: 150px;
  }
  
  .related-card h3 {
    font-size: 1.25rem;
  }
  
  .related-card .preview {
    font-size: 1rem;
  }
}

/* Desktop and tablet: hide mobile share button */
@media (min-width: 769px) {
  .mobile-share-top {
    display: none !important;
  }
}