/**
 * =========================================
 * SEO QUOTE PAGE STYLES
 * =========================================
 *
 * Dark theme card design for individual quote 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-quote-wrapper {
  flex: 1 0 auto;
}

.footer-wrapper {
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

/* ============================================
 * LAYOUT - Page Wrapper
 * ============================================ */

.seo-quote-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-quote-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-quote-wrapper {
    padding: clamp(2rem, 5vw, 3rem);
    padding-top: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: clamp(5rem, 10vw, 10rem);
  }
}

/* ============================================
 * MAIN CONTAINER
 * ============================================ */

.seo-quote-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
 * ============================================ */

.quote-pagination {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
  border: 1px solid rgba(245, 158, 11, 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(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  color: #f59e0b;
  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(245, 158, 11, 0.35), rgba(217, 119, 6, 0.25));
  border-color: #f59e0b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(245, 158, 11, 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;
}

.quote-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f59e0b;
  font-variant-numeric: tabular-nums;
}

.pagination-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
}

.quote-total {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .quote-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
 * ============================================ */

.seo-quote-wrapper .breadcrumb {
  margin-bottom: 1.5rem;
}

.seo-quote-wrapper .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;
}

.seo-quote-wrapper .breadcrumb-item a {
  color: #f59e0b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.seo-quote-wrapper .breadcrumb-item a:hover {
  color: #6c63ff;
  text-decoration: underline;
}

.seo-quote-wrapper .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.6);
}

.seo-quote-wrapper .breadcrumb-separator {
  margin: 0 0.3rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
 * QUOTE CARD - Main Component
 * ============================================ */

.quote-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(245, 158, 11, 0.05),
    0 0 40px rgba(245, 158, 11, 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 */
.quote-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.1), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
}

/* Ensure content is above overlay */
.quote-card>* {
  position: relative;
  z-index: 1;
}

/* Decorative gradient overlay - amber/gold for quotes */
.quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
  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 */
.quote-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.quote-label {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quote-id {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-family: monospace;
}

/* Quote Text */
.quote-text {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  font-style: italic;
  text-align: center;
  padding: 1rem 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);
}

.quote-mark {
  color: #f59e0b;
  font-size: 2em;
  font-family: Georgia, serif;
  vertical-align: -0.2em;
  opacity: 0.8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
 * QUOTE AUTHOR SECTION
 * ============================================ */

.quote-author-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.author-dash {
  color: #f59e0b;
  font-size: 1.2rem;
}

.quote-author {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 600;
  color: #f59e0b;
  font-style: normal;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
 * AI DESCRIPTION
 * ============================================ */

.seo-quote-wrapper .ai-description {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  border-radius: 0 12px 12px 0;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.seo-quote-wrapper .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);
}

/* ============================================
 * QUOTE META - Submitter Info
 * ============================================ */

.quote-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.submitter-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.seo-quote-wrapper .meta-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.submitter-name {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.seo-quote-wrapper .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-quote-wrapper .cta-section {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 2rem;
}

.seo-quote-wrapper .cta-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.seo-quote-wrapper .cta-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin: 0 0 2rem 0;
}

.seo-quote-wrapper .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.seo-quote-wrapper .login-link {
  display: inline-block;
  color: #f59e0b;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.seo-quote-wrapper .login-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================
 * INFO SECTION
 * ============================================ */

.seo-quote-wrapper .info-section {
  margin-bottom: 2rem;
}

.seo-quote-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-quote-wrapper .info-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
}

.seo-quote-wrapper .info-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.seo-quote-wrapper .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.seo-quote-wrapper .feature-list li {
  color: #f59e0b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-quote-wrapper .feature-list li::before {
  content: '✓';
  font-weight: bold;
}

/* ============================================
 * RESPONSIVE ADJUSTMENTS
 * ============================================ */

@media (max-width: 640px) {
  .quote-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .quote-text {
    font-size: 1.2rem;
  }

  .seo-quote-wrapper .cta-section {
    padding: 1.5rem;
  }

  .seo-quote-wrapper .cta-buttons {
    flex-direction: column;
  }

  .seo-quote-wrapper .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .seo-quote-wrapper .feature-list {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ============================================
 * DARK MODE ENHANCEMENTS
 * ============================================ */

@media (prefers-color-scheme: dark) {
  .quote-card {
    background: linear-gradient(145deg, rgb(20 30 48 / 10%), rgba(10, 15, 25 / 75%));
  }
}