/* ==========================================================================
   DIỆU TƯỚNG AM — STANDARDIZED DESIGN SYSTEM
   Standardized from dtademo.netlify.app & Profile DTA 2027
   ========================================================================== */

/* Google Fonts Fallback */
@import url('https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Official Diệu Tướng Am Fonts */
@font-face {
  font-family: 'dta-title';
  src: url('fonts/Philosopher-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'dta-body';
  src: url('fonts/Philosopher-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'dta-body';
  src: url('fonts/Philosopher-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'dta-darek';
  src: url('fonts/DVN-DAREK.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'dta-script';
  src: url('fonts/MTD-Attention-Script.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* Color Tokens from dtademo.netlify.app */
:root {
  --ink: #2d1c0f;          /* Nâu trầm gỗ chùa cổ */
  --plate: #1a1008;        /* Nâu đen thẫm nền */
  --plate-card: #23160b;   /* Nền card sang trọng */
  --paper: #f0ebe3;        /* Giấy xuyến chỉ / kem ngọc */
  --gold: #edc68e;         /* Vàng kim champagne */
  --gold-deep: #7e5c24;    /* Vàng đồng thau đậm */
  --gold-line: rgba(168, 123, 50, 0.35);
  --gold-glow: rgba(237, 198, 142, 0.25);
  --b-red: #8f251c;        /* Đỏ chu sa ấn triện */
  --text-muted: #b8aba0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html {
  background-color: var(--plate);
  color: var(--paper);
  font-size: 17px;
}

body {
  font-family: 'dta-body', 'Philosopher', -apple-system, sans-serif;
  background-color: var(--plate);
  color: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 1.05rem; /* ~18px base legible reading */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings typographic balance & prevent awkward wraps */
h1, h2, h3, h4 {
  text-wrap: balance;
  line-height: 1.25;
}

@media (min-width: 1024px) {
  .head-nowrap {
    white-space: nowrap;
  }
}

/* Typography Classes */
.font-dta-title {
  font-family: 'dta-title', 'Philosopher', Georgia, serif;
  font-weight: 700;
}

.font-dta-body {
  font-family: 'dta-body', 'Philosopher', sans-serif;
}

.font-dta-darek {
  font-family: 'dta-darek', 'dta-title', 'Philosopher', serif;
  letter-spacing: 0.04em;
}

.font-dta-script {
  font-family: 'dta-script', cursive;
}

/* Gold Gradient Text */
.gold-text {
  color: var(--gold);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fff7ea 0%, #edc68e 45%, #c5974c 80%, #7e5c24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Decorative Gold Borders & Lines */
.gold-border {
  border: 1px solid var(--gold-line);
}

.gold-border-glow {
  border: 1px solid var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

.roof-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* DTA Cards */
.dta-card {
  background: linear-gradient(180deg, rgba(35, 22, 11, 0.85) 0%, rgba(26, 16, 8, 0.95) 100%);
  border: 1px solid var(--gold-line);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dta-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(237, 198, 142, 0.15);
}

/* Glowing Halo Aura */
.bg-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(237, 198, 142, 0.22) 0%, rgba(126, 92, 36, 0.08) 50%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

@keyframes breathingGlow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.9;
  }
}

.animate-breathe {
  animation: breathingGlow 7s ease-in-out infinite;
}

@keyframes floatStatue {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: floatStatue 6s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--plate);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-deep);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Seal stamp (Ấn triện đỏ chuẩn Á Đông) */
.dta-seal {
  display: inline-block;
  background-color: var(--b-red);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}
