/*
Theme Name: Peoria Parks Survey Theme
Theme URI: https://peoriaparks.org
Author: Willie Howe
Author URI: https://peoriaparks.org
Description: A full-screen, responsive, customizable WordPress theme designed for WP Survey Pro survey pages and front-end management pages. Uses Peoria Park District inspired colors and Customizer controls.
Version: 1.0.1
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: peoria-parks-survey-theme
*/

:root {
    --ppdst-primary: #005e8a;
    --ppdst-primary-hover: #004c70;
    --ppdst-secondary: #6ba43a;
    --ppdst-accent: #f5a623;
    --ppdst-background: #f4f8f1;
    --ppdst-surface: #ffffff;
    --ppdst-text: #14313f;
    --ppdst-muted: #64748b;
    --ppdst-border: #d8e2d0;
    --ppdst-sidebar: #0f3443;
    --ppdst-sidebar-text: #ddebdc;
    --ppdst-radius: 6px;
    --ppdst-max-width: 1180px;
    --ppdst-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ppdst-shadow: 0 10px 28px rgba(15, 52, 67, .10);
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--ppdst-background);
    color: var(--ppdst-text);
    font-family: var(--ppdst-font);
    line-height: 1.5;
}
a { color: var(--ppdst-primary); }
a:hover { color: var(--ppdst-primary-hover); }
img { max-width: 100%; height: auto; }

.ppdst-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, color-mix(in srgb, var(--ppdst-background) 92%, white), var(--ppdst-background));
}
.ppdst-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--ppdst-surface) 94%, transparent);
    
    border-bottom: 1px solid var(--ppdst-border);
}
.admin-bar .ppdst-header { top: 32px; }
.ppdst-header__inner,
.ppdst-footer__inner,
.ppdst-content {
    width: min(calc(100% - 32px), var(--ppdst-max-width));
    margin: 0 auto;
}
.ppdst-header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.ppdst-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ppdst-text);
    font-weight: 800;
    letter-spacing: -.01em;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.ppdst-brand img { max-height: 52px; width: auto; }
.ppdst-brand__mark {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--ppdst-secondary), var(--ppdst-primary));
    color: #fff;
    font-weight: 900;
}
.ppdst-nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}
.ppdst-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 4px;
    color: var(--ppdst-text);
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
}
.ppdst-nav a:hover {
    background: color-mix(in srgb, var(--ppdst-secondary) 12%, white);
    color: var(--ppdst-primary);
}
.ppdst-main {
    flex: 1;
    width: 100%;
}
.ppdst-content {
    padding: clamp(28px, 5vw, 72px) 0;
}
.ppdst-card {
    background: color-mix(in srgb, var(--ppdst-surface) 96%, white);
    border: 1px solid var(--ppdst-border);
    border-radius: var(--ppdst-radius);
    box-shadow: var(--ppdst-shadow);
    padding: clamp(24px, 5vw, 52px);
}
.ppdst-page-title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: .95;
    letter-spacing: -.025em;
}
.ppdst-entry-content > *:first-child { margin-top: 0; }
.ppdst-entry-content > *:last-child { margin-bottom: 0; }
.ppdst-footer {
    border-top: 1px solid var(--ppdst-border);
    background: color-mix(in srgb, var(--ppdst-sidebar) 96%, black);
    color: var(--ppdst-sidebar-text);
}
.ppdst-footer__inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    font-size: .95rem;
}
.ppdst-footer a { color: #fff; }

.ppd-wsp-page .ppdst-content {
    width: 100%;
    max-width: none;
    padding: 0;
}
.ppd-wsp-page .ppdst-card {
    min-height: calc(100vh - 76px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: clamp(18px, 4vw, 56px);
    background: transparent;
}
.ppd-wsp-page .ppdst-page-title {
    width: min(calc(100% - 32px), var(--ppdst-max-width));
    margin: 0 auto clamp(18px, 4vw, 34px);
}

@media (max-width: 782px) {
    .admin-bar .ppdst-header { top: 46px; }
    .ppdst-header__inner { min-height: auto; padding: 14px 0; align-items: flex-start; flex-direction: column; }
    .ppdst-nav ul { gap: 4px; }
    .ppdst-nav a { min-height: 34px; padding: 6px 10px; font-size: .88rem; }
    .ppdst-footer__inner { flex-direction: column; align-items: flex-start; }
}
