/* =========================================
   Bói Tarot Hằng Ngày – CSS (1 Lá)
========================================= */

/* Palette riêng (nếu muốn chỉnh) */
:root {
    --td-bg: #090813;
    --td-text: #f5e9ff;
    --td-white: #fff;
    --td-purple-1: #8b5cf6;
    --td-purple-2: #6d28d9;
    --td-accent: #f97316;
    --td-soft: rgba(139, 92, 246, .45);
    --td-shadow: rgba(0, 0, 0, .55);
}

/* Scope tổng */
#tarot-daily-app.tarot-daily-theme {
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 16px 3px;
    color: var(--td-text);
}

/* Hero */
#tarot-daily-app .td-hero {
    text-align: center;
    margin: 6px 0 16px;
}

#tarot-daily-app .td-hero-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow: 0 10px 30px var(--td-soft);
}

#tarot-daily-app .td-hero-sub {
    font-size: 14px;
    opacity: .92;
    letter-spacing: .08em;
}

/* Controls */
#tarot-daily-app .td-controls {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 10px;
    max-width: 640px;
    margin: 10px auto 6px;
}

#tarot-daily-app .td-select-wrap {
    width: 100%;
    position: relative;
}

#tarot-daily-app .td-select-wrap select,
#tarot-daily-app .td-btn-cta {
    width: min(640px, 86vw);
    box-sizing: border-box;
}

/* Select */
#tarot-daily-app .td-select-wrap select {
    appearance: none;
    height: 52px;
    padding: 12px 44px 12px 16px;
    border-radius: 12px;
    border: 2px solid rgba(196, 166, 255, .9);
    background: #fff;
    color: #111827;
    font-weight: 700;
    letter-spacing: .06em;
    box-shadow: 0 10px 22px rgba(108, 53, 255, .25),
        inset 0 0 0 1px rgba(177, 140, 255, .18);
}

#tarot-daily-app .td-select-wrap::after {
    content: "▾";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--td-purple-1);
    font-size: 18px;
}

#tarot-daily-app .td-select-wrap select:has(option[value=""]:checked) {
    color: #7a6f9a;
}

/* Button */
#tarot-daily-app .td-btn-cta {
    height: 54px;
    padding: 0 26px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff;
    background: linear-gradient(180deg, var(--td-purple-1), var(--td-purple-2));
    box-shadow: 0 14px 32px var(--td-shadow),
        inset 0 0 0 2px rgba(255, 255, 255, .14);
}

#tarot-daily-app .td-btn-cta:disabled {
    filter: grayscale(1) brightness(.85);
    cursor: not-allowed;
}

/* Step text */
#tarot-daily-app .td-step-text {
    text-align: center;
    margin: 10px 0 8px;
    font-size: 15px;
    opacity: .95;
}

/* Nền không tràn ngang */
body,
#tarot-daily-app {
    overflow-x: hidden;
}

/* Mobile */
@media (max-width:480px) {
    #tarot-daily-app.tarot-daily-theme {
        padding: 20px 8px 32px;
    }

    #tarot-daily-app .td-hero-title {
        font-size: 22px;
    }
}
/* ===== GRID CHỌN CHỦ ĐỀ (5 LÁ) ===== */
#tarot-daily-app .td-topic-grid{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:16px;
  margin:10px auto 6px;
  max-width:880px;
}

#tarot-daily-app .td-topic-card{
  position:relative;
  width:140px;
  border:0;
  padding:10px 6px 12px;
  border-radius:16px;
  background:transparent;
  cursor:pointer;
  transform:translateY(0) scale(1);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease;
  box-shadow:0 0 0 1px rgba(148,163,255,.25);
}

#tarot-daily-app .td-topic-card:hover{
  transform:translateY(-3px) scale(1.02);
  box-shadow:0 12px 26px rgba(0,0,0,.45);
}

/* Ảnh lá chủ đề */
#tarot-daily-app .td-topic-img{
  width:100%;
  aspect-ratio:5/7;
  border-radius:12px;
  background-size:cover;
  background-position:center;
  box-shadow:0 12px 26px rgba(0,0,0,.45);
}

/* Label phía trên (giống ảnh mẫu: chữ xanh) */
#tarot-daily-app .td-topic-label{
  text-align:center;
  margin-bottom:6px;
  font-size:15px;
  font-weight:700;
  color:#16a34a; /* xanh lá, bạn thích đổi thì đổi */
}

/* Trạng thái đang chọn */
#tarot-daily-app .td-topic-card.is-active{
  background:radial-gradient(circle at top,#f97316 0,#581c87 40%,transparent 70%);
  box-shadow:0 18px 40px rgba(0,0,0,.7);
  transform:translateY(-6px) scale(1.04);
}

#tarot-daily-app .td-topic-card.is-active .td-topic-label{
  color:#fef3c7; /* vàng kem nổi bật */
}

/* Ẩn select cũ */
#tarot-daily-app .td-topic-select-hidden{
  display:none;
}

/* Responsive */
@media (max-width:480px){
  #tarot-daily-app .td-topic-card{
    width:110px;
    padding:8px 4px 10px;
  }
}
.td-meaning-cta-wrap{
  margin-top: 18px;
  text-align: center;
}

.td-btn-meaning.is-disabled{
  opacity: 0.7;
  cursor: default;
}
/* ==== SLIDER CHỦ ĐỀ – 1 HÀNG KÉO NGANG ==== */
#tarot-daily-app .td-topic-grid{
  display:flex !important;
  flex-wrap:nowrap !important;
  overflow-x:auto;
  overflow-y:hidden;
  gap:0px;
  padding:10px 14px 4px;
  margin:18px auto 8px;
  max-width:100%;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  position:relative;
}

/* Mỗi card là 1 "slide" */
#tarot-daily-app .td-topic-card{
  flex:0 0 150px !important;   /* chiều rộng slide */
  max-width:180px;
  border-radius:18px;
  scroll-snap-align:start;
}

/* Label bên trên */
#tarot-daily-app .td-topic-card .td-topic-label{
  font-size:20px;
  line-height:1.1;
  text-align:center;
  white-space:nowrap;          /* không xuống dòng */
  margin-top:10px;
}

/* Ảnh nền card */
#tarot-daily-app .td-topic-card .td-topic-img{
  margin-top:12px;
  height:180px;
  border-radius:18px;
  background-size:cover;
  background-position:center;
}

/* Mobile nhỏ thì slide hẹp hơn 1 chút */
@media (max-width:480px){
  #tarot-daily-app .td-topic-card{
    flex-basis:130px !important;
    max-width:130px;
  }
  #tarot-daily-app .td-topic-card .td-topic-label{
    font-size:18px;
  }
}

/* Thanh trượt nổi bật để user biết có thể vuốt */
#tarot-daily-app .td-topic-grid::-webkit-scrollbar{
  height:10px;
}
#tarot-daily-app .td-topic-grid::-webkit-scrollbar-track{
  background:rgba(255,255,255,.08);
  border-radius:999px;
}
#tarot-daily-app .td-topic-grid::-webkit-scrollbar-thumb{
  background:#a855f7;
  border-radius:999px;
}
#tarot-daily-app .td-topic-grid{
  scrollbar-width:thin;
  scrollbar-color:#a855f7 rgba(255,255,255,.08);
}
#tarot-daily-app .td-topic-hint{
  text-align:center;
  font-size:13px;
  opacity:0.8;
  margin-top:4px;
}
/* Tăng khoảng cách giữa caption lá bài và nút xem ý nghĩa */
#tarot-daily-app #td-view-meaning{
  display:block;
  margin: 26px auto 0;   /* trước có thể đang ~12–16px */
}

/* ===== STYLE Ô KẾT QUẢ – NỀN TRẮNG, CHỮ ĐEN, VIỀN CAM ===== */
#tarot-daily-app .td-meaning-box {
    background: #ffffff !important;
    /* nền trắng */
    color: #111827 !important;
    /* chữ đen */
    padding: 24px 30px;
    border-radius: 24px;
    /* bo tròn giống hình 2 */
    border: 2px solid #f97316;
    /* viền cam */
    box-shadow: 0 18px 40px rgba(0, 0, 0, .06);
    /* bóng nhẹ như card trắng */
}

/* Tiêu đề + dòng "Hướng lá bài" cũng chuyển sang tông đen */
#tarot-daily-app .td-meaning-title,
#tarot-daily-app .td-meaning-orient {
    color: #111827 !important;
}

/* Các đoạn văn bên trong ô kết quả */
#tarot-daily-app .td-meaning-box p {
    color: #111827 !important;
}
/* Bói Tarot 1 lá – ô kết quả: nền trắng, chữ đen, viền cam + hào quang mạnh */
#tarot-daily-app .td-meaning-box{
  background:#ffffff;
  color:#111827;
  border-radius:28px;
  border:2px solid #f97316;

  /* Hào quang cam quanh ô (2 lớp) */
  box-shadow:
    0 0 0 1px rgba(249,115,22,0.7),      /* viền cam đậm sát mép */
    0 0 40px 15px rgba(249,115,22,0.55); /* vòng sáng tỏa rộng */
}
