/**
 * Example Sentences Section Styles
 * Beautiful, readable design for example sentences
 */

/* Section Container */
.example-sentences-section {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.example-sentences-section h2 {
  color: white;
  margin: 0 0 8px 0;
  font-size: 1.8rem;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.example-sentences-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 24px 0;
  font-size: 1rem;
  font-weight: 400;
}

/* Sentences Container */
.sentences-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Individual Sentence Card */
.sentence-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sentence-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.sentence-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Sentence Number */
.sentence-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* Sentence Content */
.sentence-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Chinese Text */
.sentence-chinese {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* Pinyin */
.sentence-pinyin {
  font-size: 1.1rem;
  color: #667eea;
  font-style: italic;
  font-family: 'Arial', sans-serif;
  line-height: 1.5;
}

/* English Translation */
.sentence-english {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .example-sentences-section {
    padding: 20px;
    margin: 24px 0;
  }

  .example-sentences-section h2 {
    font-size: 1.5rem;
  }

  .sentence-card {
    grid-template-columns: 32px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .sentence-number {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .sentence-chinese {
    font-size: 1.2rem;
  }

  .sentence-pinyin {
    font-size: 1rem;
  }

  .sentence-english {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .example-sentences-section {
    padding: 16px;
    margin: 20px 0;
    border-radius: 8px;
  }

  .example-sentences-section h2 {
    font-size: 1.3rem;
  }

  .example-sentences-section .section-subtitle {
    font-size: 0.9rem;
  }

  .sentence-card {
    grid-template-columns: 28px 1fr;
    gap: 10px;
    padding: 14px;
  }

  .sentence-number {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .sentence-chinese {
    font-size: 1.1rem;
  }

  .sentence-pinyin {
    font-size: 0.95rem;
  }

  .sentence-english {
    font-size: 0.9rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .sentence-card {
    background: #2d3748;
  }

  .sentence-chinese {
    color: #f7fafc;
  }

  .sentence-pinyin {
    color: #90cdf4;
  }

  .sentence-english {
    color: #cbd5e0;
    border-top-color: #4a5568;
  }
}

/* Print Styles */
@media print {
  .example-sentences-section {
    background: none;
    border: 2px solid #667eea;
    page-break-inside: avoid;
  }

  .example-sentences-section h2,
  .example-sentences-section .section-subtitle {
    color: #000;
    text-shadow: none;
  }

  .sentence-card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    page-break-inside: avoid;
  }

  .sentence-card::before {
    display: none;
  }

  .sentence-card:hover {
    transform: none;
  }

  .sentence-number {
    background: #667eea;
    box-shadow: none;
  }
}

/* Accessibility */
.sentence-card:focus-within {
  outline: 3px solid #667eea;
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .sentence-card {
    border: 2px solid #000;
  }

  .sentence-chinese,
  .sentence-pinyin,
  .sentence-english {
    color: #000;
  }

  .sentence-number {
    background: #000;
    color: #fff;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .sentence-card {
    transition: none;
  }

  .sentence-card:hover {
    transform: none;
  }
}
