/* Break Check Site Theme
   Public-facing theme for the Break Check website.
   All classes prefixed with bc-theme-* to avoid conflicting with plugin styles.
*/

/* ═════ Reset + variables ═══════════════════════════════════════════════ */
:root {
    --bc-navy: #0E2647;
    --bc-navy-2: #081e49;
    --bc-blue: #206bd0;
    --bc-yellow: #FFC72C;
    --bc-yellow-dark: #e6a800;
    --bc-cream: #fef9e7;
    --bc-bg: #f9fafb;
    --bc-border: #e5e7eb;
    --bc-muted: #6b7280;
    --bc-text: #111827;
    --bc-header-height: 76px;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--bc-text);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bc-blue); text-decoration: none; }
a:hover { color: var(--bc-navy); text-decoration: underline; }

/* Push content below the WP admin bar when it's showing */
.admin-bar .bc-theme-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .bc-theme-header { top: 46px; }
}

/* ═════ Header ═══════════════════════════════════════════════════════════ */
.bc-theme-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--bc-border);
    z-index: 100;
    transition: background 0.2s ease, border-color 0.2s ease;
}
/* Pages with a hero (landing page): make the header transparent overlay */
body.bc-has-hero .bc-theme-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: absolute;
    top: 0;
}
body.bc-has-hero.admin-bar .bc-theme-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.bc-has-hero.admin-bar .bc-theme-header { top: 46px; }
}

.bc-theme-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo — shield icon + HTML text (colour swaps based on hero/standard page) */
.bc-theme-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.bc-theme-logo:hover { text-decoration: none; }
.bc-theme-logo-shield {
    height: 42px;
    width: 42px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.bc-theme-logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
    color: var(--bc-navy);
    transition: color 0.2s ease;
    white-space: nowrap;
}
body.bc-has-hero .bc-theme-logo-text { color: #fff; }

/* Nav */
.bc-theme-nav { display: flex; }
.bc-theme-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.bc-theme-menu li { margin: 0; padding: 0; }
.bc-theme-menu a {
    color: var(--bc-navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    transition: color 0.15s ease;
    display: block;
}
.bc-theme-menu a:hover { color: var(--bc-blue); text-decoration: none; }
.bc-theme-menu .current-menu-item > a,
.bc-theme-menu .current_page_item > a { color: var(--bc-blue); }

body.bc-has-hero .bc-theme-menu a { color: #fff; }
body.bc-has-hero .bc-theme-menu a:hover { color: var(--bc-yellow); }

/* CTA menu item */
.bc-theme-menu .bc-menu-cta a {
    background: var(--bc-yellow);
    color: var(--bc-navy) !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.15s ease;
}
.bc-theme-menu .bc-menu-cta a:hover {
    background: var(--bc-yellow-dark);
    color: var(--bc-navy) !important;
    box-shadow: 0 4px 12px rgba(255, 199, 44, 0.4);
}

/* Mobile toggle */
.bc-theme-mobile-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    order: 2;
}
.bc-theme-mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--bc-navy);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.2s ease;
}
body.bc-has-hero .bc-theme-mobile-toggle span { background: #fff; }
.bc-theme-mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.bc-theme-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bc-theme-mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

@media (max-width: 900px) {
    .bc-theme-mobile-toggle { display: block; }
    .bc-theme-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bc-navy);
        display: none;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }
    .bc-theme-nav.bc-open { display: block; }
    .bc-theme-menu {
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        align-items: stretch;
    }
    .bc-theme-menu a,
    body.bc-has-hero .bc-theme-menu a {
        color: #fff !important;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 16px;
    }
    .bc-theme-menu .bc-menu-cta { margin-top: 12px; }
    .bc-theme-menu .bc-menu-cta a {
        text-align: center;
        border: 0 !important;
    }
}

/* ═════ Main content ══════════════════════════════════════════════════════ */
.bc-theme-main {
    min-height: 60vh;
}

/* Standard page wrapper (for non-shortcode pages like About, Contact, etc.) */
.bc-theme-content-wrap {
    max-width: 800px;
    margin: 60px auto 80px;
    padding: 0 24px;
}
.bc-theme-page-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--bc-navy);
    margin: 0 0 28px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}
.bc-theme-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--bc-text);
}
.bc-theme-content h2 {
    font-size: 24px;
    color: var(--bc-navy);
    margin: 40px 0 16px;
}
.bc-theme-content h3 {
    font-size: 18px;
    color: var(--bc-navy);
    margin: 32px 0 12px;
}
.bc-theme-content ul, .bc-theme-content ol { padding-left: 24px; }
.bc-theme-content li { margin: 6px 0; }
.bc-theme-content blockquote {
    border-left: 4px solid var(--bc-yellow);
    padding: 8px 20px;
    margin: 24px 0;
    color: var(--bc-muted);
    font-style: italic;
    background: var(--bc-bg);
    border-radius: 0 6px 6px 0;
}

/* Plugin-page wrapper (signup / portal / card) — light background, centered */
.bc-theme-plugin-wrap {
    background: var(--bc-bg);
    min-height: calc(100vh - var(--bc-header-height) - 400px);
    padding: 60px 0 80px;
}

/* Fix any excess whitespace on the landing page */
body.bc-has-hero .bc-theme-main {
    margin-top: 0;
    padding-top: 0;
}

/* ═════ Footer ════════════════════════════════════════════════════════════ */
.bc-theme-footer {
    background: var(--bc-navy);
    color: rgba(255, 255, 255, 0.85);
}
.bc-theme-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}
@media (max-width: 800px) {
    .bc-theme-footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
.bc-theme-footer-brand img {
    height: 56px;
    width: auto;
    margin-bottom: 18px;
}
.bc-theme-footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 280px;
    line-height: 1.6;
    margin: 0;
}
.bc-theme-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
@media (max-width: 600px) {
    .bc-theme-footer-cols { grid-template-columns: 1fr; gap: 32px; }
}
.bc-theme-footer-col h4 {
    color: var(--bc-yellow);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 16px;
    font-weight: 700;
}
.bc-theme-footer-col p,
.bc-theme-footer-col ul {
    font-size: 14px;
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}
.bc-theme-footer-col ul {
    list-style: none;
    padding: 0;
}
.bc-theme-footer-col li { margin-bottom: 6px; }
.bc-theme-footer-col a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.15s ease;
}
.bc-theme-footer-col a:hover { color: var(--bc-yellow); text-decoration: none; }

.bc-theme-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    text-align: center;
}
.bc-theme-footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 auto;
    max-width: 900px;
    line-height: 1.6;
}

/* ═════ Plugin integration ══════════════════════════════════════════════
   The theme header already shows the Break Check logo, so suppress the
   duplicate logo the plugin's landing shortcode renders inside the hero.
   ══════════════════════════════════════════════════════════════════════ */
.bc-land-hero-logo { display: none; }
.bc-land-hero { padding-top: 60px; } /* Was 84px — tightens now the logo is gone */
