/**
 * =========================================
 * 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
 */

/* ============================================
 * BODY & OVERALL PAGE LAYOUT
 * ============================================ */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.85));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

main.seo-question-wrapper {
  flex: 1 0 auto;
}

.footer-wrapper {
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

/* ============================================
 * LAYOUT - Page Wrapper
 * ============================================ */

.seo-question-wrapper {
  width: 100%;
  max-width: var(--max-width-7xl, 80rem);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem);
  padding-top: clamp(1.5rem, 5vw, 3rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .seo-question-wrapper {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    padding-top: clamp(2rem, 5vw, 3.5rem);
    padding-bottom: clamp(4rem, 8vw, 8rem);
  }
}

@media (min-width: 1024px) {
  .seo-question-wrapper {
    padding: clamp(2rem, 5vw, 3rem);
    padding-top: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: clamp(5rem, 10vw, 10rem);
  }
}

/* ============================================
 * MAIN CONTAINER
 * ============================================ */

.seo-question-container {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
 * PAGINATION NAVIGATION
 * ============================================ */

.question-pagination {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  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(1.5rem, 4vw, 2rem);
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 600px;
  justify-content: space-between;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(108, 99, 255, 0.15));
  border: 2px solid rgba(0, 255, 136, 0.4);
  border-radius: 12px;
  color: #00ff88;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.pagination-btn:hover:not(.pagination-btn--disabled) {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.35), rgba(108, 99, 255, 0.25));
  border-color: #00ff88;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 255, 136, 0.2);
}

.pagination-btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-arrow {
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.pagination-btn--prev:hover:not(.pagination-btn--disabled) .pagination-arrow {
  transform: translateX(-4px);
}

.pagination-btn--next:hover:not(.pagination-btn--disabled) .pagination-arrow {
  transform: translateX(4px);
}

.pagination-counter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  min-width: 120px;
}

.question-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: #00ff88;
  font-variant-numeric: tabular-nums;
}

.pagination-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
}

.question-total {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .question-pagination {
    padding: 1rem;
  }

  .pagination-nav {
    gap: 1rem;
  }

  .pagination-btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
  }

  .pagination-text {
    display: none;
  }

  .pagination-counter {
    min-width: auto;
  }
}

/* ============================================
 * BREADCRUMB
 * ============================================ */

/* Naršymo takelis — bendras komponentas, `_modes/_shared/breadcrumb/`,
   ateinantis su `main.css`. Vietinės kopijos panaikintos 2026-09-18. */


/* ============================================
 * QUESTION CARD - Main Component
 * ============================================ */

.question-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 60px rgba(0, 255, 136, 0.05),
    0 0 40px rgba(108, 99, 255, 0.1);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Dynamic background image texture with blend modes */
.question-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(108, 99, 255, 0.1), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
}

/* Ensure content is above overlay */
.question-card > * {
  position: relative;
  z-index: 1;
}

/* 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;
  z-index: 2;
}

@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.5),
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
 * 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;
  cursor: pointer;
  position: relative;
}

.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;
  filter: blur(8px);
  transition: filter 7.3s ease-out;
  -webkit-user-select: none;
  user-select: none;
}

.answer-section:hover .answer-text {
  filter: blur(0px);
  -webkit-user-select: text;
  user-select: text;
}

/* ============================================
 * 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;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ai-description p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================
 * 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;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.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
 * ============================================ */

.seo-question-wrapper .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;
}

.seo-question-wrapper .cta-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.seo-question-wrapper .cta-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin: 0 0 2rem 0;
}

.seo-question-wrapper .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.seo-question-wrapper .login-link {
  display: inline-block;
  color: #00ff88;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.seo-question-wrapper .login-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================
 * INFO SECTION
 * ============================================ */

.seo-question-wrapper .info-section {
  margin-bottom: 2rem;
}

.seo-question-wrapper .info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}

.seo-question-wrapper .info-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
}

.seo-question-wrapper .info-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.seo-question-wrapper .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.seo-question-wrapper .feature-list li {
  color: #00ff88;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-question-wrapper .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;
  }

  .seo-question-wrapper .cta-section {
    padding: 1.5rem;
  }

  .seo-question-wrapper .cta-buttons {
    flex-direction: column;
  }

  .seo-question-wrapper .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .seo-question-wrapper .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));
  }
}
