/**
 * GAS Embed Page Styles
 *
 * Full-height iframe container with loading spinner.
 * Mirrors team-page iframe pattern for consistency.
 */

.gas-embed-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.gas-embed-page__header {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.gas-embed-page__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0;
}

.gas-embed-page__iframe-container {
  flex: 1;
  position: relative;
  background: var(--color-bg-secondary);
  overflow: hidden;
}

.gas-embed-page__iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Loading overlay */
.gas-embed-page__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: var(--color-bg-secondary);
  z-index: 1;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  transition: opacity var(--duration-base) var(--ease-out);
}

.gas-embed-page__loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.gas-embed-page__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--rdx-blue);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

/* Error state */
.gas-embed-page__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  padding: var(--space-8);
}

/* Responsive */
@media (max-width: 768px) {
  .gas-embed-page__header {
    padding: var(--space-3) var(--space-4);
  }
}
