// Quick Start Page Styles
.sp-pcp-settings-getting-start-page {
  max-width: $max-width;
  margin: 0 auto;

  * {
    box-sizing: border-box;
  }
}

.sp-pcp-settings-getting-start-page-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

// Left Side Content
.sp-pcp-qs-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

// About Section
.sp-pcp-qs-about-section {
  background: $white;
  border: 1px solid $border-color;
  border-radius: 12px;
  overflow: hidden;
}

.sp-pcp-qs-about-content {
  display: flex;
  gap: 24px;
  padding: 32px;
  align-items: center;
}

.sp-pcp-qs-about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.sp-pcp-qs-greeting {
  color: #2c2d2f;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
}

.sp-pcp-qs-welcome-title {
  font-size: 24px;
  font-weight: 600;
  color: #2c2d2f;
  margin: -6px 0 0 0;
  line-height: 1.3;
}

.sp-pcp-qs-welcome-desc {
  color: #4e4f52;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.sp-pcp-qs-create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--sp-smart-primary-2-600);
  color: $white;
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  transition: background 0.2s, color 0.2s;
  text-transform: capitalize;
  flex-shrink: 0;
  white-space: nowrap;

  &:hover {
    background: var(--sp-smart-primary-2-700);
    color: #fff;
  }
  &:focus {
    color: #fff;
  }
}

.sp-pcp-qs-video-wrapper {
  position: relative;
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 9.689px;

  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 29, 215, 0.4);
    pointer-events: none;
  }
}

.sp-pcp-qs-play-btn {
  position: absolute;
  top: calc(50% + 0.12px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background: $white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;

  svg {
    width: 21px;
    height: 21px;
    margin-left: 2px;
    position: relative;
    z-index: 2;
  }

  &::before,
  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: $white;
    opacity: 0;
    z-index: 1;
  }

  &::before {
    animation: pulse 2s ease-out infinite;
  }

  &::after {
    animation: pulse 2s ease-out infinite 1s;
  }
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.sp-pcp-qs-video-placeholder {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;

  img {
    display: flex;
    width: 100%;
  }
}

// Video Modal
.sp-pcp-qs-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 20px;
}

.sp-pcp-qs-video-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: $white;
  border-radius: 12px;
  overflow: hidden;
}

.sp-pcp-qs-video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  color: $white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
  font-family: sans-serif;

  &:hover {
    background: rgba(0, 0, 0, 0.8);
  }
}

.sp-pcp-qs-video-modal-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  background: #000;

  iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
}

// Blocks Section
.sp-pcp-qs-blocks-section {
  background: $white;
  border: 1px solid $border-color;
  border-radius: 12px;
  padding: 22px 32px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sp-pcp-qs-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sp-pcp-qs-section-title {
  font-size: 24px;
  font-weight: 500;
  color: #2c2d2f;
  margin: 0;
  line-height: 32px;
}

.sp-pcp-qs-view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: $link-blue;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;

  svg {
    width: 12px;
    height: 12px;
  }

  &:hover {
    background: transparent;
    color: $link-blue-hover;
  }

  &:focus {
    color: $link-blue;
  }
}

.sp-pcp-qs-blocks-grid.sp-post-carousel-settings-card-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;

  .sp-pcp-blocks-settings-card {
    border: 1px solid #ddd;
    box-shadow: none;
    padding: 14px 18px;

    &:nth-last-child(-n+2) {
      opacity: 0.7;
    }

    .sp-pcp-pro-blocks-badge {
      display: none;
    }

    .sp-pcp-blocks-settings-card-icon {
      width: 48px;
      height: 48px;
    }

    .sp-pcp-blocks-settings-toggle-btn {
      justify-content: center;
    }
  }
}

.sp-pcp-qs-blocks-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, $white 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

// Modules Section
.sp-pcp-qs-modules-page {
  background: $white;
  border: 1px solid $border-color;
  border-radius: 12px;
  padding: 22px 32px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sp-pcp-qs-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;

  .sp-pcp-blocks-settings-card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    padding: 14px 18px;

    &:nth-last-child(-n+2) {
      opacity: 0.7;
    }

    .sp-pcp-pro-blocks-badge {
      display: none;
    }

    .sp-pcp-blocks-settings-card-icon {
      width: 48px;
      height: 48px;
      border: none;

      &.sp-saved-template {
        background: linear-gradient(90deg, #00AFFF 0%, #2974FF 100%);
      }

      &.sp-template-library {
        background: linear-gradient(90deg, #AB4CFE 0%, #7317FE 100%);
      }

      &.sp-taxonomy {
        background: linear-gradient(135deg, #3662B2 0%, #13D2C4 100%);
      }

      &.sp-back-to-top {
        background: linear-gradient(315deg, #79E9F1 0%, #0E5CAD 100%);
        box-sizing: border-box;

        svg {
          padding: 10px 7px;
          border: 2px solid #FFF;
          border-radius: 50%;
        }
      }

      svg {
        width: 32px;
        height: 32px;
        // fill: #fff;
      }
    }

    .sp-pcp-blocks-settings-toggle-btn {
      justify-content: center;
    }
  }
}

.sp-pcp-qs-modules-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, $white 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

// Video Tutorials Section
.sp-pcp-qs-tutorials-section {
  background: $white;
  border: 1px solid $border-color;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sp-pcp-qs-tutorials-grid {
  display: flex;
  gap: 24px;
}

.sp-pcp-qs-tutorial-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9.689px;
}

.sp-pcp-qs-tutorial-video {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 9;

  iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
}

.sp-pcp-qs-tutorial-title {
  font-size: 18px;
  font-weight: 600;
  color: #2f2f2f;
  margin: 0;
  padding-top: 10px;
  line-height: 1.4;
}

// Right Side Sidebar
.sp-pcp-qs-sidebar {
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  top: 20px;
}

// Patterns Library Card
.sp-pcp-qs-patterns-card {
  background: $white;
  border: 1px solid $border-color;
  border-radius: 12px;
  overflow: hidden;
}

.sp-pcp-qs-patterns-image {
  position: relative;
  height: 200px;
  background: rgba(239, 230, 251, 1);
  overflow: hidden;
}

.sp-pcp-qs-patterns-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
}

.sp-pcp-qs-patterns-cards {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  margin-top: 8px;
  transform: translateY(-5px);
}

.sp-pcp-qs-hot-tag {
  position: absolute;
  top: 9px;
  left: 9px;
  background: #cc1818;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 4px;
}

.sp-pcp-qs-patterns-gradient {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 194px;
  padding: 10px;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px 0 hsla(0,0%,7%,.2);
  border-radius: 4px;
}

.sp-pcp-qs-patterns-text {
  color: rgba(100, 29, 215, 1);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.sp-pcp-qs-patterns-content {
  padding: 24px;
  background: $white;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-pcp-qs-patterns-title {
  font-size: 18px;
  font-weight: 600;
  color: #2f2f2f;
  margin: 0;
  white-space: nowrap;
}

.sp-pcp-qs-patterns-desc {
  font-size: 14px;
  color: #2f2f2f;
  line-height: 1.57;
  margin: 0;
}

.sp-pcp-qs-patterns-btn-wrapper {
  padding-top: 6px;
}

.sp-pcp-qs-patterns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: $link-blue;
  color: $white;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 4px;
  transition: all .3s ease-in-out;

  svg {
    width: 14px;
    height: 14px;
  }

  &:hover {
    background: $link-blue-hover;
    color: #fff;
  }
  &:focus {
    color: #fff;
  }
}

// Go Pro Card
.sp-pcp-qs-pro-card {
  background: linear-gradient(220.90946321468684deg, rgb(239, 230, 251) 0.73333%, rgba(239, 230, 251, 0.1) 35.519%), linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%);
  border: 1px solid #d9b3fe;
  border-radius: 12px;
  overflow: hidden;
}

.sp-pcp-qs-pro-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sp-pcp-qs-pro-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-pcp-qs-pro-title {
  font-size: 18px;
  font-weight: 600;
  color: #2f2f2f;
  margin: 0;
  white-space: nowrap;
}

.sp-pcp-qs-pro-desc {
  font-size: 14px;
  color: #2f2f2f;
  line-height: 1.5;
  margin: 0;
}

.sp-pcp-qs-pro-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-pcp-qs-pro-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #2f2f2f;
  line-height: 1.25;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;

  > svg {
    opacity: 0;
    visibility: hidden;
    width: 12px;
    height: 12px;
    transition: all 0.2s ease;
    transform: translateX(-3px);
  }

  &:hover {
    color: inherit;

    > svg {
      opacity: 1;
      visibility: visible;
      transform: translateX(0);
    }
  }
}

a.sp-pcp-qs-pro-feature:hover {
  text-decoration: underline;
}

.sp-pcp-qs-pro-buttons {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 4px;
}

.sp-pcp-qs-pro-upgrade-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: $link-blue;
  color: $white;
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;

  svg {
    width: 16px;
    height: 16px;
  }

  &:focus,
  &:hover {
    background: $link-blue-hover;
    color: #fff;
  }
}

.sp-pcp-qs-pro-compare-btn {
  display: block;
  text-align: center;
  color: #757575;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 24px;
  transition: color 0.2s;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;

  &:hover {
    color: $primary-color;
  }
}

// Info Cards (Documentation & Community)
.sp-pcp-qs-info-card {
  background: $white;
  border: 1px solid $border-color;
  border-radius: 12px;
  padding: 28px;
}

.sp-pcp-qs-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sp-pcp-qs-info-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  svg {
    width: 24px;
    height: 24px;
  }
}

.sp-pcp-qs-info-title {
  font-size: 18px;
  font-weight: 600;
  color: #2f2f2f;
  margin: 0;
  text-transform: capitalize;
  line-height: 20px;
}

.sp-pcp-qs-info-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sp-pcp-qs-info-desc {
  font-size: 14px;
  color: #3c434a;
  line-height: 22px;
  margin: 0;
}

.sp-pcp-qs-info-link-wrapper {
  display: flex;
  align-items: center;
}

.sp-pcp-qs-info-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6d6b6a;
  border: 1px solid #6d6b6a;
  padding: 12px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  line-height: 13px;
  white-space: nowrap;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;

  svg {
    width: 12px;
    height: 12px;
    display: none;
  }

  &:hover {
    background: var(--sp-smart-primary-2-600);
    border-color: var(--sp-smart-primary-2-600);
    color: #fff;
  }
  &:focus {
    color: #6d6b6a;
  }
}

// Pro icon wrapper
.sp-pcp-qs-pro-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  svg {
    width: 14px;
    height: 14px;
  }
}

// Patterns card placeholder
.sp-pcp-qs-patterns-cards-placeholder {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;

  img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }
}

// Responsive
@media (max-width: 1200px) {
  .sp-pcp-settings-getting-start-page-content {
    flex-direction: column;
  }

  .sp-pcp-qs-sidebar {
    width: 100%;
    position: static;
  }

  .sp-pcp-qs-blocks-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sp-pcp-qs-tutorials-grid {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .sp-pcp-settings-getting-start-page {
    padding: 0 20px;
  }

  .sp-pcp-qs-about-content {
    flex-direction: column;
  }

  .sp-pcp-qs-video-wrapper {
    width: 100%;
  }

  .sp-pcp-qs-blocks-grid {
    grid-template-columns: 1fr;
  }
}
