/**
 * Industrial Energy Framework — Shared Components
 */

/* A. Button */
.rpt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rpt-space-base);
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--rpt-radius-default);
  font-family: var(--rpt-font-body);
  font-size: var(--rpt-label-bold-size);
  font-weight: var(--rpt-label-bold-weight);
  line-height: var(--rpt-label-bold-line);
  letter-spacing: var(--rpt-label-bold-letter);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--rpt-transition-normal);
  border: none;
}

.rpt-btn-primary {
  background: var(--rpt-industrial-navy);
  color: var(--rpt-on-primary);
  border: 1px solid var(--rpt-industrial-navy);
}

.rpt-btn-primary:hover,
.rpt-btn-primary:focus {
  background: var(--rpt-primary);
  color: var(--rpt-on-primary);
  border-color: var(--rpt-primary);
}

.rpt-btn-secondary {
  background: transparent;
  color: var(--rpt-industrial-navy);
  border: 1px solid var(--rpt-industrial-navy);
}

.rpt-btn-secondary:hover,
.rpt-btn-secondary:focus {
  background: var(--rpt-industrial-navy);
  color: var(--rpt-on-primary);
}

.rpt-btn-green {
  background: var(--rpt-electric-green);
  color: var(--rpt-on-primary);
  border: 1px solid var(--rpt-electric-green);
}

.rpt-btn-green:hover,
.rpt-btn-green:focus {
  background: var(--rpt-secondary);
  border-color: var(--rpt-secondary);
  color: var(--rpt-on-secondary);
}

/* Quote CTA — hot sale red (header, footer, sidebar) */
.rpt-quote-cta {
  background: var(--rpt-hot-sale);
  color: var(--rpt-on-hot-sale);
  border: 1px solid var(--rpt-hot-sale);
}

.rpt-quote-cta:hover,
.rpt-quote-cta:focus {
  background: var(--rpt-hot-sale-hover);
  border-color: var(--rpt-hot-sale-hover);
  color: var(--rpt-on-hot-sale);
}

/* B. Card */
.rpt-card {
  background: var(--rpt-surface-container-lowest);
  border: var(--rpt-border-light);
  border-radius: var(--rpt-radius-default);
  padding: 10px;
}

.rpt-card-header {
  font-family: var(--rpt-font-body);
  font-size: var(--rpt-label-bold-size);
  line-height: var(--rpt-label-bold-line);
  font-weight: var(--rpt-label-bold-weight);
  letter-spacing: var(--rpt-label-bold-letter);
  text-transform: uppercase;
  color: var(--rpt-on-surface-variant);
  margin-bottom: 12px;
}

.rpt-card-body {
  color: var(--rpt-on-surface);
}

.rpt-card-footer {
  margin-top: var(--rpt-stack-md);
  padding-top: var(--rpt-stack-md);
  border-top: var(--rpt-border-light);
}

/* C. Input */
.rpt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rpt-label {
  font-family: var(--rpt-font-body);
  font-size: var(--rpt-label-bold-size);
  font-weight: var(--rpt-label-bold-weight);
  line-height: var(--rpt-label-bold-line);
  color: var(--rpt-on-surface);
}

.rpt-label--required::after {
  content: " *";
  color: var(--rpt-error);
}

.rpt-input,
.rpt-select,
.rpt-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--rpt-surface-container-lowest);
  border: 1px solid var(--rpt-outline);
  border-radius: var(--rpt-radius-default);
  font-family: var(--rpt-font-body);
  font-size: var(--rpt-body-md-size);
  color: var(--rpt-on-surface);
  transition: border-color var(--rpt-transition-fast), box-shadow var(--rpt-transition-fast);
}

.rpt-textarea {
  min-height: 120px;
  resize: vertical;
}

.rpt-input:focus,
.rpt-select:focus,
.rpt-textarea:focus {
  outline: none;
  border-color: var(--rpt-power-blue);
  border-width: 2px;
  padding: 9px 11px;
}

.rpt-input::placeholder,
.rpt-textarea::placeholder {
  color: var(--rpt-on-surface-variant);
  opacity: 0.6;
}

/* D. Status chip */
.rpt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: var(--rpt-radius-full);
  font-family: var(--rpt-font-body);
  font-size: var(--rpt-label-sm-size);
  line-height: var(--rpt-label-sm-line);
  font-weight: var(--rpt-label-sm-weight);
  background: var(--rpt-surface-neutral);
  color: var(--rpt-on-surface);
}

.rpt-chip-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--rpt-radius-full);
  background: var(--rpt-electric-green);
}

.rpt-chip-warning::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--rpt-radius-full);
  background: var(--rpt-status-warning);
}

.rpt-chip-confirmed::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--rpt-radius-full);
  background: var(--rpt-electric-green);
}

/* E. Technical list */
.rpt-technical-list {
  border-top: var(--rpt-border-light);
  list-style: none;
  margin: 0;
  padding: 0;
}

.rpt-technical-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 12px 0;
  border-bottom: var(--rpt-border-light);
  font-family: var(--rpt-font-body);
  font-size: var(--rpt-body-md-size);
  color: var(--rpt-on-surface);
}

.rpt-technical-list-item__label {
  color: var(--rpt-on-surface-variant);
  font-size: var(--rpt-label-bold-size);
  font-weight: var(--rpt-label-bold-weight);
  letter-spacing: var(--rpt-label-bold-letter);
  text-transform: uppercase;
}

.rpt-technical-list-item__value {
  font-weight: var(--rpt-body-md-weight);
  text-align: right;
}

/* CTA block */
.rpt-cta-block {
  background: var(--rpt-surface-container-low);
  border: var(--rpt-border-light);
  border-radius: var(--rpt-radius-default);
  padding: var(--rpt-stack-lg);
  text-align: center;
}

.rpt-cta-block__title {
  font-family: var(--rpt-font-heading);
  font-size: var(--rpt-headline-md-size);
  line-height: var(--rpt-headline-md-line);
  font-weight: var(--rpt-headline-md-weight);
  color: var(--rpt-on-surface);
  margin-bottom: var(--rpt-stack-md);
}

.rpt-cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rpt-stack-md);
  justify-content: center;
}

/* Category block */
.rpt-category-block {
  display: flex;
  flex-direction: column;
  gap: var(--rpt-stack-md);
}

.rpt-category-block__title {
  font-family: var(--rpt-font-heading);
  font-size: var(--rpt-headline-md-size);
  line-height: var(--rpt-headline-md-line);
  font-weight: var(--rpt-headline-md-weight);
  color: var(--rpt-on-surface);
}

/* Inquiry form */
.rpt-inquiry-form {
  display: flex;
  flex-direction: column;
  gap: var(--rpt-stack-md);
}

.rpt-inquiry-form__row {
  display: grid;
  gap: var(--rpt-stack-md);
}

.rpt-inquiry-form__actions {
  margin-top: var(--rpt-stack-sm);
}

/* Breadcrumb */
.rpt-breadcrumb-wrap {
  padding: 12px var(--rpt-stack-md);
  background: var(--rpt-surface-container-lowest);
  border: var(--rpt-border-light);
  border-radius: var(--rpt-radius-default);
  box-shadow: var(--rpt-shadow-technical);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.rpt-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--rpt-font-body);
  font-size: var(--rpt-label-sm-size, 13px);
  line-height: 20px;
}

.rpt-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rpt-on-surface-variant);
}

.rpt-breadcrumb__item:not(:last-child)::after {
  content: ">";
  color: var(--rpt-outline);
  font-size: 12px;
  line-height: 1;
}

.rpt-breadcrumb__link {
  color: var(--rpt-power-blue);
  text-decoration: none;
}

.rpt-breadcrumb__link:hover,
.rpt-breadcrumb__link:focus {
  color: var(--rpt-electric-green);
}

/* Play triangle icon — video cards, product cards, gallery */
.rpt-play-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
  margin-left: 3px;
}

@media (max-width: 575px) {
  .rpt-product-card__play .rpt-play-icon,
  .rpt-video-card__play .rpt-play-icon {
    border-top-width: 7px;
    border-bottom-width: 7px;
    border-left-width: 10px;
    margin-left: 2px;
  }
}

.rpt-breadcrumb__current {
  color: var(--rpt-electric-green);
  font-weight: 600;
}

.rpt-breadcrumb--woo {
  margin: 0;
}
