/* ==========================================
   MYTOOLSWIFT: EMPIRE STYLESHEET (2026)
   Global Reset & Variables
========================================== */
:root {
    /* Light theme (default) */
    --color-primary: #2b579a;
    --color-danger: #E11D48;
    --color-bg: #fefefe;               
    --color-card: #ffffff;             
    --tool-card-bg: #eef2f6;           
    --color-header-bg: #ffffff;        
    --color-text-main: #0f172a;
    --color-text-muted: #334155;
    --color-border: #e2e8f0;
    --color-footer-bg: #0f172a;
    --color-footer-text: #e2e8f0;
    --color-footer-text-muted: #94a3b8;
    --color-placeholder-bg: var(--color-bg);   
    --color-placeholder-text: #475569;
    --header-height: 70px;
    --font-main: system-ui, -apple-system, sans-serif;
}

/* Dark theme */
[data-theme="dark"] {
    --color-primary: #3b82f6;
    --color-danger: #f43f5e;
    --color-bg: #0a0f1a;
    --color-card: #1e293b;
    --tool-card-bg: #2d3a4f;           /* changed from #1e293b */
    --color-header-bg: #0a0f1a;
    --color-text-main: #f1f5f9;
    --color-text-muted: #cbd5e1;
    --color-border: #2d3a4f;
    --color-footer-bg: #020617;
    --color-footer-text: #cbd5e1;
    --color-footer-text-muted: #64748b;
    --color-placeholder-bg: #1e293b;
    --color-placeholder-text: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-main); }

html, body { height: 100%; margin: 0; }
body { background-color: var(--color-bg); color: var(--color-text-main); display: flex; flex-direction: column; }
.page-wrapper { flex: 1 0 auto; }

/* --- MASTER HEADER & NAVIGATION --- */
.master-header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    background: var(--color-header-bg); border-bottom: 1px solid var(--color-border);
    z-index: 10000; box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.header-container {
    max-width: 1400px; margin: 0 auto; height: 100%; display: flex;
    justify-content: space-between; align-items: center; padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 22px; font-weight: 800; color: var(--color-text-main); }

.hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; z-index: 10001; padding: 10px; }
.hamburger span { display: block; width: 24px; height: 3px; background-color: var(--color-text-main); border-radius: 3px; }

body:has(.nav-menu.active) .hamburger { opacity: 0; pointer-events: none; }

.nav-menu {
    position: fixed; top: 0; right: -100%; width: 300px; max-width: 100vw; height: 100vh;
    background: var(--color-card); box-shadow: -10px 0 30px rgba(0,0,0,0.1); 
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10002; overflow-y: auto; display: flex; flex-direction: column;
}
.nav-menu.active { right: 0; }

.drawer-header {
    height: var(--header-height); padding: 0 24px; display: flex;
    align-items: center; justify-content: space-between;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border);
}
.drawer-header span { font-size: 14px; font-weight: 800; letter-spacing: 1.5px; color: var(--color-primary); }

.close-drawer { background: none; border: none; font-size: 38px; cursor: pointer; color: var(--color-text-main); line-height: 1; }

.nav-menu ul { list-style: none; padding: 10px 24px; }
.nav-menu ul li a { display: block; padding: 18px 0; color: var(--color-text-main); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--color-border); }

@media (min-width: 1024px) {
    .hamburger { display: none; }
    .nav-menu { position: static; width: auto; height: auto; background: none; box-shadow: none; display: block; }
    .nav-menu ul { display: flex; gap: 30px; padding: 0; }
    .nav-menu ul li a { border-bottom: none; padding: 0; font-size: 15px; color: var(--color-text-muted); font-weight: 500; }
    .drawer-header, .mobile-only { display: none; }
}

/* --- ADSENSE AREA --- */
.adsense-container { width: 100%; max-width: 1400px; margin: 0 auto 40px auto; padding: 0 24px; box-sizing: border-box; }
.adsense-placeholder {
    background: var(--color-placeholder-bg);
    width: 100%; height: 90px; display: flex; align-items: center; justify-content: center;
    color: var(--color-placeholder-text);
    font-size: 14px; border-radius: 8px; border: 1px dashed var(--color-border);
    text-align: center;
}

/* --- SEO & FAQS --- */
.seo-article, .faq-section { max-width: 900px; margin: 0 auto 50px auto; padding: 0 24px; }
.article-container h2, .faq-container h2 { font-size: 28px; font-weight: 800; margin-bottom: 24px; color: var(--color-text-main); }
.article-container p { font-size: 16px; line-height: 1.7; color: var(--color-text-muted); margin-bottom: 20px; }

/* FAQ items – styled as cards */
.faq-item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 16px 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.faq-item summary { font-size: 16px; font-weight: 700; color: var(--color-text-main); list-style: none; }
.faq-item p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--color-text-muted); }

/* --- UNIVERSAL FOOTER --- */
.master-footer {
    flex-shrink: 0;
    background: var(--color-footer-bg);
    padding: 40px 24px;
    width: 100%;
}
.footer-container { max-width: 1400px; margin: 0 auto; text-align: center; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.footer-links a {
    color: var(--color-footer-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.footer-links a:hover { color: #ffffff; text-decoration: underline; }
.copyright {
    color: var(--color-footer-text-muted);
    font-size: 14px;
    margin: 0;
                                        }
