/*
Theme Name: Hax AI Theme
Theme URI: https://example.com/hax-ai-theme
Description: A lightweight and optimized WordPress theme with AI integration
Version: 1.0.0
Author: Your Name
Author URI: https://example.com
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hax-ai-theme
Domain Path: /languages
Tags: lightweight, customizable, responsive, ai-enabled
*/

/* ===============================================================
   GLOBAL STYLES
   =============================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ===============================================================
   TYPOGRAPHY
   =============================================================== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1em;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===============================================================
   LAYOUT
   =============================================================== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.main-content {
    width: 100%;
}

.sidebar {
    width: 300px;
}

/* ===============================================================
   HEADER & NAVIGATION
   =============================================================== */
.site-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 1;
}

.site-title {
    font-size: 1.75rem;
    margin: 0;
}

.site-title a {
    color: #333;
}

.site-tagline {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.main-navigation {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation ul {
    list-style: none;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 0;
}

.main-navigation a:hover {
    color: #0066cc;
}

/* ===============================================================
   FOOTER
   =============================================================== */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2rem 1rem;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

/* ===============================================================
   CONTENT
   =============================================================== */
.post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.post:last-child {
    border-bottom: none;
}

.post-title {
    margin-bottom: 0.5rem;
}

.post-title a {
    color: #333;
}

.post-title a:hover {
    color: #0066cc;
}

.post-meta {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 1rem;
}

.post-excerpt {
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #0066cc;
    color: #fff;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #0052a3;
    text-decoration: none;
}

/* ===============================================================
   WIDGETS
   =============================================================== */
.widget {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

/* ===============================================================
   FORMS
   =============================================================== */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
}

input[type="submit"],
button {
    padding: 0.75rem 1.5rem;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover,
button:hover {
    background-color: #0052a3;
}

/* ===============================================================
   RESPONSIVE DESIGN
   =============================================================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 100%;
    }

    .site-header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1rem; }

    .main-navigation {
        gap: 0.25rem;
    }

    .site-content {
        padding: 1rem 0.5rem;
    }
}
