/* assets/css/horoscope-monthly.css */

/* --- LAYOUT GRID --- */
.monthly-layout {
    display: flex; flex-wrap: wrap; gap: 40px;
    padding-top: 20px; padding-bottom: 60px;
}
.m-sidebar { width: 320px; flex-shrink: 0; }

/* [REQ 5] KHUNG VIỀN MAIN COLUMN */
.main-column {
    flex: 1; min-width: 0;
    border: 1px solid #e0e0e0; /* Line bao quanh */
    border-radius: 16px;       /* Bo góc */
    background: #fff;
    overflow: hidden;          /* Cắt góc */
}

/* [REQ 5] BÓP CONTENT 2PX (Padding bên trong) */
.m-body-content {
    /* Padding trên dưới 25px, trái phải 10px (bóp nhẹ) */
    padding: 25px 10px; 
}

/* --- HERO STYLE --- */
.m-hero {
    position: relative; height: 300px; background-size: cover; background-position: center;
    border-radius: 0; /* Reset bo góc để dính khung */
    margin-bottom: 0; /* Dính liền body */
    display: flex; align-items: flex-end;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.m-hero-content { padding: 30px; width: 100%; color: #fff; z-index: 2; }
.m-tag { background: var(--m-theme); padding: 5px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; display: inline-block; }
.m-title { font-size: 2.5rem; margin: 0 0 20px 0; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.m-nav-pill a { color: #fff; background: rgba(255,255,255,0.2); padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; margin-right: 8px; backdrop-filter: blur(5px); transition: 0.3s; }
.m-nav-pill a:hover, .m-nav-pill a.active { background: #fff; color: var(--m-theme); }

/* --- [REQ 1] INFO GRID STYLE --- */
.m-cover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; }
.m-info-card {
    background: #fdfdfd; padding: 15px 10px; border-radius: 10px; border: 1px solid #eee; text-align: center;
    transition: transform 0.2s;
}
.m-info-card:hover { transform: translateY(-3px); border-color: var(--m-theme); }

/* Icon riêng cho grid */
.grid-icon { display: block; font-size: 1.5rem; margin-bottom: 5px; }
.m-info-card .lbl { display: block; font-size: 0.75rem; color: #888; text-transform: uppercase; margin-bottom: 5px; letter-spacing: 0.5px; }
.m-info-card .val { font-weight: 700; color: #333; font-size: 1rem; }
.m-info-card .val-sm { font-weight: 600; color: #333; font-size: 0.9rem; }
.m-info-card a:hover { color: var(--m-theme); text-decoration: underline; }
.color-dots { display: flex; justify-content: center; gap: 5px; margin-bottom: 5px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,0.1); }
.zodiac-links a { display: block; font-size: 0.85rem; color: #555; }

/* HIGHLIGHT & TOC */
.m-highlight { background: #fff; border: 2px solid var(--m-theme); padding: 25px; border-radius: 12px; position: relative; margin-bottom: 30px; }
.energy-tag { position: absolute; top: -15px; left: 20px; background: var(--m-theme); color: #fff; padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.m-highlight h3 { margin-top: 10px; color: var(--m-theme); font-size: 1.2rem; }
.m-highlight p { font-style: italic; color: #555; font-size: 1.05rem; margin-bottom: 0; line-height: 1.6; }

.m-toc { background: #fff; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 40px; }
.toc-head { padding: 12px 15px; background: #f5f5f5; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; }
.toc-body { padding: 15px; border-top: 1px solid #ddd; list-style: none; margin: 0; }
.m-toc.collapsed .toc-body { display: none; }

/* --- SECTIONS --- */
.m-sec-block { margin-bottom: 35px; }
.sec-title { font-size: 1.4rem; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 15px; color: #333; }
.sec-content { font-size: 1.1rem; line-height: 1.8; color: #444; text-align: justify; }

/* --- [REQ 3] UNIVERSE QUOTE STYLE --- */
.universe-quote-box {
    margin: 40px 0;
    text-align: center;
}
.quote-content {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px dashed var(--m-theme);
    position: relative;
    display: inline-block;
    max-width: 80%;
}
.quote-icon { font-size: 3rem; color: var(--m-theme); opacity: 0.3; line-height: 1; display: block; margin-bottom: 10px; }
.quote-content p { font-size: 1.3rem; font-family: var(--title-font); font-style: italic; color: #333; margin: 0 0 15px 0; }
.quote-author { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: #888; }

/* --- [REQ 4] BUTTONS --- */
.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 { display: inline-block; padding: 10px 20px; background: #fff; border: 1px solid #ddd; border-radius: 50px; color: #555; font-weight: 600; transition: all 0.2s; font-size: 0.9rem; }
.btn-ext:hover { background: #f9f9f9; color: var(--m-theme); border-color: var(--m-theme); }
.btn-ext.highlight { background: #fff5f5; border-color: var(--m-theme); color: var(--m-theme); }

/* SIDEBAR & RESPONSIVE */
.sb-toggle-btn { display: none; width: 100%; padding: 12px; background: #333; color: #fff; border: none; border-radius: 8px; margin-bottom: 20px; cursor: pointer; font-weight: bold; }

@media (max-width: 900px) {
    .monthly-layout { flex-direction: column; }
    .m-sidebar { width: 100%; order: 2; }
    .m-main { order: 1; }
    
    .m-cover-grid { grid-template-columns: 1fr 1fr; }
    
    .sb-toggle-btn { display: block; }
    .sb-content.collapsed-mobile { display: none; }
    .sb-content.open-mobile { display: block; animation: slideDown 0.3s; }
    
    .m-body-content { padding: 20px 5px; /* Mobile bóp nhỏ hơn chút */ }
    .quote-content { max-width: 100%; padding: 20px; }
}
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.animate-up { animation: fadeInUp 0.5s ease forwards; }