/*
Theme Name:  Hostalot Ignite
Theme URI:   https://hostalot.com
Description: The official blank theme for Hostalot.Ai. Built to work flawlessly with the Hostalot.Ai page builder plugin. Supports [hostalot_page], [hostalot_section] shortcodes. Zero interference with AI-generated sections.
Version:     1.0.0
Author:      Hostalot
Author URI:  https://hostalot.com
License:     GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hostalot-ignite
Tags:        full-width-template, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =============================================================
   BASE RESET
   Minimal — we do NOT aggressively reset colours or fonts
   inside sections because AI-generated HTML manages its own.
   ============================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* =============================================================
   LAYOUT CONTAINERS
   ============================================================= */
.ignite-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ignite-container--narrow {
    max-width: 760px;
}

/* =============================================================
   SITE HEADER
   ============================================================= */
.ignite-header {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.ignite-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

/* Logo / site name */
.ignite-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.ignite-logo img {
    height: 36px;
    width: auto;
}

.ignite-logo__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* =============================================================
   PRIMARY NAVIGATION
   ============================================================= */
.ignite-nav {
    display: flex;
    align-items: center;
}

.ignite-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ignite-nav__list li {
    position: relative;
}

.ignite-nav__list a {
    display: block;
    padding: 8px 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #444;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
}

.ignite-nav__list a:hover,
.ignite-nav__list .current-menu-item > a,
.ignite-nav__list .current_page_item > a {
    background: #f4f4f5;
    color: #1a1a1a;
}

/* Dropdown */
.ignite-nav__list .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    padding: 6px;
    list-style: none;
    margin: 0;
    z-index: 1000;
}

.ignite-nav__list li:hover > .sub-menu {
    display: block;
}

.ignite-nav__list .sub-menu a {
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Mobile toggle */
.ignite-nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1a1a1a;
}

.ignite-nav__toggle svg {
    display: block;
}

/* =============================================================
   MOBILE NAV
   ============================================================= */
@media (max-width: 768px) {
    .ignite-nav__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ignite-nav__list {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 20px;
        border-bottom: 1px solid #f0f0f0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        gap: 2px;
        z-index: 998;
    }

    .ignite-nav__list.is-open {
        display: flex;
    }

    .ignite-nav__list a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .ignite-nav__list .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid #f0f0f0;
        border-radius: 0;
        margin-left: 16px;
        padding: 4px 0;
        display: none;
    }

    .ignite-nav__list li.is-open > .sub-menu {
        display: block;
    }
}

/* =============================================================
   MAIN CONTENT AREA
   ============================================================= */
.ignite-main {
    width: 100%;
    min-height: 60vh;
}

/* =============================================================
   PAGE / POST CONTENT
   Scoped so it never touches AI-generated section HTML
   ============================================================= */
.ignite-entry {
    padding: 60px 0;
}

.ignite-entry__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #0f0f0f;
    margin: 0 0 32px;
}

.ignite-entry__content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #333;
}

.ignite-entry__content h1,
.ignite-entry__content h2,
.ignite-entry__content h3,
.ignite-entry__content h4,
.ignite-entry__content h5,
.ignite-entry__content h6 {
    margin: 1.75em 0 0.5em;
    line-height: 1.25;
    font-weight: 700;
    color: #0f0f0f;
}

.ignite-entry__content p {
    margin: 0 0 1.25em;
}

.ignite-entry__content ul,
.ignite-entry__content ol {
    padding-left: 1.5em;
    margin: 0 0 1.25em;
}

.ignite-entry__content li {
    margin-bottom: 0.4em;
}

.ignite-entry__content a {
    color: #6d4aff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ignite-entry__content a:hover {
    color: #4f2fe8;
}

.ignite-entry__content blockquote {
    border-left: 3px solid #e0e0e0;
    padding-left: 1.25em;
    margin: 1.5em 0;
    color: #666;
    font-style: italic;
}

.ignite-entry__content code {
    background: #f4f4f5;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.ignite-entry__content pre {
    background: #1a1a2e;
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1.5em 0;
}

.ignite-entry__content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.ignite-entry__content img {
    border-radius: 8px;
    margin: 1.5em 0;
}

.ignite-entry__content hr {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 2.5em 0;
}

.ignite-entry__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.ignite-entry__content th,
.ignite-entry__content td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.ignite-entry__content th {
    font-weight: 600;
    background: #f9f9f9;
}

/* =============================================================
   SHORTCODE EMBEDS
   Sections rendered via [hostalot_page] / [hostalot_section]
   must be full width with no theme interference.
   ============================================================= */
.ignite-apb-embed {
    width: 100%;
    position: relative;
}

.ignite-apb-embed .apb-section-wrap {
    position: relative;
    width: 100%;
}

/* =============================================================
   SITE FOOTER
   ============================================================= */
.ignite-footer {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding: 32px 0;
}

.ignite-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ignite-footer__copy {
    font-size: 0.875rem;
    color: #888;
}

.ignite-footer__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.ignite-footer__nav a {
    font-size: 0.875rem;
    color: #888;
    transition: color 0.15s;
}

.ignite-footer__nav a:hover {
    color: #1a1a1a;
}

@media (max-width: 600px) {
    .ignite-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================================
   404 PAGE
   ============================================================= */
.ignite-404 {
    text-align: center;
    padding: 100px 24px;
}

.ignite-404__code {
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 900;
    line-height: 1;
    color: #f0f0f0;
    letter-spacing: -0.04em;
}

.ignite-404__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.ignite-404__text {
    color: #666;
    margin: 0 0 32px;
}

.ignite-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background 0.15s ease;
    text-decoration: none;
}

.ignite-btn:hover {
    background: #333;
    color: #fff;
}

/* =============================================================
   WORDPRESS CORE ALIGNMENTS
   Required by WP block editor
   ============================================================= */
.alignleft  { float: left;  margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left:  1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 1em; }
.alignwide  { width: 100%; }
.alignfull  { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

/* =============================================================
   SCREEN READER TEXT
   ============================================================= */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.screen-reader-text:focus {
    clip: auto;
    height: auto;
    overflow: auto;
    position: static;
    white-space: normal;
    width: auto;
}
