/* assets/css/horoscope-daily.css */

/* ==========================================================================
   1. CẤU TRÚC LAYOUT (GRID & FRAME)
   ========================================================================== */
.daily-layout-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 20px;
    padding-bottom: 60px;
}

.sidebar-column {
    width: 300px;
    flex-shrink: 0;
}

/* [KHUNG CHÍNH] Line nhẹ bao quanh toàn bộ Post */
.main-column {
    flex: 1;
    min-width: 0;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    background: #fff;
    overflow: hidden; /* Cắt góc cho Hero */
}

/* Content Wrapper: Bóp nội dung vào 1 chút so với khung */
.post-body-content {
    padding: 25px 15px; /* PC: Padding thoáng */
}


/* ==========================================================================
   2. HERO SECTION (PHẦN ĐẦU TRANG)
   ========================================================================== */
.daily-hero {
    position: relative;
    background: linear-gradient(135deg, var(--sign-color), #2c3e50);
    border-radius: 0; /* Reset bo góc để dính liền khung */
    margin: 0;
    padding: 30px;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.daily-hero::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.1; /* Pattern nền nếu có */
}

/* Avatar Icon */
.hero-avatar {
    width: 140px; height: 140px; /* Size vừa vặn đẹp */
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    margin: 0 auto 15px auto;
    background: #fff;
    display: block;
    object-fit: cover;
}

/* Hiệu ứng bay nhẹ */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.animate-float { animation: float 4s ease-in-out infinite; }

.hero-title {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- DATE BOX (NGÀY THÁNG) --- */
.hero-date-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15); /* Kính mờ */
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 25px;
    border-radius: 12px;
    margin-top: 15px;
    backdrop-filter: blur(5px);
}

.date-big {
    font-size: 2.2rem; /* [ĐIỀU CHỈNH] Nhỏ lại cho hài hòa (Cũ là 3.5rem) */
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.date-small {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}

/* --- ASTRO NOTE --- */
.astro-note {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.8;
    margin-top: 15px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto; margin-right: auto;
}


/* ==========================================================================
   3. NAVIGATION (ĐIỀU HƯỚNG)
   ========================================================================== */
/* Nút Nay/Mai */
.date-nav-buttons {
    display: flex; justify-content: center; gap: 15px; margin-bottom: 30px;
}
.btn-nav {
    padding: 8px 20px;
    border-radius: 20px;
    background: #eee;
    color: #555;
    font-weight: 600;
    transition: 0.3s;
}
.btn-nav.active { background: var(--sign-color); color: #fff; }

/* Nút Tuần/Tháng/Năm */
.extended-nav {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px dashed #eee;
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.btn-ext {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    color: #555;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.btn-ext:hover { background: #f9f9f9; color: var(--sign-color); border-color: var(--sign-color); }
.btn-ext.highlight { background: #fff5f5; border-color: var(--sign-color); color: var(--sign-color); }


/* ==========================================================================
   4. CÁC MODULE NỘI DUNG (COMPONENTS)
   ========================================================================== */

/* Mục lục (TOC) */
.toc-wrapper {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 30px; overflow: hidden;
}
.toc-header {
    background: #f9f9f9; padding: 12px 15px; cursor: pointer; font-weight: 700;
    display: flex; justify-content: space-between; align-items: center; color: var(--sign-color);
}
.toc-list { list-style: none; padding: 15px; margin: 0; border-top: 1px solid #eee; }
.toc-list li { margin-bottom: 8px; }
.toc-wrapper.collapsed .toc-list { display: none; }

/* Summary & Lucky Grid */
.summary-box {
    background: #fff; border-left: 5px solid var(--sign-color); padding: 20px;
    border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 30px;
}
.universe-msg { background: #f0f8ff; padding: 10px 15px; border-radius: 6px; font-size: 0.95rem; color: #2c3e50; }

.lucky-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 30px; }
.lucky-card { background: #fff; padding: 15px; border-radius: 10px; border: 1px solid #eee; text-align: center; }
.lucky-card .lbl { font-size: 0.9rem; color: #666; margin-bottom: 5px; font-weight: 600; display: block; }
.lucky-card .val { font-size: 1.25rem; font-weight: 700; color: var(--sign-color); line-height: 1.4; }

/* Detail Sections (Tình yêu, sự nghiệp...) */
.detail-section {
    background: #fff; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 25px; overflow: hidden; border: 1px solid #f0f0f0;
}
.sec-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; background: #fafafa; border-bottom: 1px solid #eee;
}
.sec-title-group h3 { margin: 0; font-size: 1.1rem; color: var(--sign-color); }
.sec-body { padding: 20px; font-size: 1.15rem; line-height: 1.8; color: #333; }

/* Energy Bar */
.energy-bar-wrapper { width: 120px; height: 14px; background: #eee; border-radius: 10px; position: relative; overflow: hidden; margin-left: auto; display: flex; align-items: center; }
.energy-fill { height: 100%; background: linear-gradient(90deg, var(--sign-color), #f1c40f); border-radius: 10px; transition: width 1s ease; }
.energy-text { position: absolute; width: 100%; text-align: center; font-size: 9px; font-weight: bold; color: #333; line-height: 14px; text-shadow: 0 0 2px #fff; }

/* Action & Lifestyle */
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.action-col { padding: 20px; border-radius: 12px; }
.action-col.do { background: #e8f5e9; border: 1px solid #c8e6c9; }
.action-col.avoid { background: #ffebee; border: 1px solid #ffcdd2; }
.affirmation { grid-column: 1 / -1; text-align: center; padding: 15px; background: #fafafa; border: 1px dashed var(--sign-color); border-radius: 50px; color: #555; }

.lifestyle-wrapper { background: #fff; padding: 25px; border-radius: 12px; border: 1px solid #eee; display: flex; gap: 30px; margin-bottom: 30px; }
.life-col { flex: 1; }
.life-col h4 { border-bottom: 2px solid var(--sign-color); display: inline-block; }
.life-list { list-style: none; padding: 0; }

/* Sidebar Widget */
.sidebar-toggle-mobile { display: none; width: 100%; padding: 12px; background: #fff; border: 1px solid var(--sign-color); color: var(--sign-color); font-weight: bold; border-radius: 8px; margin-bottom: 20px; cursor: pointer; }
.sidebar-content-wrapper { display: block; }

/* Animation */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.animate-up { animation: fadeInUp 0.5s ease forwards; }


/* ==========================================================================
   5. RESPONSIVE (MOBILE ADJUSTMENTS)
   ========================================================================== */
@media (max-width: 900px) {
    /* Padding container nhỏ lại */
    .container.daily-layout-grid { padding-left: 5px; padding-right: 5px; width: 100%; max-width: 100%; }
    
    /* Layout cột */
    .daily-layout-grid { flex-direction: column; gap: 20px; }
    .sidebar-column { width: 100%; order: 2; }
    .main-column { order: 1; }
    
    /* Sidebar Mobile */
    .sidebar-toggle-mobile { display: block; }
    .sidebar-content-wrapper.collapsed { display: none; }
    
    /* Grid 2 cột trên mobile */
    .lucky-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    
    /* Các thành phần khác */
    .daily-hero { text-align: center; }
    .action-grid, .lifestyle-wrapper { grid-template-columns: 1fr; flex-direction: column; }
    .btn-ext { width: 100%; margin-bottom: 5px; }

    /* [QUAN TRỌNG] Bóp 1px trên mobile */
    .post-body-content {
        padding: 15px 5px; 
    }
}