@import '../../utils/shared-styles';

.remote-support {
  min-height: calc(100vh - 72px);
  padding: 2rem 0 4rem;
  background: #EEF4FE;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

// ===== HERO CARD =====

.hero-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: $glass-bg;
  backdrop-filter: blur(20px);
  border: 1px solid $glass-border;
  border-radius: $radius-xl;
  box-shadow: $shadow-glass;
  margin-bottom: 2rem;

  &__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: $gradient-primary;
    border-radius: 50%;
    margin-bottom: 1.25rem;

    .material-symbols-outlined {
      font-size: 36px;
      color: white;
    }
  }

  h1 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 800;
    background: $gradient-primary;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    @media (max-width: 640px) {
      font-size: 1.5rem;
    }
  }

  p {
    margin: 0 auto;
    max-width: 600px;
    color: $color-text-secondary;
    font-size: 1.0625rem;
    line-height: 1.6;

    @media (max-width: 640px) {
      font-size: 0.9375rem;
    }
  }
}

// ===== CONTENT GRID =====

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;

  @media (max-width: 900px) {
    grid-template-columns: 1fr;
  }
}

// ===== DOWNLOAD SECTION =====

.download-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-card {
  background: $glass-bg;
  backdrop-filter: blur(20px);
  border: 1px solid $glass-border;
  border-radius: $radius-xl;
  box-shadow: $shadow-glass;
  padding: 2rem;
  transition: all 0.3s ease;

  &--success {
    border-color: rgba($color-success, 0.3);
    background: linear-gradient(135deg, rgba($color-success, 0.05) 0%, $glass-bg 100%);
  }

  &__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;

    h2 {
      margin: 0;
      font-size: 1.375rem;
      font-weight: 700;
      color: $color-text-primary;
    }
  }

  &__logo {
    width: 48px;
    height: 48px;
    border-radius: $radius-md;
    box-shadow: $shadow-sm;
  }

  &__subtitle {
    font-size: 0.875rem;
    color: $color-text-secondary;
  }

  &__info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba($color-brand-primary, 0.05);
    border-radius: $radius-md;

    .info-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.875rem;
      color: $color-text-secondary;

      .material-symbols-outlined {
        font-size: 20px;
        color: $color-brand-primary;
      }
    }
  }

  &__note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: $color-text-tertiary;

    .material-symbols-outlined {
      font-size: 18px;
    }
  }
}

// ===== DOWNLOAD BUTTON =====

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 2rem;
  background: $gradient-primary;
  color: white;
  font-size: 1.0625rem;
  font-weight: 700;
  border: none;
  border-radius: $radius-lg;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: $shadow-brand;

  .material-symbols-outlined {
    font-size: 24px;
  }

  &:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: $shadow-brand-hover;
  }

  &:active:not(:disabled) {
    transform: translateY(0);
  }

  &:disabled {
    opacity: 0.8;
    cursor: not-allowed;
  }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(white, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

// ===== SUCCESS STATE =====

.success-state {
  text-align: center;
  padding: 1rem 0;

  .success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba($color-success, 0.1);
    border-radius: 50%;
    margin-bottom: 1rem;

    .material-symbols-outlined {
      font-size: 40px;
      color: $color-success;
    }
  }

  h2 {
    margin: 0 0 0.5rem;
    font-size: 1.375rem;
    color: $color-text-primary;
  }

  p {
    margin: 0 0 1.5rem;
    color: $color-text-secondary;
  }
}

// ===== ALT DOWNLOAD =====

.alt-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: $color-text-tertiary;

  .alt-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: $color-brand-primary;
    text-decoration: none;
    font-weight: 500;

    .material-symbols-outlined {
      font-size: 16px;
    }

    &:hover {
      text-decoration: underline;
    }
  }
}

// ===== INSTRUCTIONS SIDEBAR =====

.instructions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.instruction-card {
  background: $glass-bg;
  backdrop-filter: blur(20px);
  border: 1px solid $glass-border;
  border-radius: $radius-lg;
  padding: 1.5rem;
  box-shadow: $shadow-glass;

  h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: $color-text-primary;

    .material-symbols-outlined {
      color: $color-brand-primary;
    }
  }
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
  }

  .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: $gradient-primary;
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 50%;
  }

  .step-content {
    display: flex;
    flex-direction: column;
    padding-top: 2px;

    strong {
      font-size: 0.9375rem;
      color: $color-text-primary;
      margin-bottom: 0.125rem;
    }

    span {
      font-size: 0.8125rem;
      color: $color-text-secondary;
    }
  }
}

// ===== SECURITY CARD =====

.security-card {
  background: $glass-bg;
  backdrop-filter: blur(20px);
  border: 1px solid $glass-border;
  border-radius: $radius-lg;
  padding: 1.5rem;
  box-shadow: $shadow-glass;

  &__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;

    .material-symbols-outlined {
      font-size: 24px;
      color: $color-success;
    }

    h3 {
      margin: 0;
      font-size: 1rem;
      font-weight: 700;
      color: $color-text-primary;
    }
  }
}

.security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: $color-text-secondary;

    .material-symbols-outlined {
      font-size: 20px;
      color: $color-success;
    }
  }
}

// ===== CONTACT CARD =====

.contact-card {
  background: linear-gradient(135deg, rgba($color-brand-primary, 0.08) 0%, rgba($color-brand-secondary, 0.12) 100%);
  border: 1px solid rgba($color-brand-primary, 0.2);
  border-radius: $radius-lg;
  padding: 1.5rem;
  text-align: center;

  h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: $color-text-primary;
  }

  p {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: $color-text-secondary;
    line-height: 1.5;
  }
}

// ===== BUTTONS =====

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: $radius-md;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;

  .material-symbols-outlined {
    font-size: 20px;
  }

  &--primary {
    background: $gradient-primary;
    color: white;
    box-shadow: $shadow-brand;

    &:hover {
      transform: translateY(-1px);
      box-shadow: $shadow-brand-hover;
    }
  }

  &--secondary {
    background: rgba($color-brand-primary, 0.1);
    color: $color-brand-primary;
    border: 1px solid rgba($color-brand-primary, 0.2);

    &:hover {
      background: rgba($color-brand-primary, 0.15);
    }
  }

  &--full {
    width: 100%;
  }
}

// ===== PAGE ANIMATION =====

.page-animate {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
