:root {
  --primary-color: #10b981;
  --secondary-color: #059669;
  --accent-color: #fcd34d;
  --text-color: #1f2937;
  --light-text-color: #6b7280;
  --background-color: #ecfdf5;
  --card-background: #ffffff;
}

body {
  font-family: 'Noto Sans Thai', sans-serif;
  color: var(--text-color);
}

/* Custom styling for content images */
.content-image {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.content-image:hover {
  transform: scale(1.02);
}

/* Code block styling */
pre {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary-color);
}

code {
  font-family: 'Courier New', Courier, monospace;
  color: #374151;
}

.syntax-highlighted {
  color: #374151;
}

.syntax-highlighted .keyword {
  color: #8b5cf6;
}

.syntax-highlighted .string {
  color: #10b981;
}

.syntax-highlighted .comment {
  color: #9ca3af;
  font-style: italic;
}

/* Chapter content styling */
.chapter-content h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.chapter-content h3 {
  color: var(--secondary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.chapter-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.chapter-content ul, .chapter-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.chapter-content li {
  margin-bottom: 0.5rem;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 0.75rem;
  text-align: left;
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .chapter-content h2 {
    font-size: 1.5rem;
  }
  
  .chapter-content h3 {
    font-size: 1.25rem;
  }
  
  table {
    display: block;
    overflow-x: auto;
  }
}

/* GenZ style elements */
.genz-card {
  border-radius: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.genz-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.genz-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.genz-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Animation for page transitions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

main {
  animation: fadeIn 0.5s ease-out;
}
