/*
Theme Name: ChatProjects Theme
Theme URI: https://chatprojects.com
Author: ChatProjects
Author URI: https://chatprojects.com
Description: Minimal theme for ChatProjects SaaS application. Provides a clean shell that lets the ChatProjects plugin handle all UI.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chatprojects-theme

This theme is designed to work with the ChatProjects Pro plugin.
*/

/* Reset and base styles - minimal to not conflict with plugin */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--cp-font-sans, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--cp-bg-primary, #ffffff);
    color: var(--cp-text-primary, #1e293b);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark mode body */
html.dark body {
    background-color: var(--cp-bg-primary, #0f172a);
    color: var(--cp-text-primary, #f1f5f9);
}

/* Remove default margins */
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

/* Links */
a {
    color: inherit;
    text-decoration: inherit;
}

/* Images */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* Form elements */
button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button, select {
    text-transform: none;
}

button, [type="button"], [type="reset"], [type="submit"] {
    -webkit-appearance: button;
}

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

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

.site-content {
    flex: 1;
}

/* Full-width template */
.page-template-template-fullwidth .site-content,
.page-template-template-blank .site-content {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Hide admin bar on frontend for cleaner SaaS experience */
body.logged-in.admin-bar {
    margin-top: 0 !important;
}

#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--cp-primary, #060097);
    color: white;
    padding: 8px 16px;
    z-index: 100000;
    text-decoration: none;
}

.skip-link:focus {
    top: 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;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
