/* =========================================
   File: assets/css/post.css
   Organized Structure:
   1. Variables
   2. Typography & Core Layout
   3. Cards & Tables
   4. Special Elements (Important/Disclaimer)
   5. Bottom Sections (Share & Latest)
   6. Media Queries (Mobile Fix Included)
========================================= */

/* --- 1. Variables --- */
:root {
    --table-head: #f5f5f5;
    --table-hover: #f1f1f1;
    --important-bg: #fffde7;
    --important-border: #ffcc80;
    --important-text: #e65100;
    --disclaimer-bg: #ffebee;
    --disclaimer-text: #222222;
}

body.dark-mode {
    --table-head: #2c2c2c;
    --table-hover: #2a2a2a;
    --important-bg: #3e2723;
    --important-border: #ff9800;
    --important-text: #ffb74d;
    --disclaimer-bg: #4a0000;
    --disclaimer-text: #ffcdd2;
}

/* --- 2. Typography & Core Layout --- */
.post-heading { text-align: center; margin-bottom: 25px; }
.post-heading h2 { font-size: 1.8rem; color: var(--primary-text); margin-bottom: 15px; line-height: 1.4; }

.dates { display: inline-block; background: var(--card-bg); padding: 10px 20px; border-radius: 6px; border: 1px dashed var(--primary); margin-bottom: 15px; font-family: monospace; font-size: 0.95rem; color: var(--text-light); }
.description { background: var(--card-bg); padding: 18px; border-radius: 8px; box-shadow: 0 1px 4px var(--overlay-bg); margin-bottom: 25px; line-height: 1.7; font-size: 1.05rem; text-align: left; }

.post-list { list-style: none; padding: 0; }
.post-list li { margin-bottom: 12px; padding-left: 25px; position: relative; line-height: 1.5; }
.post-list li::before { content: '👉'; position: absolute; left: 0; top: 0; }

.step-list { padding-left: 20px; line-height: 1.6; }
.step-list li { margin-bottom: 10px; }

/* --- 3. Cards & Tables --- */
.cards-container { display: flex; flex-wrap: wrap; gap: 20px; }
.card { background: var(--card-bg); border-radius: 8px; padding: 20px; box-shadow: 0 2px 6px var(--overlay-bg); flex: 1 1 calc(50% - 20px); box-sizing: border-box; border: 1px solid var(--border); }
.card.full-width { flex: 1 1 100%; }
.card h3 { border-bottom: 2px solid var(--primary); padding-bottom: 10px; margin-bottom: 15px; color: var(--text-dark); font-size: 1.3rem; }

.card table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.card table th, .card table td { border: 1px solid var(--border); padding: 12px; text-align: left; font-size: 0.95rem; }
.card table th { background: var(--table-head); color: var(--text-dark); }
.card table tr:hover { background: var(--table-hover); }

/* --- 4. Special Elements --- */
.card.important { background: var(--important-bg); border-color: var(--important-border); }
.card.important h3 { border-bottom-color: var(--important-border); color: var(--important-text); }
.card.important a { display: inline-block; background: var(--primary); color: var(--fixed-white); padding: 8px 16px; border-radius: 4px; font-weight: bold; text-align: center; }
.card.important a:hover { background: var(--primary-hover); color: var(--fixed-white); }

.disclaimer { background: var(--disclaimer-bg); padding: 15px; border-radius: 8px; margin-top: 30px; border-left: 5px solid var(--danger); font-size: 0.95rem; line-height: 1.5; color: var(--disclaimer-text); }

/* --- 5. Bottom Sections (Share & Latest) --- */
.share-section { margin: 30px 0; text-align: center; padding: 15px; background: var(--card-bg); border-radius: 8px; box-shadow: 0 1px 4px var(--overlay-bg); border: 1px solid var(--border); }
.share-section h4 { margin-bottom: 15px; color: var(--text-dark); }
.share-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 5px; color: var(--fixed-white); font-weight: bold; font-size: 0.95rem; transition: transform 0.2s; }
.share-btn:hover { transform: translateY(-2px); color: var(--fixed-white); }
.btn-whatsapp { background: var(--success); }
.btn-telegram { background: var(--info); }
.btn-facebook { background: var(--link-color); }

.latest-updates-box { margin-top: 30px; background: var(--card-bg); padding: 20px; border-radius: 8px; border: 1px solid var(--border); }
.latest-updates-box h3 { border-bottom: 2px solid var(--primary); padding-bottom: 10px; margin-bottom: 15px; color: var(--primary); }
.latest-list { list-style: none; padding: 0; }
.latest-list li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.latest-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.latest-list a { color: var(--link-color); font-weight: 500; display: flex; align-items: center; }
.latest-list a:hover { text-decoration: underline; }

/* --- 6. Media Queries (Mobile Fix Included) --- */
@media (max-width: 768px) {
    .card { flex: 1 1 100%; padding: 15px; }
    .post-heading h2 { font-size: 1.4rem; }
    .description, .post-list li, .step-list li { font-size: 0.95rem; line-height: 1.5; }
    .card table th, .card table td { font-size: 0.85rem; padding: 8px; }
}