/*
Theme Name: TakHoosh Masterpiece
Theme URI: https://takhoosh.ir
Author: Gemini Architect
Description: قالب اختصاصی تک‌هوش با معماری رشد کودک و فیکس‌فوتر اپلیکیشنی
Version: 2.0
*/

/* --- RESET & FONTS --- */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --navy: #1e272e; --coral: #ff5e57; --sun: #ffa801; --teal: #0fb9b1; 
    --sky: #4bcffa; --royal: #575fcf; --bg-body: #f1f2f6; 
    --glass: rgba(255, 255, 255, 0.96); --shadow-card: 0 10px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Vazirmatn', sans-serif; background-color: var(--bg-body); color: var(--navy); padding-bottom: 140px; overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; }

/* --- HEADER --- */
header { position: sticky; top: 0; z-index: 1000; background: var(--glass); backdrop-filter: blur(15px); box-shadow: 0 4px 20px rgba(0,0,0,0.04); padding-bottom: 12px; }
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 5px 20px; }
.logo { font-size: 1.7rem; font-weight: 900; color: var(--navy); line-height: 1; }
.logo span { color: var(--coral); }
.slogan { font-size: 0.65rem; color: #808e9b; font-weight: 500; margin-top: 4px; }
.user-btn { width: 42px; height: 42px; background: #f1f2f6; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #57606f; font-size: 1.2rem; }

.nav-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 10px 20px 5px 20px; scrollbar-width: none; }
.pill { white-space: nowrap; padding: 8px 18px; border-radius: 50px; background: #fff; border: 1px solid #d2dae2; font-size: 0.8rem; color: #57606f; display: flex; align-items: center; gap: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); transition: 0.3s; font-weight: 600; cursor: pointer;}
.pill.active { background: var(--navy); color: white; border-color: var(--navy); }
.pill.active i { color: var(--sun); }

/* --- HERO --- */
.hero-wrap { padding: 20px 20px 5px 20px; }
.hero-card { background: linear-gradient(125deg, #1e272e, #3c40c6); border-radius: 28px; padding: 35px 25px; text-align: center; color: white; box-shadow: 0 20px 50px rgba(60, 64, 198, 0.3); position: relative; overflow: hidden; }
.hero-btn { background: var(--coral); color: white; padding: 12px 35px; border-radius: 50px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; box-shadow: 0 10px 25px rgba(255, 94, 87, 0.4); cursor: pointer; }

/* --- TIMELINE --- */
.sec-head { padding: 25px 20px 15px 20px; }
.sec-title { font-size: 1.2rem; font-weight: 900; position: relative; }
.sec-title::after { content: ''; position: absolute; bottom: -5px; right: 0; width: 20px; height: 20px; background: var(--sun); opacity: 0.2; border-radius: 50%; z-index: -1; }
.timeline-wrap { padding: 10px 0 35px 0; overflow-x: auto; margin-left: 20px; scrollbar-width: none; }
.timeline-track { display: flex; gap: 15px; padding-left: 20px; width: max-content; align-items: center; position: relative; }
.timeline-track::before { content: ''; position: absolute; top: 50%; left: 20px; right: 0; height: 3px; background: #d2dae2; z-index: -1; transform: translateY(-50%); }
.time-node { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 75px; opacity: 0.5; transition: 0.3s; cursor: pointer; }
.time-node.active { opacity: 1; transform: scale(1.1); }
.node-circle { width: 55px; height: 55px; background: white; border: 3px solid #d2dae2; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #aaa; box-shadow: 0 5px 10px rgba(0,0,0,0.05); }
.active .node-circle { border-color: var(--coral); background: var(--coral); color: white; box-shadow: 0 0 0 6px rgba(255, 94, 87, 0.2); }
.node-label { font-size: 0.75rem; font-weight: 700; white-space: nowrap; }

/* --- CONTENT --- */
.content-container { padding: 0 20px; min-height: 400px; }
.age-content { display: none; animation: fadeInUp 0.6s ease forwards; }
.age-content.active { display: block; }
.age-hook-card { background: linear-gradient(135deg, var(--teal), #05c46b); color: white; padding: 22px; border-radius: 22px; margin-bottom: 25px; box-shadow: 0 15px 30px rgba(15, 185, 177, 0.3); position: relative; overflow: hidden; }
.age-hook-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; position: relative; z-index: 2; }
.age-hook-card p { font-size: 0.85rem; opacity: 0.95; position: relative; z-index: 2; }
.age-hook-card i { position: absolute; bottom: -15px; left: -15px; font-size: 6rem; opacity: 0.15; transform: rotate(15deg); }

/* CATEGORY FILTER MENU */
.cat-filter-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 5px 5px 25px 5px; scrollbar-width: none; margin-bottom: 10px; }
.cat-box { min-width: 75px; height: 75px; background: white; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #f1f2f6; transition: 0.2s; cursor: pointer; }
.cat-box:active { transform: scale(0.95); }
.cat-box.active { background: var(--navy); color: white; box-shadow: 0 8px 20px rgba(30, 39, 46, 0.3); border-color: var(--navy); }
.cat-icon { font-size: 1.2rem; margin-bottom: 2px; }
.cat-box:not(.active) .cat-icon { color: var(--sun); }
.cat-title { font-size: 0.65rem; font-weight: 700; }

.post-card { background: white; border-radius: 20px; overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-card); cursor: pointer; border: 1px solid white; }
.post-img { height: 170px; width: 100%; background-size: cover; background-position: center; position: relative; }
.post-tag { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.65); backdrop-filter: blur(5px); color: white; padding: 4px 12px; border-radius: 8px; font-size: 0.7rem; font-weight: bold; }
.post-body { padding: 18px; }
.post-title { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.post-meta { display: flex; justify-content: space-between; align-items: center; color: #808e9b; font-size: 0.8rem; margin-top: 10px; }
.cta-text { color: var(--royal); font-weight: 800; }

/* --- FIXED DOCK --- */
.dock { position: fixed; bottom: 25px; left: 20px; right: 20px; height: 80px; background: var(--glass); backdrop-filter: blur(20px); border-radius: 30px; box-shadow: 0 25px 60px rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.7); display: flex; justify-content: space-between; align-items: center; padding: 0 12px; z-index: 9999; }
.dock-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #a4b0be; cursor: pointer; gap: 5px; transition: 0.3s; }
.dock-item.active { color: var(--navy); }
.dock-item i { font-size: 1.5rem; transition: 0.3s; }
.dock-item span { font-size: 0.65rem; font-weight: 700; }
.dock-fab-wrap { position: relative; top: -30px; width: 65px; height: 65px; }
.dock-fab { width: 100%; height: 100%; background: linear-gradient(135deg, var(--coral), #ff4757); border-radius: 50%; border: 5px solid var(--bg-body); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.8rem; box-shadow: 0 10px 25px rgba(255, 107, 129, 0.5); animation: pulse 2s infinite; cursor: pointer; }
.fab-label { position: absolute; bottom: -20px; width: 100%; text-align: center; font-size: 0.7rem; font-weight: 900; color: var(--navy); }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* --- SHEETS --- */
.backdrop { position: fixed; inset: 0; background: rgba(30, 39, 46, 0.7); z-index: 10000; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(4px); }
.backdrop.active { opacity: 1; visibility: visible; }
.sheet { position: fixed; bottom: -100%; left: 0; width: 100%; background: #fff; z-index: 10001; border-radius: 35px 35px 0 0; padding: 25px 20px 120px 20px; transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1); max-height: 85vh; overflow-y: auto; }
.sheet.active { bottom: 0; }
.sheet-bar { width: 50px; height: 5px; background: #e0e0e0; border-radius: 10px; margin: 0 auto 25px; }
.sheet-head { text-align: center; margin-bottom: 30px; }
.sheet-head h3 { font-size: 1.3rem; font-weight: 900; color: var(--navy); margin-bottom: 5px; }
.sheet-desc { text-align: center; color: #808e9b; font-size: 0.85rem; }

/* Grid Layout for Sheet Items */
.item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.item-box { 
    height: 110px; border-radius: 20px; position: relative; overflow: hidden; background-size: cover; background-position: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: pointer; transition: transform 0.2s; 
}
.item-box:active { transform: scale(0.97); }
.item-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 10px; }
.item-box h4 { font-size: 0.95rem; font-weight: 900; color: white; margin-bottom: 2px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); z-index: 2; }
.item-box span { font-size: 0.7rem; color: rgba(255,255,255,0.9); font-weight: 500; z-index: 2; }

/* Login */
.login-box { background: #f7f8fa; padding: 25px; border-radius: 25px; }
.form-group { margin-bottom: 15px; }
.form-input { width: 100%; padding: 14px; border-radius: 12px; border: 2px solid #e1e1e1; background: white; outline: none; }
.btn-login { width: 100%; background: var(--navy); color: white; padding: 14px; border-radius: 14px; border: none; font-weight: bold; cursor: pointer; }