/* ===================================================
   ACADEMY & PSYCHOLOGY BOOK PUBLISHING DESIGN SYSTEM
   Phong cách Thiền định, Triết học, Phật giáo & Tâm lý học
   Tone màu chủ đạo: Xanh lá mạ tươi mát (Fresh Lime Green) & Nền sáng tinh khiết (Clean Light Background)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&family=Cinzel:wght@600;700;800&display=swap');

:root {
  --bg-zen: #F5F9E6; /* Clean Off-white */
  --surface: #FFFFFF;
  --surface-card: #FFFFFF;
  --text-main: #1C2621; /* Charcoal Slate ngả rêu trầm */
  --text-muted: #56675E;
  --border-light: #E5E9E1;
  
  /* Bảng màu chuẩn từ hình ảnh người dùng cung cấp */
  /* Mã 1: #234C20 (Xanh rừng thiền tịnh) */
  /* Mã 2: #367F2D (Xanh lá chủ đạo chính - Rich Green) */
  /* Mã 3: #77AB59 (Xanh lá xô thơm - Sage Green) */
  /* Mã 4: #C9DF8A (Xanh cốm non - Tea Green) */
  /* Mã 5: #F1F7DB (Kem trắng ánh xanh dịu) */
  --lime-primary: #367F2D; /* Mã thứ 2: Màu chủ đạo chính */
  --lime-vibrant: #77AB59; /* Mã thứ 3: Điểm nhấn phụ & huy hiệu */
  --lime-dark: #234C20;    /* Mã thứ 1 */
  --lime-light: #F1F7DB;   /* Mã thứ 5 */
  --lime-border: #C9DF8A;  /* Mã thứ 4 */
  
  --zen-dark: #234C20;
  --zen-dark-surface: #193617;
  
  --btn-primary: #234C20; /* Màu xanh đầu tiên trong ảnh */
  --btn-primary-hover: #367F2D; /* Màu xanh thứ 2 */
  
  --radius-card: 22px;
  --radius-btn: 14px;
}

.btn-primary-zen {
  background-color: var(--btn-primary);
  color: #FFFFFF;
  transition: all 0.2s ease;
}
.btn-primary-zen:hover {
  background-color: var(--btn-primary-hover);
}

body {
  background-color: var(--bg-zen);
  color: var(--text-main);
  font-family: 'Lora', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
  letter-spacing: -0.012em;
  -webkit-tap-highlight-color: transparent;
}

/* Font mang âm hưởng triết lý, thiền định, phật giáo & tâm lý học - Bộ số 6: Philosopher (Tiêu đề) + Lora (Nội dung) */
h1, h2, h3, h4, .font-zen, .font-editorial, .font-philosopher {
  font-family: 'Philosopher', 'Lora', Georgia, serif;
  letter-spacing: -0.01em;
}

.font-lora {
  font-family: 'Lora', Georgia, serif;
}

.font-playfair {
  font-family: 'Playfair Display', 'Lora', Georgia, serif;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

/* Tiêu đề phối màu Trắng - Xanh mạ đặc trưng hoặc Xanh rêu - Xanh mạ */
.zen-title-gradient {
  background: linear-gradient(135deg, #234C20 45%, #367F2D 85%, #77AB59 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zen-glow-lime {
  box-shadow: 0 10px 25px -5px rgba(54, 127, 45, 0.25);
}

/* Realistic 3D Book Presentation */
.book-spine-wrapper {
  perspective: 1000px;
}

.real-book-cover {
  position: relative;
  background-size: cover;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 
    -4px 0 0 -1px #d1d5db,
    -8px 0 0 -2px #e5e7eb,
    0 12px 28px -4px rgba(15, 29, 54, 0.2),
    0 4px 10px -2px rgba(15, 29, 54, 0.08);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  overflow: hidden;
}

.real-book-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(to right, rgba(0,0,0,0.25) 0%, rgba(255,255,255,0.15) 35%, rgba(0,0,0,0.15) 100%);
  z-index: 10;
  border-right: 1px solid rgba(0,0,0,0.1);
}

.real-book-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

.book-card-container:hover .real-book-cover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 
    -4px 0 0 -1px #d1d5db,
    -8px 0 0 -2px #e5e7eb,
    0 20px 35px -5px rgba(15, 29, 54, 0.28),
    0 8px 16px -4px rgba(15, 29, 54, 0.12);
}

/* Tab active styles */
.tab-active {
  color: var(--brand-blue);
  border-bottom: 2px solid var(--brand-blue);
  font-weight: 700;
}

/* Clean Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Modals Slide Animation */
@keyframes modalSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slide-up {
  animation: modalSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.2s ease-out forwards;
}

/* Custom Checkbox Pill */
.checkbox-pill input:checked + div {
  border-color: #1D58D8;
  background-color: #EFF6FF;
}

/* Subtle Shimmer for High Value Deal */
@keyframes subtleShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-badge {
  background: linear-gradient(90deg, #F59E0B 0%, #FDE68A 50%, #F59E0B 100%);
  background-size: 200% 100%;
  animation: subtleShimmer 4s infinite linear;
}

/* ===================================================
   SCROLL REVEAL (Hiệu ứng cuộn xuống item tự chạy lướt lên)
   =================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
