/*
Theme Name:        Future Self
Theme URI:         https://codecraftsman.dev/future-self
Author:            Muhammad Adil
Author URI:        https://codecraftsman.dev
Description:       v3 — A security-hardened, full-screen WordPress theme for the Future Self time-capsule email app. Auto adaptive dark/light mode, scroll-reveal cinematic animations (GSAP + ScrollTrigger + Lenis + Intersection Observer + Canvas + WebGL particles), deep SEO/AIO/AEO/GEO integration, hardened REST API with rate-limit + honeypot + CSP. Ships with the Future Self Mailer plugin — auto-installs + auto-updates on activation. Built by Muhammad Adil at codecraftsman.dev.
Version:           3.3.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       future-self
Tags:              dark, light, one-page, full-width-template, animation, futuristic, accessibility-ready, custom-colors, threaded-comments, translation-ready
*/

/* This file is intentionally lean. All visual styles live in assets/css/* and are
   enqueued via inc/enqueue.php so admins can disable specific layers if needed. */

/* Reset chrome only when NOT on the full-screen template */
body:not(.fsm-fullscreen) {
    background: #ffffff;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

body:not(.fsm-fullscreen) a { color: #7c4dff; text-decoration: none; }
body:not(.fsm-fullscreen) a:hover { text-decoration: underline; }

@media (prefers-color-scheme: dark) {
    body:not(.fsm-fullscreen) {
        background: #040408;
        color: #f0f4ff;
    }
}

/* Manual override */
html[data-theme="dark"] body:not(.fsm-fullscreen) { background:#040408; color:#f0f4ff; }
html[data-theme="light"] body:not(.fsm-fullscreen) { background:#ffffff; color:#1f2937; }

/* Full-screen template: strip theme chrome */
body.fsm-fullscreen { margin:0; padding:0; }
body.fsm-fullscreen .site-header,
body.fsm-fullscreen .site-footer,
body.fsm-fullscreen #masthead,
body.fsm-fullscreen #colophon,
body.fsm-fullscreen header.site-header,
body.fsm-fullscreen footer.site-footer,
body.fsm-fullscreen nav.main-navigation,
body.fsm-fullscreen .navbar,
body.fsm-fullscreen .navigation-top,
body.fsm-fullscreen .entry-header,
body.fsm-fullscreen .breadcrumb,
body.fsm-fullscreen .post-navigation,
body.fsm-fullscreen .comments-area { display: none !important; }

body.fsm-fullscreen #page,
body.fsm-fullscreen #content,
body.fsm-fullscreen #main,
body.fsm-fullscreen .site-content,
body.fsm-fullscreen .entry-content,
body.fsm-fullscreen article,
body.fsm-fullscreen .wp-site-blocks {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: auto !important;
    float: none !important;
    position: static !important;
}

body.fsm-fullscreen #fsm-app {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.admin-bar.fsm-fullscreen #fsm-app { padding-top: 32px !important; }
@media screen and (max-width: 782px) {
    body.admin-bar.fsm-fullscreen #fsm-app { padding-top: 46px !important; }
}

/* Honour reduced motion at every layer */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
