/*
Theme Name: Noiah
Theme URI: https://noiah.tech
Description: Tema institucional da noiah.tech. Implementa o design system "Cosmic AI Matrix" (fundo cósmico, glassmorphism e telemetria neon) sobre uma base Tailwind CSS compilada. Destinado às páginas de produtos, jogos, mobilidade e consultoria.
Author: noiah.tech
Author URI: https://noiah.tech
Version: 1.0.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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noiah
Tags: business, portfolio, custom-colors, custom-menu, featured-images, translation-ready, dark
*/

/*
 * The visual layer of this theme is compiled from assets/css/tailwind.source.css
 * into assets/css/main.css (build with `npm run build:css`).
 *
 * This file intentionally carries only the WordPress-specific overrides that
 * cannot be expressed through the Tailwind design tokens.
 */

/* -------------------------------------------------------------------------
 * WordPress core alignment classes
 * ---------------------------------------------------------------------- */

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: 1200px;
}

.alignfull {
    max-width: none;
}

/* -------------------------------------------------------------------------
 * Base element defaults
 * ---------------------------------------------------------------------- */

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 2px solid #00f0ff;
    outline-offset: 2px;
}

::selection {
    background: rgba(0, 240, 255, 0.28);
    color: #ffffff;
}

/* -------------------------------------------------------------------------
 * Accessibility helpers
 * ---------------------------------------------------------------------- */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #18202f;
    border-radius: 8px;
    box-shadow: 0 0 24px -4px rgba(0, 240, 255, 0.45);
    clip: auto !important;
    clip-path: none;
    color: #dbe2f7;
    display: block;
    font-size: 14px;
    font-weight: 500;
    height: auto;
    left: 16px;
    line-height: normal;
    padding: 12px 18px;
    text-decoration: none;
    top: 16px;
    width: auto;
    z-index: 100000;
}

.skip-link:focus {
    position: fixed;
}

/* -------------------------------------------------------------------------
 * Admin bar offset (WordPress injects a 32px bar for logged-in users)
 * ---------------------------------------------------------------------- */

body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .site-header {
        top: 0;
    }
}

/* -------------------------------------------------------------------------
 * Forms
 * ---------------------------------------------------------------------- */

.noiah-form input,
.noiah-form select,
.noiah-form textarea {
    color-scheme: dark;
}

.noiah-form input::placeholder,
.noiah-form textarea::placeholder {
    color: #64748b;
}

.noiah-form [type='checkbox'] {
    color-scheme: dark;
}

/* Honeypot: hidden from humans, reachable by naive bots. */
.noiah-hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0;
    height: 0;
    width: 0;
}

/* -------------------------------------------------------------------------
 * Mobile navigation
 * ---------------------------------------------------------------------- */

.mobile-menu {
    display: none;
}

@media screen and (max-width: 767px) {
    .mobile-menu {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 45;
        padding: 96px 24px 40px;
        background: rgba(2, 8, 22, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        overflow-y: auto;
    }

    .mobile-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-menu a {
        display: block;
        padding: 14px 4px;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: -0.01em;
        color: #aeaeb8;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-menu a:hover,
    .mobile-menu a:focus,
    .mobile-menu .current-menu-item > a {
        color: #ffffff;
    }

    .mobile-menu .current-menu-item > a {
        color: #00f0ff;
    }

    body.noiah-menu-open {
        overflow: hidden;
    }
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
}

@media screen and (max-width: 767px) {
    .menu-toggle {
        display: inline-flex;
    }
}

/* -------------------------------------------------------------------------
 * WordPress block / editor niceties
 * ---------------------------------------------------------------------- */

.wp-block-image img {
    border-radius: 12px;
}

.wp-block-button__link {
    border-radius: 8px;
}

/* -------------------------------------------------------------------------
 * Long-form content (institutional pages and blog posts)
 * ---------------------------------------------------------------------- */

.prose-noiah > * + * {
    margin-top: 1rem;
}

.prose-noiah h2 {
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #f8fafc;
    margin-top: 2rem;
}

.prose-noiah h3 {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    color: #f8fafc;
    margin-top: 1.5rem;
}

.prose-noiah p,
.prose-noiah li {
    font-size: 14px;
    line-height: 20px;
    color: #aeaeb8;
}

.prose-noiah a {
    color: #00f0ff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.prose-noiah a:hover,
.prose-noiah a:focus {
    color: #7df4ff;
}

.prose-noiah strong {
    color: #f8fafc;
    font-weight: 600;
}

.prose-noiah ul,
.prose-noiah ol {
    padding-left: 1.25rem;
}

.prose-noiah li {
    margin-bottom: 0.375rem;
}

.prose-noiah blockquote {
    border-left: 2px solid rgba(0, 240, 255, 0.4);
    padding-left: 1rem;
    font-style: italic;
    color: #94a3b8;
}

.prose-noiah code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85em;
    background: #18202f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 1px 5px;
}

.prose-noiah table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.prose-noiah th,
.prose-noiah td {
    text-align: left;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #aeaeb8;
}

.prose-noiah th {
    color: #f8fafc;
    font-weight: 600;
}

.prose-noiah hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    margin: 2.5rem 0;
}

/* -------------------------------------------------------------------------
 * Reveal on scroll
 * ---------------------------------------------------------------------- */

.is-revealed {
    opacity: 1;
    transform: none;
}

/* -------------------------------------------------------------------------
 * Reduced motion
 * ---------------------------------------------------------------------- */

@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;
    }
}
