/* CrewTalk Marketing Site - Custom Styles */

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Dark theme select dropdowns */
select option {
  background-color: #2A2A2A;
  color: #FFFFFF;
}

/* Backdrop blur fallback for older browsers */
@supports not (backdrop-filter: blur(8px)) {
  .backdrop-blur {
    background-color: #1A1A1A !important;
  }
}

/* ==================== PTT SINE WAVE ANIMATION ==================== */

#ptt-sine-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* ==================== INDUSTRY SELECTOR MODAL ==================== */

.industry-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1rem;
}
.industry-modal-overlay.visible {
  opacity: 1;
}

.industry-modal-container {
  background-color: #1A1A1A;
  border: 1px solid #333333;
  border-radius: 1rem;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s ease;
}
.industry-modal-overlay.visible .industry-modal-container {
  transform: translateY(0) scale(1);
}

.industry-modal-content {
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.industry-modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.industry-modal-subtitle {
  font-size: 1rem;
  color: #CCCCCC;
  margin-bottom: 2rem;
}

.industry-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .industry-modal-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.industry-card {
  background-color: #2A2A2A;
  border: 1.5px solid #333333;
  border-radius: 0.75rem;
  padding: 1.25rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.industry-card:hover {
  transform: translateY(-2px);
  background-color: #333333;
  border-color: var(--card-color, #4CAF50);
}

.industry-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.industry-card-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.industry-card-tagline {
  font-size: 0.75rem;
  color: #999999;
  line-height: 1.3;
}

/* Nav badge for changing industry */
.industry-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #333333;
  background-color: #2A2A2A;
  color: #CCCCCC;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.industry-nav-badge:hover {
  border-color: #4CAF50;
  color: #FFFFFF;
}
.industry-nav-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Content swap fade transition */
.content-swap {
  transition: opacity 0.3s ease;
}
.content-swap.swapping {
  opacity: 0;
}

/* ==================== SUPPORT CENTER STYLES ==================== */

/* Article prose */
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333333;
}
.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #CCCCCC;
}
.article-content ul, .article-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: #CCCCCC;
}
.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }
.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.article-content strong {
  color: #FFFFFF;
  font-weight: 600;
}
.article-content a {
  color: #4CAF50;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content a:hover {
  color: #66BB6A;
}
.article-content code {
  background-color: #333333;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #4CAF50;
}
.article-content table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
}
.article-content th {
  text-align: left;
  padding: 0.75rem;
  background-color: #2A2A2A;
  border-bottom: 2px solid #4CAF50;
  font-weight: 600;
  color: #FFFFFF;
}
.article-content td {
  padding: 0.75rem;
  border-bottom: 1px solid #333333;
  color: #CCCCCC;
}
.article-content tr:hover td {
  background-color: #2A2A2A;
}

/* Callout boxes */
.callout {
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}
.callout-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.callout-tip {
  background-color: rgba(76, 175, 80, 0.1);
  border-left-color: #4CAF50;
}
.callout-tip .callout-title { color: #4CAF50; }
.callout-warning {
  background-color: rgba(255, 193, 7, 0.1);
  border-left-color: #FFC107;
}
.callout-warning .callout-title { color: #FFC107; }
.callout-note {
  background-color: rgba(33, 150, 243, 0.1);
  border-left-color: #2196F3;
}
.callout-note .callout-title { color: #2196F3; }
.callout-info {
  background-color: rgba(33, 150, 243, 0.1);
  border-left-color: #2196F3;
}
.callout-info .callout-title { color: #2196F3; }
.callout p {
  margin-bottom: 0 !important;
  color: #CCCCCC;
  line-height: 1.6;
}

/* Step guide */
.step-guide {
  margin-bottom: 1.5rem;
}
.step-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #333333;
}
.step-item:last-child {
  border-bottom: none;
}
.step-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #4CAF50;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.step-content h4 {
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}
.step-content p {
  color: #CCCCCC;
  margin-bottom: 0 !important;
  line-height: 1.6;
}

/* Platform badges */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #2A2A2A;
  color: #CCCCCC;
  border: 1px solid #333333;
}

/* Feature status badge */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.feature-badge-available {
  background-color: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
.feature-badge-coming-soon {
  background-color: rgba(255, 193, 7, 0.15);
  color: #FFC107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

/* FAQ accordion */
.faq-item {
  border: 1px solid #333333;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background-color: #2A2A2A;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover {
  background-color: #333333;
}
.faq-chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease;
  color: #CCCCCC;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  color: #CCCCCC;
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  display: block;
}

/* Category cards for support landing */
.category-card {
  display: block;
  border: 1px solid #333333;
  border-radius: 0.75rem;
  padding: 1.5rem;
  background-color: #2A2A2A;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.category-card:hover {
  border-color: rgba(76, 175, 80, 0.5);
  transform: translateY(-2px);
}

/* Support search */
.support-search {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid #333333;
  background-color: #2A2A2A;
  color: #FFFFFF;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.support-search:focus {
  border-color: #4CAF50;
}
.support-search::placeholder {
  color: #666666;
}

/* Related article cards */
.related-card {
  display: block;
  border: 1px solid #333333;
  border-radius: 0.5rem;
  padding: 1rem;
  background-color: #2A2A2A;
  transition: border-color 0.2s;
  text-decoration: none;
}
.related-card:hover {
  border-color: rgba(76, 175, 80, 0.5);
}

/* Sidebar navigation */
.sidebar-link {
  display: block;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  color: #CCCCCC;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s, background-color 0.15s;
}
.sidebar-link:hover {
  color: #FFFFFF;
  background-color: #333333;
}
.sidebar-link.active {
  color: #4CAF50;
  background-color: rgba(76, 175, 80, 0.1);
}
