/**
 * Content blocks — shared look for front (.entry-content) and editor.
 * Editor loads this file via add_editor_style; front via enqueue.
 */

.entry-content,
.editor-styles-wrapper {
  --content-rose: #f472b6;
  --content-rose-deep: #be185d;
  --content-rose-soft: #fbcfe8;
  --content-ink: #161015;
  --content-muted: #5c4a52;
  color: var(--content-ink);
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

.entry-content > *:first-child,
.editor-styles-wrapper .is-root-container > *:first-child {
  margin-top: 0;
}

.entry-content > * + *,
.editor-styles-wrapper .block-editor-block-list__layout > * + * {
  margin-top: 1.25rem;
}

/* Headings */
.entry-content :is(h1, h2, h3, h4, h5, h6),
.editor-styles-wrapper :is(h1, h2, h3, h4, h5, h6),
.editor-styles-wrapper .wp-block-heading {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--content-ink);
}

.entry-content h1, .editor-styles-wrapper h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.entry-content h2, .editor-styles-wrapper h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.entry-content h3, .editor-styles-wrapper h3 { font-size: 1.35rem; }
.entry-content h4, .editor-styles-wrapper h4 { font-size: 1.15rem; }

/* Paragraph / links */
.entry-content p,
.editor-styles-wrapper p {
  color: var(--content-muted);
}

.entry-content a:not(.wp-block-button__link):not(.glass-btn):not(.glass-cta),
.editor-styles-wrapper a:not(.wp-block-button__link) {
  color: var(--content-rose-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Lists */
.entry-content :is(ul, ol),
.editor-styles-wrapper :is(ul, ol) {
  padding-left: 1.25rem;
  color: var(--content-muted);
}

.entry-content li + li,
.editor-styles-wrapper li + li {
  margin-top: 0.35rem;
}

/* Quote / pullquote */
.entry-content .wp-block-quote,
.editor-styles-wrapper .wp-block-quote {
  margin: 1.75rem 0;
  padding: 1.15rem 1.35rem;
  border: 0;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 36px rgba(22, 16, 21, 0.06);
}

.entry-content .wp-block-quote p,
.editor-styles-wrapper .wp-block-quote p {
  font-size: 1.15rem;
  color: var(--content-ink);
  font-style: italic;
}

.entry-content .wp-block-quote cite,
.editor-styles-wrapper .wp-block-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--content-rose-deep);
}

.entry-content .wp-block-pullquote,
.editor-styles-wrapper .wp-block-pullquote {
  border: 0;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.7), rgba(251, 207, 232, 0.35));
}

.entry-content .wp-block-pullquote blockquote,
.editor-styles-wrapper .wp-block-pullquote blockquote {
  margin: 0;
}

.entry-content .wp-block-pullquote p,
.editor-styles-wrapper .wp-block-pullquote p {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--content-ink);
}

/* Code / pre / verse */
.entry-content :is(.wp-block-code, .wp-block-preformatted, pre),
.editor-styles-wrapper :is(.wp-block-code, .wp-block-preformatted, pre) {
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  background: #1a1216;
  color: #ffe4f1;
  font-size: 0.9rem;
  overflow-x: auto;
}

.entry-content .wp-block-verse,
.editor-styles-wrapper .wp-block-verse {
  font-family: "Sora", sans-serif;
  white-space: pre-wrap;
  color: var(--content-muted);
}

/* Images / gallery / cover / media-text */
.entry-content :is(.wp-block-image, .wp-block-gallery) img,
.editor-styles-wrapper :is(.wp-block-image, .wp-block-gallery) img {
  border-radius: 1.15rem;
}

.entry-content .wp-block-image figcaption,
.entry-content .wp-block-gallery figcaption,
.editor-styles-wrapper .wp-block-image figcaption,
.editor-styles-wrapper .wp-block-gallery figcaption {
  font-size: 0.85rem;
  color: var(--content-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.entry-content .wp-block-gallery,
.editor-styles-wrapper .wp-block-gallery {
  gap: 0.75rem;
}

.entry-content .wp-block-cover,
.editor-styles-wrapper .wp-block-cover {
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 280px;
}

.entry-content .wp-block-cover .wp-block-cover-text,
.editor-styles-wrapper .wp-block-cover .wp-block-cover-text {
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.entry-content .wp-block-media-text,
.editor-styles-wrapper .wp-block-media-text {
  border-radius: 1.35rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.entry-content .wp-block-media-text__content,
.editor-styles-wrapper .wp-block-media-text__content {
  padding: 1.25rem 1.5rem;
}

/* Buttons */
.entry-content .wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link {
  border-radius: 999px !important;
  padding: 0.8rem 1.25rem !important;
  background: var(--content-rose) !important;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 10px 28px color-mix(in srgb, var(--content-rose) 32%, transparent);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--content-rose-deep) !important;
  border: 2px solid var(--content-rose) !important;
  box-shadow: none;
}

/* Columns / group / separator / spacer */
.entry-content .wp-block-columns,
.editor-styles-wrapper .wp-block-columns {
  gap: 1.25rem;
}

.entry-content .wp-block-group,
.editor-styles-wrapper .wp-block-group {
  border-radius: 1.35rem;
}

.entry-content .wp-block-group.has-background,
.editor-styles-wrapper .wp-block-group.has-background {
  padding: 1.35rem 1.5rem;
}

.entry-content .wp-block-separator,
.editor-styles-wrapper .wp-block-separator {
  border: 0;
  border-top: 1px solid rgba(22, 16, 21, 0.12);
  width: 100%;
}

.entry-content .wp-block-separator.is-style-dots,
.editor-styles-wrapper .wp-block-separator.is-style-dots {
  border: 0;
  text-align: center;
  color: var(--content-rose);
}

/* Table */
.entry-content .wp-block-table table,
.editor-styles-wrapper .wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
}

.entry-content .wp-block-table :is(th, td),
.editor-styles-wrapper .wp-block-table :is(th, td) {
  border: 1px solid rgba(22, 16, 21, 0.1);
  padding: 0.75rem 0.9rem;
}

.entry-content .wp-block-table th,
.editor-styles-wrapper .wp-block-table th {
  background: rgba(251, 207, 232, 0.45);
  font-family: "Sora", sans-serif;
  font-weight: 600;
  text-align: left;
}

/* Details / accordion */
.entry-content .wp-block-details,
.editor-styles-wrapper .wp-block-details,
.entry-content details,
.editor-styles-wrapper details {
  border-radius: 1rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.entry-content .wp-block-details summary,
.editor-styles-wrapper .wp-block-details summary,
.entry-content details summary,
.editor-styles-wrapper details summary {
  font-weight: 600;
  cursor: pointer;
  font-family: "Sora", sans-serif;
}

/* File / audio / video */
.entry-content .wp-block-file a:not(.wp-block-file__button),
.editor-styles-wrapper .wp-block-file a:not(.wp-block-file__button) {
  color: var(--content-rose-deep);
}

.entry-content .wp-block-file__button,
.editor-styles-wrapper .wp-block-file__button {
  border-radius: 999px !important;
  background: var(--content-rose) !important;
}

.entry-content :is(.wp-block-audio, .wp-block-video, .wp-block-embed),
.editor-styles-wrapper :is(.wp-block-audio, .wp-block-video, .wp-block-embed) {
  margin: 1.5rem 0;
}

.entry-content .wp-block-embed__wrapper,
.editor-styles-wrapper .wp-block-embed__wrapper {
  border-radius: 1.25rem;
  overflow: hidden;
}

/* Social links */
.entry-content .wp-block-social-links,
.editor-styles-wrapper .wp-block-social-links {
  gap: 0.65rem;
}

.entry-content .wp-block-social-links .wp-block-social-link,
.editor-styles-wrapper .wp-block-social-links .wp-block-social-link {
  border-radius: 999px;
}

/* Classic / HTML */
.entry-content .wp-block-html,
.editor-styles-wrapper .wp-block-html {
  border-radius: 1rem;
}

/* Alignments */
.entry-content .alignwide {
  max-width: 1120px;
}

.entry-content .alignfull {
  max-width: none;
  width: 100%;
}

/* Accordion */
.entry-content .wp-block-accordion,
.editor-styles-wrapper .wp-block-accordion {
  display: grid;
  gap: 0.65rem;
}

.entry-content .wp-block-accordion-item,
.editor-styles-wrapper .wp-block-accordion-item {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.entry-content .wp-block-accordion-heading__toggle,
.editor-styles-wrapper .wp-block-accordion-heading__toggle {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1.1rem;
  background: transparent;
  border: 0;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.entry-content .wp-block-accordion-panel,
.editor-styles-wrapper .wp-block-accordion-panel {
  padding: 0 1.1rem 1rem;
}

.entry-content .post-nav-links,
.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  font-weight: 600;
}

.page-links a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration: none !important;
}
