/* assets/css/horoscope-weekly.css */

/* --- [FIX 1] ENERGY BAR META (TÁCH DÒNG) --- */
.e-meta {
    display: flex; /* Dàn hàng ngang */
    justify-content: space-between; /* Đẩy 2 đầu */
    align-items: center;
    font-size: 0.9rem;
    margin-top: 5px;
}
.e-meta strong { color: var(--w-theme); }
.e-meta span { font-weight: 700; color: #333; }

/* --- [FIX 3] TIMELINE COLORS (Xanh & Vàng) --- */
/* Tag chữ */
.d-tag.good { background: #eafaf1; color: #27ae60; border: 1px solid #d5f5e3; } /* Xanh lá */
.d-tag.bad { background: #fef9e7; color: #d4ac0d; border: 1px solid #f9e79f; } /* Vàng đậm */

/* Node (Chấm tròn trên timeline) */
.tl-node.good .tl-marker    { border-color: #27ae60; background: #eafaf1; } /* Xanh */
.tl-node.caution .tl-marker { border-color: #f1c40f; background: #fef9e7; } /* Vàng */

/* Các node khác giữ nguyên */
.tl-node.action .tl-marker  { border-color: #3498db; background: #ebf5fb; }
.tl-node.strong .tl-marker  { border-color: #e74c3c; background: #fdedec; transform: scale(1.4); border-width: 4px; }
.tl-node.rest .tl-marker    { border-color: #95a5a6; background: #f4f6f6; }

/* ... (GIỮ NGUYÊN CÁC PHẦN CSS KHÁC CỦA FILE HOROSCOPE-WEEKLY.CSS CŨ) ... */
/* Dưới đây là phần code khung layout cũ để bạn tiện copy paste nếu cần đè file */

.weekly-layout { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 20px; padding-bottom: 60px; }
.sidebar-column { width: 300px; flex-shrink: 0; }
.main-column-w { flex: 1; min-width: 0; border: 1px solid #e0e0e0; border-radius: 16px; background: #fff; overflow: hidden; }
.w-body-content { padding: 30px 20px; }

/* Hero */
.w-hero { position: relative; height: 250px; overflow: hidden; color: #fff; text-align: center; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.w-hero-bg { position: absolute; top:0; left:0; width:100%; height:100%; background-size: cover; background-position: center; filter: blur(2px); transform: scale(1.1); }
.w-hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); }
.w-hero-content { position: relative; z-index: 2; width: 100%; }
.w-badge { background: var(--w-theme); display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.w-title { font-size: 2.2rem; margin: 0 0 5px 0; font-weight: 800; }
.w-range { font-size: 1.1rem; opacity: 0.9; margin-bottom: 20px; font-family: monospace; }

/* Nav Pill */
.w-nav-pill a { display: inline-block; background: rgba(255,255,255,0.15); color: #fff; padding: 8px 18px; border-radius: 30px; margin: 0 5px; font-size: 0.9rem; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.2); }
.w-nav-pill a:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }
.w-nav-pill a.active { background: #fff; color: var(--w-theme); font-weight: 800; border-color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* Top Box */
.w-top-box { display: flex; gap: 20px; margin-bottom: 30px; background: #f9f9f9; padding: 20px; border-radius: 12px; border: 1px dashed #ddd; }
.w-message { flex: 1; }
.msg-label { color: var(--w-theme); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; display: block; margin-bottom: 5px; }
.msg-text { font-size: 1.2rem; font-style: italic; color: #333; line-height: 1.5; font-family: serif; }
.w-energy-chart { width: 200px; text-align: right; }
.e-label { display: block; font-size: 0.8rem; color: #666; margin-bottom: 5px; }
.e-bar-bg { background: #ddd; height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 5px; }
.e-bar-fill { height: 100%; background: var(--w-theme); border-radius: 4px; }

/* Grids */
.w-focus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 30px; }
.focus-card { background: #fff; border: 1px solid #eee; padding: 15px; border-radius: 8px; transition: 0.3s; }
.focus-card:hover { border-color: var(--w-theme); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.f-head { display: flex; align-items: center; margin-bottom: 8px; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; }
.f-icon { font-size: 1.2rem; margin-right: 8px; }
.f-name { font-weight: 700; color: #333; flex: 1; }
.f-star { color: #f1c40f; font-weight: bold; font-size: 0.9rem; }
.f-desc { font-size: 0.95rem; color: #555; line-height: 1.4; margin: 0; }

.w-sections-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 30px; }
.w-sec-card { background: #fff; }
.w-sec-title { font-size: 1.3rem; color: var(--w-theme); margin-bottom: 15px; border-left: 4px solid var(--w-theme); padding-left: 10px; }
.w-sec-body { font-size: 1rem; line-height: 1.6; color: #444; text-align: justify; }

/* Timeline Wrapper */
.w-timeline-box { margin-bottom: 30px; border-top: 1px solid #eee; padding-top: 25px; }
.box-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.box-head { font-size: 1.3rem; margin: 0; }
.d-tag { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; margin-left: 10px; }

.visual-timeline-wrapper { position: relative; padding: 25px 0; margin-top: 10px; }
.tl-line { position: absolute; top: 50%; left: 0; width: 100%; height: 6px; background: linear-gradient(to right, #e0e0e0, var(--w-theme), #e0e0e0); border-radius: 3px; z-index: 1; transform: translateY(-50%); opacity: 0.6; }
.visual-timeline { display: flex; justify-content: space-between; position: relative; z-index: 2; }
.tl-node { text-align: center; width: 40px; display: flex; flex-direction: column; align-items: center; }
.tl-marker { width: 20px; height: 20px; background: #fff; border: 4px solid #ccc; border-radius: 50%; margin-bottom: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: transform 0.3s; }
.tl-node:hover .tl-marker { transform: scale(1.3); }
.tl-day { font-weight: 700; color: #666; font-size: 0.9rem; }

/* Checklist & Tip */
.w-checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.chk-col { padding: 20px; border-radius: 8px; }
.chk-col h4 { margin-top: 0; border-bottom: 1px dashed rgba(0,0,0,0.1); padding-bottom: 10px; }
.chk-col.do { background: #eafaf1; color: #27ae60; }
.chk-col.avoid { background: #fdedec; color: #c0392b; }
.chk-col ul { list-style: none; padding: 0; margin: 0; }
.chk-col ul li { padding: 5px 0; position: relative; padding-left: 20px; color: #333; }
.chk-col.do li::before { content: '✓'; position: absolute; left: 0; font-weight: bold; }
.chk-col.avoid li::before { content: '✕'; position: absolute; left: 0; font-weight: bold; }

.w-tip-box { background: #fff8e1; border: 1px solid #ffecb3; padding: 15px; border-radius: 8px; display: flex; align-items: center; gap: 15px; }
.tip-icon { font-size: 2rem; }
.tip-content strong { display: block; color: #f39c12; margin-bottom: 3px; }
.tip-content p { margin: 0; color: #555; }

/* Error State */
.w-error-state { text-align: center; padding: 60px 20px; background: #fdfdfd; border: 2px dashed #e0e0e0; border-radius: 16px; margin-bottom: 30px; }
.error-icon { font-size: 4rem; margin-bottom: 15px; opacity: 0.3; animation: pulse 2s infinite; }
.w-error-state h3 { color: #555; margin: 0 0 10px 0; font-size: 1.5rem; }
.w-error-state p { color: #888; font-size: 1rem; line-height: 1.6; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* Nav & Resp */
.extended-nav { margin-top: 30px; text-align: center; padding-top: 20px; border-top: 1px solid #eee; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn-ext { padding: 10px 20px; border: 1px solid #ddd; border-radius: 30px; color: #555; font-size: 0.9rem; }
.btn-ext:hover { border-color: var(--w-theme); color: var(--w-theme); background: #fcfcfc; }
.btn-ext.highlight { border-color: var(--w-theme); color: var(--w-theme); background: #fffbfb; }

.w-sb-toggle { display: none; width: 100%; padding: 12px; background: #333; color: #fff; border: none; border-radius: 8px; margin-bottom: 20px; }

@media (max-width: 900px) {
    .weekly-layout { flex-direction: column; }
    .sidebar-column { width: 100%; order: 2; }
    .main-column-w { order: 1; }
    .w-top-box, .w-focus-grid, .w-sections-grid, .w-checklist-grid { grid-template-columns: 1fr; flex-direction: column; }
    .w-energy-chart { width: 100%; text-align: left; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #ddd; }
    .w-sb-toggle { display: block; }
    .sb-content.collapsed-mobile { display: none; }
    .sb-content.open-mobile { display: block; }
    .w-body-content { padding: 20px 10px; }
    .tl-day { font-size: 0.75rem; }
    .tl-marker { width: 14px; height: 14px; border-width: 3px; }
}