/*
Theme Name: Project Tracker Theme
Theme URI: https://project-tracker.tecnotia.com/
Author: Zamzam Nishan
Description: A clean, full-width companion theme for the Project Tracker plugin. On activation it auto-creates the Dashboard, Login and Register pages and wires them to the plugin shortcodes.
Version: 1.2.2
License: GPL2
Text Domain: project-tracker-theme
*/

:root {
    --pt-theme-bg: #f4f5fa;
    --pt-theme-text: #1c1d24;
    --pt-theme-muted: #6b6f80;
    --pt-theme-primary: #5b5cf6;
    --pt-theme-border: #e6e7ee;
    --pt-theme-surface: #ffffff;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--pt-theme-bg);
    color: var(--pt-theme-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a { color: var(--pt-theme-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.ptt-site-header {
    background: var(--pt-theme-surface);
    border-bottom: 1px solid var(--pt-theme-border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.ptt-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--pt-theme-text);
    text-decoration: none;
}
.ptt-brand-mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.ptt-nav { display: flex; gap: 6px; flex: 1; }
.ptt-nav a {
    padding: 7px 12px;
    border-radius: 8px;
    color: var(--pt-theme-muted);
    font-size: 14px;
    font-weight: 500;
}
.ptt-nav a:hover, .ptt-nav a.is-current {
    background: #ecedfb;
    color: var(--pt-theme-primary);
    text-decoration: none;
}
.ptt-header-cta {
    color: var(--pt-theme-muted);
    font-size: 13px;
}
.ptt-header-cta a { font-weight: 500; }

/* Main */
.ptt-main {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 20px 40px;
}
.ptt-main.ptt-main--wide {
    max-width: 1440px;
}
.ptt-page-content {
    background: transparent;
}
.ptt-page-content > h1:first-child {
    margin-top: 0;
    font-size: 26px;
    font-weight: 700;
}

/* Standard page card (used for non-dashboard pages) */
.ptt-card {
    background: var(--pt-theme-surface);
    border: 1px solid var(--pt-theme-border);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 1px 2px rgba(20,20,40,.04), 0 4px 14px rgba(20,20,40,.05);
}

/* Footer */
.ptt-site-footer {
    border-top: 1px solid var(--pt-theme-border);
    background: var(--pt-theme-surface);
    color: var(--pt-theme-muted);
    text-align: center;
    padding: 18px;
    font-size: 13px;
}

/* Hide WP admin bar gap fix when present */
html.no-js .ptt-site-header { top: 0 !important; }

/* Dashboard mode — full screen, no header/footer */
body.ptt-dashboard-body {
    margin: 0;
    padding: 0;
    background: var(--pt-theme-bg);
}
body.ptt-dashboard-body .ptt-dashboard-shell {
    width: 100%;
    min-height: 100vh;
    padding: 0;
}
/* Hide the WP admin bar in dashboard mode for a clean experience */
body.ptt-dashboard-body #wpadminbar { display: none !important; }
body.ptt-dashboard-body { margin-top: 0 !important; }
html { margin-top: 0 !important; }
body.ptt-dashboard-body .pt-shell {
    border-radius: 0;
    border: 0;
    min-height: 100vh;
}

@media (max-width: 720px) {
    .ptt-site-header { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
    .ptt-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
    .ptt-main { margin: 14px auto; padding: 0 12px 24px; }
    .ptt-card { padding: 20px; }
}
