/**
 * =========================================
 * SEO QUESTION PAGE STYLES
 * =========================================
 *
 * Dark theme card design for individual question pages
 * Optimized for SEO and user engagement
 *
 * Uses design tokens from /styles/main.css
 */

/* ============================================
 * LAYOUT - Page Wrapper
 * ============================================ */

.seo-question-wrapper {
  width: 100%;
  max-width: var(--max-width-7xl, 80rem);
  margin: 0 auto;
  padding: var(--spacing-container-mobile, 1rem);
  padding-bottom: 6rem;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .seo-question-wrapper {
    padding: var(--spacing-container-tablet, 1.5rem);
    padding-bottom: 6rem;
  }
}

@media (min-width: 1024px) {
  .seo-question-wrapper {
    padding: var(--spacing-container-desktop, 2rem);
    padding-bottom: 6rem;
  }
}

/* ============================================
 * MAIN CONTAINER
 * ============================================ */

.seo-question-container {
  max-width: 800px;
  margin: 1rem auto;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
 * BREADCRUMB
 * ============================================ */

.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
  gap: 0.25rem;
}

.breadcrumb-item a {
  color: #00ff88;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #6c63ff;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-separator {
  margin: 0 0.3rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
 * QUESTION CARD - Main Component
 * ============================================ */

.question-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(108, 99, 255, 0.1);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

/* Decorative gradient overlay */
.question-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00ff88, #6c63ff, #00ff88);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Card Header */
.question-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.question-label {
  background: linear-gradient(135deg, #6c63ff, #a855f7);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.question-id {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-family: monospace;
}

/* Question Text */
.question-text {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 2rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
 * ANSWER SECTION
 * ============================================ */

.answer-section {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 136, 0.05));
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.answer-label {
  display: block;
  font-size: 0.85rem;
  color: #00ff88;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.answer-text {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  color: #00ff88;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
 * AI DESCRIPTION
 * ============================================ */

.ai-description {
  background: rgba(108, 99, 255, 0.1);
  border-left: 3px solid #6c63ff;
  border-radius: 0 12px 12px 0;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.ai-description p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
 * QUESTION META - Author Info
 * ============================================ */

.question-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.author-name {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.author-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
 * CTA SECTION
 * ============================================ */

.cta-section {
  background: linear-gradient(145deg, rgba(108, 99, 255, 0.15), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 2rem;
}

.cta-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin: 0 0 2rem 0;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.login-link {
  display: inline-block;
  color: #00ff88;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.login-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================
 * INFO SECTION
 * ============================================ */

.info-section {
  margin-bottom: 2rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}

.info-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
}

.info-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.feature-list li {
  color: #00ff88;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-list li::before {
  content: '✓';
  font-weight: bold;
}

/* ============================================
 * RESPONSIVE ADJUSTMENTS
 * ============================================ */

@media (max-width: 640px) {
  .question-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .answer-section {
    padding: 1rem;
  }

  .cta-section {
    padding: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .feature-list {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ============================================
 * DARK MODE ENHANCEMENTS
 * ============================================ */

@media (prefers-color-scheme: dark) {
  .question-card {
    background: linear-gradient(145deg, rgba(20, 30, 48, 0.98), rgba(10, 15, 25, 0.99));
  }
}
