/* components.css - Component styles for Spotlight Projector V2 - Art Deco Elegance */

/* Art Deco page header */
.page-header {
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, rgb(245, 197, 66, 0.05) 0%, transparent 100%);

  /* Art deco stepped bottom border */
  border-bottom: 1px solid var(--deco-gold-border);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-spotlight) 20%,
    var(--gold-spotlight) 80%,
    transparent 100%
  );
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-header p {
  font-size: 1.125rem;
  color: rgb(255, 247, 230, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* Content section */
.content-section {
  padding: var(--space-3xl) 0;
}

.content-section h2 {
  margin-bottom: var(--space-xl);
}

/* Client cards with Art Deco styling */
.client-card {
  background: linear-gradient(135deg, rgb(58, 58, 58, 0.5) 0%, rgb(58, 58, 58, 0.3) 100%);
  border: 1px solid var(--deco-gold-border);
  border-radius: 4px;
  padding: var(--space-xl);
  transition: all var(--transition-base);

  /* Art deco corner accents */
  position: relative;
}

.client-card::before,
.client-card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold-spotlight);
  border-style: solid;
  opacity: 0.4;
  transition: opacity var(--transition-base);
}

.client-card::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.client-card::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.client-card:hover {
  border-color: rgb(245, 197, 66, 0.4);
  box-shadow:
    0 8px 30px rgb(0, 0, 0, 0.3),
    0 0 20px rgb(245, 197, 66, 0.1);
}

.client-card:hover::before,
.client-card:hover::after {
  opacity: 0.8;
}

.client-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.client-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.client-card-tagline {
  font-style: italic;
  color: rgb(255, 247, 230, 0.7);
  font-size: 0.9375rem;
}

.client-card-status {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  background: rgb(245, 197, 66, 0.15);
  color: var(--gold-spotlight);
}

.client-card-status-beta {
  background: rgb(122, 31, 31, 0.4);
  color: var(--amber-glow);
}

.client-card-highlights {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-md) 0;
}

.client-card-highlights li {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  background: rgb(245, 197, 66, 0.08);
  color: var(--warm-white);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0;
}

.client-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--gold-spotlight);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.client-card-link:hover {
  color: var(--amber-glow);
}

.client-card-link svg {
  width: 16px;
  height: 16px;
}

/* Art deco divider */
.deco-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}

.deco-divider::before,
.deco-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--deco-gold-border), transparent);
}

.deco-divider span {
  color: var(--gold-spotlight);
  font-size: 1.25rem;
}

/* Feature detail (features page) */
.feature-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--deco-gold-border);
}

.feature-detail:last-child {
  border-bottom: none;
}

.feature-detail-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(245, 197, 66, 0.1);
  border: 1px solid var(--deco-gold-border);
  border-radius: 4px;
  color: var(--gold-spotlight);
  flex-shrink: 0;
}

.feature-detail-text h2 {
  margin-bottom: var(--space-md);
}

.feature-detail-text p {
  color: rgb(255, 247, 230, 0.85);
}

/* Download section */
.download-block {
  background: linear-gradient(135deg, rgb(58, 58, 58, 0.4) 0%, rgb(58, 58, 58, 0.2) 100%);
  border: 1px solid var(--deco-gold-border);
  border-radius: 4px;
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.download-block p {
  color: rgb(255, 247, 230, 0.85);
  margin-bottom: var(--space-md);
}

.download-card {
  background: linear-gradient(135deg, rgb(58, 58, 58, 0.4) 0%, rgb(58, 58, 58, 0.2) 100%);
  border: 1px solid var(--deco-gold-border);
  border-radius: 4px;
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.download-card:hover {
  border-color: rgb(245, 197, 66, 0.4);
  box-shadow:
    0 4px 20px rgb(0, 0, 0, 0.2),
    0 0 15px rgb(245, 197, 66, 0.1);
}

.download-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.download-card p {
  font-size: 0.875rem;
  color: rgb(255, 247, 230, 0.7);
  margin-bottom: var(--space-md);
}

.ecosystem-list {
  list-style: none;
  padding: 0;
}

.ecosystem-list li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--deco-gold-border);
}

.ecosystem-list li:last-child {
  border-bottom: none;
}

.ecosystem-list a {
  color: var(--gold-spotlight);
}

.ecosystem-list a:hover {
  color: var(--amber-glow);
}

/* Code block */
.code-block {
  background: rgb(0, 0, 0, 0.6);
  border: 1px solid var(--deco-gold-border);
  border-radius: 4px;
  padding: var(--space-lg);
  overflow-x: auto;
  margin-top: var(--space-md);
}

.code-block code,
.code-block a {
  font-family: var(--font-code);
  font-size: 0.875rem;
  color: var(--warm-white);
  line-height: 1.6;
}

.code-block a {
  color: var(--gold-spotlight);
  text-decoration: underline;
}

/* Docs links */
.docs-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.docs-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-ui);
  color: var(--gold-spotlight);
  padding: var(--space-sm) 0;
  transition: color var(--transition-fast);
}

.docs-links a:hover {
  color: var(--amber-glow);
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: linear-gradient(135deg, rgb(58, 58, 58, 0.4) 0%, rgb(58, 58, 58, 0.2) 100%);
  border: 1px solid var(--deco-gold-border);
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  background: transparent;
  border: none;
  color: var(--gold-spotlight);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: rgb(245, 197, 66, 0.05);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  display: none;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-answer p {
  color: rgb(255, 247, 230, 0.85);
  margin-bottom: 0;
}

/* Hub features */
.hub-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
}

.hub-feature {
  text-align: center;
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgb(58, 58, 58, 0.3) 0%, rgb(58, 58, 58, 0.15) 100%);
  border: 1px solid var(--deco-gold-border);
  border-radius: 4px;
}

.hub-feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--gold-spotlight);
}

.hub-feature-icon svg {
  width: 100%;
  height: 100%;
}

.hub-feature h4 {
  margin-bottom: var(--space-sm);
}

.hub-feature p {
  color: rgb(255, 247, 230, 0.8);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.hub-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.hub-option {
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgb(58, 58, 58, 0.4) 0%, rgb(58, 58, 58, 0.2) 100%);
  border: 1px solid var(--deco-gold-border);
  border-radius: 4px;
  text-align: center;
}

.hub-option h4 {
  margin-bottom: var(--space-md);
}

.hub-option p {
  color: rgb(255, 247, 230, 0.8);
  margin-bottom: var(--space-lg);
}

/* Plugin flow */
.plugin-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.plugin-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgb(58, 58, 58, 0.3) 0%, rgb(58, 58, 58, 0.15) 100%);
  border: 1px solid var(--deco-gold-border);
  border-radius: 4px;
}

.plugin-step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-spotlight);
  color: var(--deep-black);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.plugin-step h4 {
  margin-bottom: var(--space-xs);
}

.plugin-step p {
  color: rgb(255, 247, 230, 0.8);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Ecosystem grid */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.ecosystem-card {
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgb(58, 58, 58, 0.4) 0%, rgb(58, 58, 58, 0.2) 100%);
  border: 1px solid var(--deco-gold-border);
  border-radius: 4px;
}

.ecosystem-card h4 {
  margin-bottom: var(--space-sm);
}

.ecosystem-card p {
  color: rgb(255, 247, 230, 0.8);
  margin-bottom: var(--space-md);
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgb(58, 58, 58, 0.3);
  border: 1px solid var(--deco-gold-border);
  border-radius: 4px;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--gold-spotlight);
  flex-shrink: 0;
}

.contact-item a {
  font-family: var(--font-ui);
  font-weight: 500;
}

/* Table wrapper */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--deco-gold-border);
  border-radius: 4px;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.table-wrapper th,
.table-wrapper td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--deco-gold-border);
}

.table-wrapper th {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-spotlight);
  background: rgb(58, 58, 58, 0.4);
}

.table-wrapper td {
  font-size: 0.9375rem;
  color: rgb(255, 247, 230, 0.9);
}

.table-wrapper tr:last-child td {
  border-bottom: none;
}

.table-wrapper tr:hover td {
  background: rgb(245, 197, 66, 0.03);
}

/* About philosophy section */
.about-philosophy {
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgb(58, 58, 58, 0.3) 0%, rgb(58, 58, 58, 0.15) 100%);
  border: 1px solid var(--deco-gold-border);
  border-radius: 4px;
  border-left: 3px solid var(--gold-spotlight);
  margin-bottom: var(--space-xl);
}

.about-philosophy p {
  margin-bottom: 0;
}

/* CTA banner */
.cta-banner {
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgb(122, 31, 31, 0.1) 50%, transparent 100%);
}

.cta-banner-inner {
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (width <= 640px) {
  .hero {
    padding: var(--space-3xl) 0;
  }

  .feature-detail {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-detail-icon {
    margin: 0 auto;
  }

  .client-card-header {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hub-comparison {
    grid-template-columns: 1fr;
  }

  .plugin-step {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .plugin-step-number {
    margin: 0 auto;
  }
}
