/*
Theme Name: RawAI Theme
Theme URI: https://telejobs.ph
Author: TeleJobs
Author URI: https://telejobs.ph
Description: AI-powered theme with custom HTML rendering and AI-generated menus
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: ai, custom, html
Text Domain: rawai
*/

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Header Styles */
.rawai-header {
    background: #1a1a1a;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rawai-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Styles */
.rawai-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
}

.rawai-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Content */
.rawai-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    min-height: 60vh;
}

/* AI Prompt Interface */
.rawai-prompt-box {
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.rawai-prompt-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.rawai-prompt-box textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.rawai-prompt-box button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.rawai-prompt-box button:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.rawai-prompt-box button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* HTML Content Display */
.rawai-content {
    line-height: 1.8;
}

.rawai-content img {
    max-width: 100%;
    height: auto;
}

.rawai-content a {
    color: #667eea;
    text-decoration: none;
}

.rawai-content a:hover {
    text-decoration: underline;
}

/* Admin Notice */
.rawai-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin: 10px 0;
    border-radius: 4px;
}

.rawai-notice.success {
    background: #d4edda;
    border-left-color: #28a745;
}

.rawai-notice.error {
    background: #f8d7da;
    border-left-color: #dc3545;
}

/* Navigation Styles */
.rawai-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.rawai-nav li {
    margin: 0;
}

.rawai-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.rawai-nav a:hover {
    color: #667eea;
}

/* Default Header Layout */
.rawai-default-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rawai-default-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.rawai-default-header h1 a {
    color: #fff;
    text-decoration: none;
}

/* Footer Navigation */
.rawai-footer-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.rawai-footer-nav a {
    color: #ccc;
    text-decoration: none;
}

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

/* Entry Meta */
.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.entry-meta span {
    display: inline-block;
}

/* Post/Page Article */
.rawai-article,
.rawai-page {
    margin-bottom: 3rem;
}

.entry-title,
.page-title {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.entry-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.entry-title a:hover {
    color: #667eea;
}

/* Post Thumbnail */
.post-thumbnail,
.page-thumbnail {
    margin: 1.5rem 0;
}

.post-thumbnail img,
.page-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Entry Footer */
.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.tags {
    margin-bottom: 1rem;
}

.tags a {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
}

.tags a:hover {
    background: #667eea;
    color: #fff;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.post-navigation a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.post-navigation a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    margin: 2rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a:hover {
    background: #667eea;
    color: #fff;
}

.pagination .current {
    background: #667eea;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .rawai-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .rawai-default-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .rawai-footer-nav ul {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-next {
        text-align: left;
    }
}

/* Archive Styles */
.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #667eea;
}

.archive-title {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: #666;
    font-size: 1rem;
}

.archive-posts {
    display: grid;
    gap: 2rem;
}

.entry-excerpt {
    margin: 1rem 0;
    color: #555;
}

.read-more {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    max-width: 500px;
}

.search-form label {
    flex: 1;
}

.search-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.search-submit {
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.search-submit:hover {
    background: #5568d3;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 3rem 0;
}

.error-404 .page-header {
    margin-bottom: 2rem;
}

.error-404 .page-title {
    font-size: 2.5rem;
    color: #dc3545;
}

.error-404 .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.error-404 .button:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

.no-posts h2 {
    color: #333;
    margin-bottom: 1rem;
}