/*
Theme Name:  Natalis Theme
Theme URI:   https://example.com/natalis-theme
Author:      Natalis Connect
Author URI:  https://example.com
Description: A cosmic, zodiac-inspired WordPress theme built as the perfect companion for the Natalis Connect plugin. Features full Customizer support, responsive design, and dedicated templates for all plugin pages.
Version:     1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: natalis-theme
Tags:        one-column, two-columns, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* ==========================================================================
   CSS Custom Properties — all customizable via WP Customizer
   ========================================================================== */
:root {
    /* Brand palette */
    --nt-primary: #6c5ce7;
    --nt-primary-light: #a29bfe;
    --nt-primary-dark: #5341d6;
    --nt-secondary: #00cec9;
    --nt-accent: #fd79a8;

    /* Neutrals */
    --nt-bg: #f8f9fd;
    --nt-surface: #ffffff;
    --nt-text: #2d3436;
    --nt-text-muted: #636e72;
    --nt-border: #e0e0e0;

    /* Cosmic gradient */
    --nt-gradient: linear-gradient(135deg, var(--nt-primary) 0%, var(--nt-accent) 50%, var(--nt-secondary) 100%);
    --nt-gradient-subtle: linear-gradient(135deg, rgba(108,92,231,.08) 0%, rgba(253,121,168,.05) 50%, rgba(0,206,201,.08) 100%);

    /* Typography */
    --nt-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nt-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Layout */
    --nt-container: 1200px;
    --nt-container-narrow: 800px;
    --nt-sidebar-width: 320px;
    --nt-radius: 12px;
    --nt-radius-sm: 8px;
    --nt-shadow: 0 2px 16px rgba(0,0,0,.06);
    --nt-shadow-lg: 0 8px 32px rgba(0,0,0,.1);
    --nt-transition: .25s cubic-bezier(.4,0,.2,1);

    /* Header */
    --nt-header-bg: var(--nt-surface);
    --nt-header-height: 72px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--nt-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--nt-text);
    background: var(--nt-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--nt-primary);
    text-decoration: none;
    transition: color var(--nt-transition);
}

a:hover,
a:focus {
    color: var(--nt-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nt-font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--nt-text);
    margin-bottom: .5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p { margin-bottom: 1em; }

ul, ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

blockquote {
    border-left: 4px solid var(--nt-primary);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: var(--nt-gradient-subtle);
    border-radius: 0 var(--nt-radius-sm) var(--nt-radius-sm) 0;
    font-style: italic;
    color: var(--nt-text-muted);
}

code, pre {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: .9em;
}

code {
    background: rgba(108,92,231,.08);
    padding: 2px 6px;
    border-radius: 4px;
}

pre {
    background: var(--nt-text);
    color: #f8f9fd;
    padding: 1.5em;
    border-radius: var(--nt-radius-sm);
    overflow-x: auto;
    margin-bottom: 1.5em;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

th, td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--nt-border);
    text-align: left;
}

th {
    font-weight: 600;
    color: var(--nt-text);
}

hr {
    border: none;
    height: 1px;
    background: var(--nt-border);
    margin: 2em 0;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    height: auto;
    width: auto;
    z-index: 100000;
    background: var(--nt-surface);
    padding: 15px 23px;
    font-size: 14px;
    font-weight: 700;
    left: 5px;
    top: 5px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.nt-container {
    width: 100%;
    max-width: var(--nt-container);
    margin: 0 auto;
    padding: 0 24px;
}

.nt-container--narrow {
    max-width: var(--nt-container-narrow);
}

.nt-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0;
}

.nt-main-grid.has-sidebar {
    grid-template-columns: 1fr var(--nt-sidebar-width);
}

@media (max-width: 960px) {
    .nt-main-grid.has-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */
.nt-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nt-header-bg);
    box-shadow: var(--nt-shadow);
    height: var(--nt-header-height);
    transition: background var(--nt-transition), box-shadow var(--nt-transition);
}

/* When WordPress admin bar is present */
.admin-bar .nt-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .nt-header {
        top: 46px;
    }
}

.nt-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--nt-container);
    margin: 0 auto;
    padding: 0 24px;
}

.nt-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.nt-header__brand img {
    height: 40px;
    width: auto;
}

.nt-header__brand-text {
    font-family: var(--nt-font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--nt-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nt-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nt-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.nt-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--nt-text-muted);
    border-radius: var(--nt-radius-sm);
    transition: all var(--nt-transition);
    white-space: nowrap;
}

.nt-nav a:hover,
.nt-nav .current-menu-item > a,
.nt-nav .current_page_item > a {
    color: var(--nt-primary);
    background: rgba(108,92,231,.08);
}

/* Dropdown menus */
.nt-nav li {
    position: relative;
}

.nt-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--nt-surface);
    border-radius: var(--nt-radius-sm);
    box-shadow: var(--nt-shadow-lg);
    padding: 8px;
    z-index: 100;
    flex-direction: column;
}

.nt-nav li:hover > .sub-menu {
    display: flex;
}

.nt-nav .sub-menu a {
    padding: 8px 12px;
    font-size: 14px;
}

/* CTA button in nav */
.nt-nav .nt-nav-cta a {
    background: var(--nt-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 24px;
    padding: 8px 20px;
}

.nt-nav .nt-nav-cta a:hover {
    background: var(--nt-primary-dark);
    color: #fff;
}

/* Mobile menu toggle */
.nt-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--nt-text);
}

.nt-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: all var(--nt-transition);
    border-radius: 2px;
}

.nt-menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nt-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nt-menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .nt-menu-toggle {
        display: block;
    }

    .nt-nav {
        display: none;
        position: absolute;
        top: var(--nt-header-height);
        left: 0;
        right: 0;
        background: var(--nt-surface);
        box-shadow: var(--nt-shadow-lg);
        padding: 16px 24px;
        flex-direction: column;
        align-items: stretch;
    }

    .nt-nav.is-open {
        display: flex;
    }

    .nt-nav ul {
        flex-direction: column;
    }

    .nt-nav .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 16px;
        display: none;
    }

    .nt-nav li:hover > .sub-menu,
    .nt-nav li.is-expanded > .sub-menu {
        display: flex;
    }
}

/* ==========================================================================
   Hero Section (Front Page)
   ========================================================================== */
.nt-hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    text-align: center;
    background: var(--nt-gradient);
    color: #fff;
}

.nt-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,.06) 0%, transparent 50%);
    pointer-events: none;
}

.nt-hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.nt-hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.nt-hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    opacity: .9;
    margin-bottom: 36px;
    line-height: 1.6;
}

.nt-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stars animation */
.nt-hero__stars {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.nt-hero__stars span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,.6);
    border-radius: 50%;
    animation: nt-twinkle 3s ease-in-out infinite alternate;
}

@keyframes nt-twinkle {
    0% { opacity: .2; transform: scale(.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.nt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--nt-font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 28px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--nt-transition);
    white-space: nowrap;
    text-decoration: none;
}

.nt-btn--primary {
    background: var(--nt-primary);
    color: #fff;
}

.nt-btn--primary:hover {
    background: var(--nt-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(108,92,231,.35);
}

.nt-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.5);
}

.nt-btn--outline:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
    color: #fff;
}

.nt-btn--secondary {
    background: var(--nt-surface);
    color: var(--nt-primary);
    border-color: var(--nt-border);
}

.nt-btn--secondary:hover {
    border-color: var(--nt-primary);
    transform: translateY(-1px);
    box-shadow: var(--nt-shadow);
}

.nt-btn--sm {
    padding: 8px 18px;
    font-size: 13px;
}

.nt-btn--lg {
    padding: 16px 36px;
    font-size: 17px;
}

/* ==========================================================================
   Features Grid (Front Page)
   ========================================================================== */
.nt-features {
    padding: 80px 0;
}

.nt-features__header {
    text-align: center;
    margin-bottom: 56px;
}

.nt-features__header p {
    color: var(--nt-text-muted);
    font-size: 1.15rem;
    max-width: 540px;
    margin: 0 auto;
}

.nt-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.nt-feature-card {
    background: var(--nt-surface);
    border-radius: var(--nt-radius);
    padding: 36px 28px;
    transition: all var(--nt-transition);
    border: 1px solid var(--nt-border);
}

.nt-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nt-shadow-lg);
    border-color: var(--nt-primary-light);
}

.nt-feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    background: var(--nt-gradient-subtle);
}

.nt-feature-card__title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.nt-feature-card__desc {
    color: var(--nt-text-muted);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   CTA Section (Front Page)
   ========================================================================== */
.nt-cta {
    padding: 80px 0;
    text-align: center;
}

.nt-cta__box {
    background: var(--nt-gradient);
    border-radius: var(--nt-radius);
    padding: 60px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.nt-cta__box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    pointer-events: none;
}

.nt-cta__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 12px;
    color: #fff;
    position: relative;
}

.nt-cta__text {
    opacity: .9;
    font-size: 1.1rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.nt-cta .nt-btn {
    position: relative;
}

/* ==========================================================================
   Content Area
   ========================================================================== */
.nt-content {
    min-height: 60vh;
}

.nt-page-header {
    background: var(--nt-gradient-subtle);
    padding: 48px 0 40px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--nt-border);
}

.nt-page-header__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 4px;
}

.nt-page-header__desc {
    color: var(--nt-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* Article / Post cards */
.nt-article {
    background: var(--nt-surface);
    border-radius: var(--nt-radius);
    overflow: hidden;
    border: 1px solid var(--nt-border);
    margin-bottom: 32px;
    transition: box-shadow var(--nt-transition);
}

.nt-article:hover {
    box-shadow: var(--nt-shadow);
}

.nt-article__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.nt-article__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--nt-transition);
}

.nt-article:hover .nt-article__thumb img {
    transform: scale(1.03);
}

.nt-article__body {
    padding: 28px;
}

.nt-article__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--nt-text-muted);
    margin-bottom: 12px;
}

.nt-article__meta a {
    color: var(--nt-primary);
    font-weight: 500;
}

.nt-article__title {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.nt-article__title a {
    color: var(--nt-text);
}

.nt-article__title a:hover {
    color: var(--nt-primary);
}

.nt-article__excerpt {
    color: var(--nt-text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* Single post body */
.nt-entry-content {
    background: var(--nt-surface);
    border-radius: var(--nt-radius);
    border: 1px solid var(--nt-border);
    padding: 40px;
    margin-bottom: 32px;
}

.nt-entry-content > *:last-child {
    margin-bottom: 0;
}

.nt-entry-content img {
    border-radius: var(--nt-radius-sm);
    margin: 1.5em 0;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.nt-sidebar .widget {
    background: var(--nt-surface);
    border-radius: var(--nt-radius);
    border: 1px solid var(--nt-border);
    padding: 24px;
    margin-bottom: 24px;
}

.nt-sidebar .widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--nt-primary);
}

.nt-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nt-sidebar .widget li {
    padding: 6px 0;
    border-bottom: 1px solid var(--nt-border);
}

.nt-sidebar .widget li:last-child {
    border-bottom: none;
}

.nt-sidebar .widget a {
    color: var(--nt-text-muted);
    font-size: 14px;
}

.nt-sidebar .widget a:hover {
    color: var(--nt-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.nt-footer {
    background: var(--nt-text);
    color: rgba(255,255,255,.7);
    padding: 60px 0 0;
}

.nt-footer a {
    color: rgba(255,255,255,.7);
}

.nt-footer a:hover {
    color: #fff;
}

.nt-footer__widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.nt-footer__widgets .widget-title {
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.nt-footer__widgets ul {
    list-style: none;
    padding: 0;
}

.nt-footer__widgets li {
    padding: 4px 0;
}

.nt-footer__widgets .widget a {
    font-size: 14px;
}

.nt-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}

.nt-footer__social {
    display: flex;
    gap: 12px;
}

.nt-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    transition: all var(--nt-transition);
    font-size: 16px;
}

.nt-footer__social a:hover {
    background: var(--nt-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.nt-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 0;
}

.nt-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--nt-text-muted);
    background: var(--nt-surface);
    border: 1px solid var(--nt-border);
    transition: all var(--nt-transition);
}

.nt-pagination .page-numbers:hover {
    border-color: var(--nt-primary);
    color: var(--nt-primary);
}

.nt-pagination .page-numbers.current {
    background: var(--nt-primary);
    color: #fff;
    border-color: var(--nt-primary);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.nt-comments {
    background: var(--nt-surface);
    border-radius: var(--nt-radius);
    border: 1px solid var(--nt-border);
    padding: 40px;
}

.nt-comments .comment-list {
    list-style: none;
    padding: 0;
}

.nt-comments .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--nt-border);
}

.nt-comments .comment:last-child {
    border-bottom: none;
}

.nt-comments .comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.nt-comments .avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.nt-comments .comment-author {
    font-weight: 600;
    font-size: 15px;
}

.nt-comments .comment-date {
    font-size: 13px;
    color: var(--nt-text-muted);
}

.nt-comments .comment-respond {
    margin-top: 32px;
}

.nt-comments .comment-form input[type="text"],
.nt-comments .comment-form input[type="email"],
.nt-comments .comment-form input[type="url"],
.nt-comments .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--nt-border);
    border-radius: var(--nt-radius-sm);
    font-family: var(--nt-font-body);
    font-size: 15px;
    transition: border-color var(--nt-transition);
    margin-bottom: 12px;
}

.nt-comments .comment-form input:focus,
.nt-comments .comment-form textarea:focus {
    border-color: var(--nt-primary);
    outline: none;
}

.nt-comments .comment-form .submit {
    background: var(--nt-primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--nt-transition);
}

.nt-comments .comment-form .submit:hover {
    background: var(--nt-primary-dark);
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.nt-404 {
    text-align: center;
    padding: 80px 24px;
}

.nt-404__code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 800;
    background: var(--nt-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.nt-404__title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.nt-404__text {
    color: var(--nt-text-muted);
    margin-bottom: 28px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Search Form
   ========================================================================== */
.nt-search-form {
    display: flex;
    gap: 8px;
}

.nt-search-form input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--nt-border);
    border-radius: 24px;
    font-size: 15px;
    font-family: var(--nt-font-body);
    transition: border-color var(--nt-transition);
}

.nt-search-form input[type="search"]:focus {
    border-color: var(--nt-primary);
    outline: none;
}

.nt-search-form button {
    background: var(--nt-primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--nt-transition);
}

.nt-search-form button:hover {
    background: var(--nt-primary-dark);
}

/* ==========================================================================
   Modern Webapp Enhancements
   ========================================================================== */

/* Header on scroll — solid elevated surface */
.nt-header.is-scrolled {
    background: var(--nt-header-bg);
    box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 24px rgba(0,0,0,.06);
}

/* Intersection observer animations */
.nt-anim-hidden {
    opacity: 0;
    transform: translateY(24px);
}

.nt-anim-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}

/* Micro-interaction: subtle active/focus states everywhere */
.nt-btn:active {
    transform: scale(.97);
}

.nt-btn:focus-visible,
.nt-nav a:focus-visible,
.nt-footer__social a:focus-visible {
    outline: 2px solid var(--nt-primary);
    outline-offset: 2px;
}

/* Feature cards — hover lift with spring */
.nt-feature-card {
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, border-color .25s ease;
}

/* Article cards — smooth hover */
.nt-article {
    transition: box-shadow .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}

.nt-article:hover {
    transform: translateY(-3px);
}

/* ==========================================================================
   Natalis Dashboard (App) Template — immersive webapp layout
   ========================================================================== */

.nt-content--app {
    min-height: calc(100vh - var(--nt-header-height) - 120px);
    padding: 0;
}

.nt-container--app {
    max-width: 1400px;
    padding: 32px 24px;
}

/* Hide page header on app template */
.page-template-template-natalis .nt-page-header {
    display: none;
}

/* ==========================================================================
   Natalis Connect Plugin Integration
   ========================================================================== */

/* The plugin renders into these containers — ensure they fill the theme well */
.natalis-dashboard-wrap,
.natalis-auth-wrap {
    max-width: 100%;
}

/* Full-width template for plugin pages */
.page-template-template-fullwidth .nt-content .nt-container {
    max-width: 100%;
    padding: 0 24px;
}

/* ---- Plugin card overrides ---- */

/* Match theme border-radius to plugin cards */
.natalis-dashboard-wrap > div,
.natalis-auth-wrap > div {
    border-radius: var(--nt-radius);
}

/* Harmonize plugin button colors with theme */
.natalis-btn-primary,
.natalis-dashboard-wrap button[class*="primary"],
.natalis-auth-wrap button[type="submit"] {
    background: var(--nt-primary) !important;
    border-radius: 28px !important;
    font-weight: 600 !important;
    transition: all var(--nt-transition) !important;
}

.natalis-btn-primary:hover,
.natalis-dashboard-wrap button[class*="primary"]:hover,
.natalis-auth-wrap button[type="submit"]:hover {
    background: var(--nt-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(108,92,231,.3);
}

/* Plugin input fields — match theme styling */
.natalis-dashboard-wrap input[type="text"],
.natalis-dashboard-wrap input[type="email"],
.natalis-dashboard-wrap input[type="password"],
.natalis-dashboard-wrap input[type="date"],
.natalis-dashboard-wrap input[type="number"],
.natalis-dashboard-wrap select,
.natalis-dashboard-wrap textarea,
.natalis-auth-wrap input[type="text"],
.natalis-auth-wrap input[type="email"],
.natalis-auth-wrap input[type="password"],
.natalis-auth-wrap input[type="date"],
.natalis-auth-wrap select {
    border: 1px solid var(--nt-border) !important;
    border-radius: var(--nt-radius-sm) !important;
    font-family: var(--nt-font-body) !important;
    font-size: 15px !important;
    padding: 10px 14px !important;
    transition: border-color var(--nt-transition), box-shadow var(--nt-transition) !important;
}

.natalis-dashboard-wrap input:focus,
.natalis-dashboard-wrap select:focus,
.natalis-dashboard-wrap textarea:focus,
.natalis-auth-wrap input:focus,
.natalis-auth-wrap select:focus {
    border-color: var(--nt-primary) !important;
    box-shadow: 0 0 0 3px rgba(108,92,231,.12) !important;
    outline: none !important;
}

/* Plugin status badges — pill shape */
.natalis-status {
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .3px;
}

/* Plugin Google Sign-In button integration */
.natalis-auth-wrap .natalis-google-btn {
    border-radius: 28px !important;
    font-family: var(--nt-font-body) !important;
    transition: all var(--nt-transition) !important;
}

.natalis-auth-wrap .natalis-google-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--nt-shadow) !important;
}

/* Plugin section cards – clean elevated surfaces */
.natalis-dashboard-wrap > div > div {
    border: 1px solid var(--nt-border);
    background: var(--nt-surface);
    transition: box-shadow var(--nt-transition);
}

.natalis-dashboard-wrap > div > div:hover {
    box-shadow: var(--nt-shadow);
}

/* Plugin navigation tabs */
.natalis-dashboard-wrap [role="tablist"] button,
.natalis-dashboard-wrap [role="tablist"] a {
    border-radius: var(--nt-radius-sm) !important;
    font-family: var(--nt-font-body) !important;
    font-weight: 500 !important;
    transition: all var(--nt-transition) !important;
}

/* Jitsi video container — rounded corners */
.natalis-dashboard-wrap iframe[src*="jitsi"],
.natalis-dashboard-wrap [id*="jitsiConference"] {
    border-radius: var(--nt-radius) !important;
    overflow: hidden !important;
}

/* Plugin auth pages — centered card layout */
.page-template-template-natalis .natalis-auth-wrap {
    max-width: 480px;
    margin: 48px auto;
}

.page-template-template-natalis .natalis-auth-wrap > div {
    background: var(--nt-surface);
    border-radius: var(--nt-radius);
    border: 1px solid var(--nt-border);
    padding: 40px;
    box-shadow: var(--nt-shadow);
}

/* Plugin pricing page inside theme */
.page-template-template-natalis .natalis-pricing-wrap {
    max-width: 720px;
    margin: 48px auto;
}

/* Plugin toast notifications — match theme style */
.natalis-dashboard-wrap [class*="toast"],
.natalis-dashboard-wrap [class*="notification"] {
    border-radius: var(--nt-radius-sm) !important;
    font-family: var(--nt-font-body) !important;
    box-shadow: var(--nt-shadow-lg) !important;
}

/* ==========================================================================
   Responsive Polish
   ========================================================================== */

@media (max-width: 768px) {
    .nt-hero {
        padding: 64px 0 56px;
    }

    .nt-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .nt-features {
        padding: 48px 0;
    }

    .nt-cta {
        padding: 48px 0;
    }

    .nt-cta__box {
        padding: 40px 24px;
    }

    .nt-entry-content {
        padding: 24px;
    }

    .nt-container--app {
        padding: 16px 12px;
    }

    .page-template-template-natalis .natalis-auth-wrap {
        margin: 24px auto;
    }

    .page-template-template-natalis .natalis-auth-wrap > div {
        padding: 24px 20px;
    }

    .nt-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nt-container {
        padding: 0 16px;
    }

    .nt-hero__title {
        font-size: 2rem;
    }

    .nt-btn--lg {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
    }
}

/* ==========================================================================
   Smooth page transitions (webapp feel)
   ========================================================================== */

.nt-content,
.nt-content--app {
    animation: nt-page-in .35s cubic-bezier(.4,0,.2,1) both;
}

@keyframes nt-page-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero entrance */
.nt-hero__content {
    animation: nt-hero-in .6s cubic-bezier(.4,0,.2,1) .1s both;
}

@keyframes nt-hero-in {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.nt-text-center { text-align: center; }
.nt-text-muted { color: var(--nt-text-muted); }
.nt-mt-0 { margin-top: 0; }
.nt-mb-0 { margin-bottom: 0; }

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

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

.aligncenter {
    display: block;
    margin: 1.5em auto;
}

.alignwide {
    margin-left: -40px;
    margin-right: -40px;
    max-width: calc(100% + 80px);
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

/* WordPress caption */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--nt-text-muted);
    text-align: center;
    padding-top: 8px;
}

/* Sticky post */
.sticky .nt-article {
    border-left: 4px solid var(--nt-primary);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 1.5em;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--nt-radius-sm);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .nt-header,
    .nt-footer,
    .nt-sidebar,
    .nt-menu-toggle,
    .nt-hero__stars {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .nt-entry-content,
    .nt-article {
        border: none;
        box-shadow: none;
    }
}
