/* Page Features Styles */
.page-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg) 0;
}

.page-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.page-feature-image {
  margin-bottom: var(--spacing-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.page-feature-image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-top: var(--spacing-xs);
}

/* Beta Editor Page Features */
.kg-canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.kg-canvas > * {
  max-width: 100%;
  width: 100%;
}

/* Required Ghost Editor Classes */
.kg-width-wide {
  max-width: 85%;
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.kg-width-full {
  max-width: 100%;
  width: 100%;
}

/* Gallery Card */
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 100%;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.kg-gallery-image img {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kg-gallery-row:not(:first-of-type) {
  margin: 0.75em 0 0 0;
}

.kg-gallery-image:not(:first-of-type) {
  margin: 0 0 0 0.75em;
}

/* Bookmark Card */
.kg-bookmark-card {
  width: 100%;
  background: var(--background);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin: 2em 0;
}

.kg-bookmark-container {
  display: flex;
  color: var(--foreground);
  text-decoration: none;
  box-shadow: none;
  min-height: 120px;
}

.kg-bookmark-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1.5em;
}

.kg-bookmark-title {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--foreground);
}

.kg-bookmark-description {
  font-size: 0.9em;
  margin-top: 0.5em;
  color: var(--dark-gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  margin-top: 1em;
  width: 100%;
  font-size: 0.8em;
  font-weight: 500;
  color: var(--dark-gray);
}

.kg-bookmark-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.5em;
}

.kg-bookmark-author,
.kg-bookmark-publisher {
  display: inline;
}

.kg-bookmark-publisher {
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 240px;
  white-space: nowrap;
  display: block;
  line-height: 1.65em;
}

.kg-bookmark-thumbnail {
  position: relative;
  min-width: 30%;
  max-height: 100%;
}

.kg-bookmark-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Toggle Card */
.kg-toggle-card {
  background: var(--background);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  margin: 1.5em 0;
  padding: 0;
}

.kg-toggle-heading {
  padding: 1em 1.5em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kg-toggle-heading h4 {
  font-size: 1.1em;
  font-weight: 600;
  margin: 0;
  line-height: 1.3em;
}

.kg-toggle-content {
  padding: 0 1.5em 1.5em;
}

.kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content {
  display: none;
}

/* Callout Card */
.kg-callout-card {
  display: flex;
  padding: 1.5em;
  border-radius: var(--radius-md);
  margin: 1.5em 0;
}

.kg-callout-card.kg-callout-card-grey {
  background: rgba(124, 139, 154, 0.13);
}

.kg-callout-card.kg-callout-card-white {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(124, 139, 154, 0.25);
}

.kg-callout-card.kg-callout-card-blue {
  background: rgba(33, 172, 232, 0.12);
}

.kg-callout-card.kg-callout-card-green {
  background: rgba(52, 183, 67, 0.12);
}

.kg-callout-card.kg-callout-card-yellow {
  background: rgba(240, 165, 15, 0.13);
}

.kg-callout-card.kg-callout-card-red {
  background: rgba(209, 46, 46, 0.11);
}

.kg-callout-card.kg-callout-card-pink {
  background: rgba(225, 71, 174, 0.11);
}

.kg-callout-card.kg-callout-card-purple {
  background: rgba(135, 85, 236, 0.12);
}

.kg-callout-card-icon {
  width: 1.6em;
  height: 1.6em;
  padding: 0.4em;
  margin-right: 0.8em;
  background-color: var(--background);
  border-radius: 100%;
}

.kg-callout-card-icon svg {
  margin: 0 auto;
  display: block;
  width: 100%;
  height: 100%;
}

.kg-callout-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.kg-callout-card-content p {
  margin: 0;
}

/* File Card */
.kg-file-card {
  background: var(--background);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  margin: 1.5em 0;
  padding: 1.5em;
}

.kg-file-card-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--foreground);
  text-decoration: none;
}

.kg-file-card-contents {
  display: flex;
  flex-direction: column;
  margin-right: 1.5em;
}

.kg-file-card-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 0.2em;
}

.kg-file-card-caption {
  font-size: 0.9em;
  color: var(--dark-gray);
}

.kg-file-card-filesize {
  font-size: 0.8em;
  color: var(--dark-gray);
}

.kg-file-card-icon {
  position: relative;
  width: 48px;
  height: 64px;
  background: var(--primary-color);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kg-file-card-icon:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 12px 12px 0;
  border-color: transparent var(--background) transparent transparent;
}

.kg-file-card-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* Product Card */
.kg-product-card {
  display: flex;
  flex-direction: column;
  background: var(--background);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 1.5em 0;
  overflow: hidden;
}

.kg-product-card-image {
  position: relative;
  display: flex;
  background: var(--background);
  overflow: hidden;
}

.kg-product-card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.kg-product-card-content {
  display: flex;
  flex-direction: column;
  padding: 1.5em;
}

.kg-product-card-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.3em;
}

.kg-product-card-description {
  margin-top: 0;
  margin-bottom: 1em;
}

.kg-product-card-button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  font-weight: 600;
  padding: 0.7em 1.2em;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius-md);
  text-decoration: none;
  width: fit-content;
  transition: all var(--transition-fast);
}

.kg-product-card-button:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Video Card */
.kg-video-card {
  margin: 1.5em 0;
  width: 100%;
}

.kg-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

.kg-video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* Audio Card */
.kg-audio-card {
  margin: 1.5em 0;
  width: 100%;
}

.kg-audio-container {
  width: 100%;
}

.kg-audio-container audio {
  width: 100%;
}

/* Header Card */
.kg-header-card {
  margin: 1.5em 0;
  padding: 4em 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  position: relative;
}

.kg-header-card.kg-size-small {
  padding: 2em;
}

.kg-header-card.kg-size-large {
  padding: 6em 2em;
}

.kg-header-card.kg-align-left {
  text-align: left;
  align-items: flex-start;
}

.kg-header-card.kg-align-right {
  text-align: right;
  align-items: flex-end;
}

.kg-header-card.kg-align-center {
  text-align: center;
  align-items: center;
}

.kg-header-card-content {
  position: relative;
  z-index: 1;
}

.kg-header-card-title {
  font-size: 2.5em;
  font-weight: 700;
  margin: 0 0 0.5em;
  color: white;
}

.kg-header-card-subtitle {
  font-size: 1.25em;
  margin: 0 0 1em;
  color: white;
}

.kg-header-card-button {
  display: inline-block;
  padding: 0.7em 1.2em;
  font-size: 1em;
  font-weight: 600;
  background: white;
  color: var(--foreground);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.kg-header-card-button:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Button Card */
.kg-button-card {
  margin: 1.5em 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kg-button-card.kg-align-left {
  align-items: flex-start;
}

.kg-button-card.kg-align-center {
  align-items: center;
}

.kg-button-card.kg-align-right {
  align-items: flex-end;
}

.kg-button-card a.kg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  font-weight: 600;
  padding: 0.7em 1.2em;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.kg-button-card a.kg-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.kg-button-card a.kg-btn-accent {
  background-color: var(--accent-color);
  color: var(--foreground);
}
