/* Component Styles */

/* Cards */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--card-foreground));
  margin-bottom: 0.5rem;
}

.card-content {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.btn-outline {
  background-color: transparent;
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary));
}

.btn-outline:hover {
  background-color: hsl(var(--primary) / 0.1);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.badge-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.badge-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.badge-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.badge-success {
  background-color: hsl(142 76% 36%);
  color: white;
}

.badge-warning {
  background-color: hsl(38 92% 50%);
  color: white;
}

.badge-error {
  background-color: hsl(var(--destructive));
  color: white;
}

/* Inputs */
.input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  background-color: hsl(var(--background));
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: var(--card-bg);
  border: none;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
  text-align: left;
  user-select: none;
  position: relative;
}

.accordion-trigger * {
  pointer-events: none;
}

.accordion-trigger:hover {
  background-color: rgba(255, 122, 66, 0.1);
}

.accordion-trigger.active {
  background-color: rgba(255, 122, 66, 0.05);
}

.accordion-content {
  display: block;
  padding: 1.5rem;
  background-color: var(--background);
  border-top: 1px solid var(--border-color);
}

.accordion-icon {
  transition: transform 0.2s;
  font-size: 1rem;
  color: var(--text-dark);
  pointer-events: none;
}

.accordion-trigger.active .accordion-icon {
  transform: rotate(180deg);
}

/* Tabs */
.tabs {
  border-bottom: 1px solid hsl(var(--border));
}

.tabs-list {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tabs-trigger {
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-medium);
  transition: all 0.2s;
}

.tabs-trigger:hover {
  color: var(--text-dark);
}

.tabs-trigger.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tabs-content {
  padding: 1rem 0;
}

.tabs-panel {
  display: none;
}

.tabs-panel.active {
  display: block;
}

/* Module Header */
.module-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 122, 66, 0.05) 0%, rgba(233, 30, 99, 0.05) 100%);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
}

.module-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
}

.module-info h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.module-info p {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 1rem;
}

.module-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 122, 66, 0.1) 0%, rgba(233, 30, 99, 0.1) 100%);
  color: var(--primary);
  font-size: 1.25rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--text-medium);
}

.feature-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
}

/* Step Guide */
.step-guide {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.step-guide-header {
  background: linear-gradient(135deg, rgba(255, 122, 66, 0.05) 0%, rgba(233, 30, 99, 0.05) 100%);
  border-bottom: 2px solid var(--border-color);
  padding: 1.5rem;
}

.step-guide-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.step-guide-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.step-guide-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.step-guide-subtitle {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: 0.75rem;
}

.step-guide-badges {
  display: flex;
  gap: 0.5rem;
}

.step-guide-content {
  padding: 1.5rem;
}

.step-item {
  border: 1px solid hsl(var(--border-color));
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.step-trigger {
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: hsl(var(--card-bg));
  border: none;
  border-bottom: 1px solid hsl(var(--border-color));
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
  text-align: left;
}

.step-trigger:hover {
  background-color: hsl(var(--accent) / 0.1);
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.step-info {
  flex: 1;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.step-subtitle {
  font-size: 0.875rem;
  color: var(--text-medium);
}

.step-device {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-light);
}

.step-content {
  padding: 1.5rem;
  background-color: var(--background);
  border-top: 1px solid var(--border-color);
}

.step-description {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.step-screenshot {
  margin-bottom: 1rem;
}

.screenshot-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.screenshot-header h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--text-dark));
}

.screenshot-placeholder {
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--border-color);
  background-color: var(--background);
  min-height: 250px;
  transition: all 0.3s;
}

.screenshot-placeholder:hover {
  border-style: solid;
}

.screenshot-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 122, 66, 0.15) 0%, rgba(233, 30, 99, 0.15) 100%);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 2.5rem;
}

.screenshot-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.screenshot-subtitle {
  font-size: 0.875rem;
  color: var(--text-medium);
  max-width: 28rem;
  margin-bottom: 0.75rem;
}

.screenshot-note {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 122, 66, 0.1);
  color: var(--primary);
  border: 1px solid rgba(255, 122, 66, 0.2);
  font-size: 0.75rem;
}

.step-actions {
  margin-bottom: 1rem;
}

.step-actions h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--text-dark));
  margin-bottom: 0.5rem;
}

.step-actions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.step-action-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: rgba(255, 122, 66, 0.05);
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* Screenshot Carousel */
.screenshot-carousel {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.carousel-container {
  position: relative;
  height: 300px;
  background: linear-gradient(135deg, rgba(255, 122, 66, 0.1) 0%, rgba(233, 30, 99, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-content {
  text-align: center;
  padding: 2rem;
}

.carousel-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 122, 66, 0.15) 0%, rgba(233, 30, 99, 0.15) 100%);
  margin: 0 auto 1rem;
  color: var(--primary);
  font-size: 2rem;
}

.carousel-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.carousel-subtitle {
  font-size: 0.875rem;
  color: var(--text-medium);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.carousel-nav:hover {
  background-color: var(--primary-dark);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav.prev {
  left: 1rem;
}

.carousel-nav.next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: hsl(var(--muted));
  cursor: pointer;
  transition: background-color 0.2s;
}

.carousel-dot.active {
  background-color: var(--primary);
}

/* Video Player */
.video-player {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.video-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.video-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 122, 66, 0.1) 0%, rgba(233, 30, 99, 0.1) 100%);
  color: var(--primary);
  font-size: 1.25rem;
}

.video-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
}

.video-content {
  padding: 1.5rem;
}

.video-placeholder {
  border-radius: 0.75rem;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--border-color);
  background-color: var(--background);
  min-height: 200px;
}

.video-play-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.video-play-icon:hover {
  transform: scale(1.05);
}

.video-placeholder-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.video-placeholder-subtitle {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: 1rem;
}

.video-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
}

/* Overview Section */
.overview-section {
  background: linear-gradient(135deg, rgba(255, 122, 66, 0.08) 0%, rgba(233, 30, 99, 0.08) 100%);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.overview-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.overview-section p {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.overview-section p:last-child {
  margin-bottom: 0;
}

/* Features Section */
.features-section {
  margin-bottom: 2rem;
}

.features-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Screenshot Section */
.screenshot-section {
  margin-bottom: 2rem;
}

.screenshot-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Video Section */
.video-section {
  margin-bottom: 2rem;
}

.video-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.video-description {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-top: 1rem;
  padding: 1rem;
  background-color: rgba(255, 122, 66, 0.05);
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .module-header {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .step-guide-header {
    padding: 1rem;
  }
  
  .step-trigger {
    padding: 0.75rem 1rem;
  }
  
  .step-content {
    padding: 1rem;
  }
  
  .carousel-container {
    height: 200px;
  }
  
  .carousel-content {
    padding: 1rem;
  }
}
