/*
Theme Name:  Hostalot Canvas
Theme URI:   https://hostalot.com
Author:      Hostalot
Author URI:  https://hostalot.com
Description: A clean, minimal canvas theme built for Hostalot.Ai. Zero-conflict base for AI-generated page sections. Full-width layouts, no bloat, no interference.
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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hostalot-canvas
Tags:        full-width-template, custom-menu, custom-logo, blog, portfolio
*/

/* =====================================================
   HOSTALOT CANVAS — BASE RESET
   Zero-conflict foundation for AI-generated sections
   ===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove default list styles */
ul, ol {
    list-style: none;
}

/* Clean links */
a {
    color: inherit;
    text-decoration: none;
}

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

/* Remove default button styles */
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* =====================================================
   LAYOUT
   ===================================================== */

.hc-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hc-main {
    flex: 1;
    width: 100%;
}

/* Full width — no constraints */
.hc-full-width {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Standard content width for blog/archive pages */
.hc-content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* =====================================================
   WORDPRESS ADMIN BAR FIX
   ===================================================== */

.admin-bar .hc-site {
    padding-top: 32px;
}

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

/* =====================================================
   MINIMAL SITE HEADER (shown on non-AI pages)
   ===================================================== */

.hc-site-header {
    display: none; /* Hidden by default — AI pages provide their own header */
}

.hc-site-header.visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.hc-site-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.hc-site-title a {
    color: inherit;
    text-decoration: none;
}

/* =====================================================
   NAVIGATION
   ===================================================== */

.hc-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.hc-nav a {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: color 0.2s;
}

.hc-nav a:hover {
    color: #1a1a1a;
}

/* =====================================================
   MINIMAL SITE FOOTER (shown on non-AI pages)
   ===================================================== */

.hc-site-footer {
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #f0f0f0;
}

/* =====================================================
   BLOG / ARCHIVE STYLES
   ===================================================== */

.hc-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.hc-post-card {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.hc-post-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.hc-post-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.hc-post-card-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.hc-post-card-body {
    padding: 24px;
}

.hc-post-card-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hc-post-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.hc-post-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.hc-post-card-link {
    font-size: 13px;
    font-weight: 700;
    color: #8c67ef;
}

/* Single post */
.hc-single-post {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px;
}

.hc-single-post h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hc-single-post .hc-post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f0f0f0;
}

.hc-single-post .hc-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.hc-single-post .hc-post-content p { margin-bottom: 1.5em; }
.hc-single-post .hc-post-content h2 { font-size: 24px; font-weight: 700; margin: 2em 0 0.75em; }
.hc-single-post .hc-post-content h3 { font-size: 20px; font-weight: 700; margin: 1.5em 0 0.5em; }
.hc-single-post .hc-post-content ul, 
.hc-single-post .hc-post-content ol { padding-left: 1.5em; margin-bottom: 1.5em; }
.hc-single-post .hc-post-content ul { list-style: disc; }
.hc-single-post .hc-post-content ol { list-style: decimal; }
.hc-single-post .hc-post-content li { margin-bottom: 0.5em; }
.hc-single-post .hc-post-content a { color: #8c67ef; text-decoration: underline; }
.hc-single-post .hc-post-content img { border-radius: 8px; margin: 2em 0; }
.hc-single-post .hc-post-content blockquote {
    border-left: 4px solid #8c67ef;
    padding: 12px 24px;
    margin: 2em 0;
    background: #f8f5ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

/* =====================================================
   PAGINATION
   ===================================================== */

.hc-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.hc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: all 0.15s;
}

.hc-pagination .page-numbers:hover,
.hc-pagination .page-numbers.current {
    background: #8c67ef;
    border-color: #8c67ef;
    color: #fff;
}

/* =====================================================
   404 PAGE
   ===================================================== */

.hc-404 {
    text-align: center;
    padding: 120px 24px;
}

.hc-404-code {
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 900;
    color: #f0f0f0;
    line-height: 1;
    letter-spacing: -0.04em;
}

.hc-404-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 8px;
    margin-bottom: 12px;
}

.hc-404-sub {
    font-size: 15px;
    color: #888;
    margin-bottom: 32px;
}

.hc-404-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #8c67ef;
    color: #fff;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.hc-404-btn:hover {
    background: #7554d4;
    transform: translateY(-1px);
}

/* =====================================================
   SEARCH FORM
   ===================================================== */

.hc-search-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
}

.hc-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.hc-search-input:focus {
    border-color: #8c67ef;
    box-shadow: 0 0 0 3px rgba(140,103,239,0.1);
}

.hc-search-btn {
    padding: 12px 24px;
    background: #8c67ef;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.hc-search-btn:hover {
    background: #7554d4;
}

/* =====================================================
   WORDPRESS ALIGNMENT CLASSES
   ===================================================== */

.alignleft  { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1.5em auto; }
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; margin-left: 0; margin-right: 0; }

/* =====================================================
   SCREEN READER TEXT
   ===================================================== */

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