/**
 * PromptTick Site Editor — Frontend Node Styles
 * Lightweight styles for server-rendered builder nodes and template parts.
 */

/* Builder Canvas Wrapper */
.ptse-builder-canvas {
  width: 100%;
  min-height: 50vh;
  position: relative;
  box-sizing: border-box;
}

/* Section */
.ptse-section {
  width: 100%;
  position: relative;
  box-sizing: border-box;
  padding: 60px 0;
}

/* Container */
.ptse-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Columns Row / Container */
.ptse-columns-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Individual Column */
.ptse-column {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-width: 0;
  gap: 20px;
}

/* Headings */
.ptse-heading {
  font-family: var(--pt-font-heading, 'Syne', sans-serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--pt-text, #f3eeff);
  letter-spacing: -0.02em;
}

h1.ptse-heading {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
}

h2.ptse-heading {
  font-size: clamp(26px, 4vw, 40px);
}

h3.ptse-heading {
  font-size: clamp(20px, 3vw, 28px);
}

h4.ptse-heading {
  font-size: clamp(18px, 2.5vw, 22px);
}

/* Body Text Block */
.ptse-text {
  font-family: var(--pt-font-body, 'DM Sans', sans-serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--pt-muted, #c4b8e0);
  margin: 0 0 16px;
}

.ptse-text p:last-child {
  margin-bottom: 0;
}

/* Button */
.ptse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--pt-radius-btn, 10px);
  font-family: var(--pt-font-body, 'DM Sans', sans-serif);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Spacer */
.ptse-spacer {
  width: 100%;
  clear: both;
}

/* Divider */
.ptse-divider {
  width: 100%;
  height: 1px;
  background: var(--pt-border, rgba(255, 255, 255, 0.12));
  border: none;
  margin: 24px 0;
}

/* Custom Header & Footer Enhancements */
.ptse-custom-header {
  position: relative;
  z-index: 100;
}

.ptse-custom-footer {
  position: relative;
  z-index: 90;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .ptse-section {
    padding: 40px 0;
  }

  .ptse-container {
    padding-left: 16px;
    padding-right: 16px;
    gap: 20px;
  }

  .ptse-column {
    flex-basis: 100% !important;
  }
}
