/* ========================================
   GUTENBERG BLOCK STYLES
   ======================================== */

/* ========================================
   HEADINGS (h2, h3 in editor)
   ======================================== */
.wp-block-heading h2,
.wp-block-heading h3 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

/* ========================================
   PARAGRAPH
   ======================================== */
.wp-block-paragraph {
  line-height: 1.7;
  margin-bottom: 1.5em;
}

/* ========================================
   LIST (ul, ol)
   ======================================== */
.wp-block-list {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.wp-block-list li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

/* ========================================
   TABLE
   ======================================== */
.wp-block-table {
  margin: 2rem 0;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.wp-block-table thead {
  background: var(--primary-color);
  color: white;
}

.wp-block-table th,
.wp-block-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.wp-block-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.wp-block-table tbody tr:hover {
  background-color: rgba(39, 174, 96, 0.05);
}

/* ========================================
   BUTTONS
   ======================================== */
.wp-block-buttons {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.wp-block-button__link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.wp-block-button__link:hover {
  background: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 58, 82, 0.2);
  color: white;
  text-decoration: none;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--primary-color);
  color: white;
}

/* ========================================
   QUOTE / BLOCKQUOTE
   ======================================== */
.wp-block-quote,
blockquote {
  border-left: 5px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  background: rgba(26, 58, 82, 0.05);
  font-style: italic;
  color: var(--text-dark);
  font-size: 1.1em;
  line-height: 1.7;
}

.wp-block-quote p {
  margin-bottom: 0.5em;
}

.wp-block-quote cite,
.wp-block-quote footer {
  display: block;
  margin-top: 1em;
  font-style: normal;
  font-size: 0.9em;
  color: var(--text-gray);
}

/* ========================================
   IMAGE
   ======================================== */
.wp-block-image {
  margin: 2rem 0;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.wp-block-image.aligncenter {
  text-align: center;
}

.wp-block-image figcaption {
  text-align: center;
  font-style: italic;
  color: var(--text-gray);
  margin-top: 0.75rem;
  font-size: 0.9em;
}

/* ========================================
   SEPARATOR
   ======================================== */
.wp-block-separator {
  border: none;
  border-top: 2px solid var(--border-color);
  margin: 3rem 0;
}

/* ========================================
   CODE
   ======================================== */
.wp-block-code code {
  background: #f8f9fa;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

.wp-block-code {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 2rem 0;
}

.wp-block-code pre {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.5;
}

/* ========================================
   COLUMNS
   ======================================== */
.wp-block-columns {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .wp-block-columns {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.wp-block-column {
  padding: 0;
}

/* ========================================
   RESPONSIVE MOBILE
   ======================================== */
@media (max-width: 768px) {
  .wp-block-buttons {
    flex-direction: column;
  }

  .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  .wp-block-table table {
    font-size: 0.8rem;
  }

  .wp-block-table th,
  .wp-block-table td {
    padding: 0.5rem;
  }
}
