/* =============================================
   INSIDER NETWORK - UNIVERSAL BASE STYLES
   Version: 2.0.1

   Core styles that apply to ALL pages.
   Dark mode by default.
   Uses CSS variables from site-config.css
   ============================================= */

/* ===========================================
   RESET & BOX SIZING
   =========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===========================================
   BODY & PAGE
   =========================================== */
body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-main,
.content-area,
main,
article,
.entry-content {
    background: var(--bg-main);
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ===========================================
   LINKS
   =========================================== */
a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-accent-light);
}

/* ===========================================
   FORMS - No visible focus outlines
   =========================================== */
input,
textarea,
select,
button {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
    border-color: var(--border-color);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-subtle);
}

/* ===========================================
   GLOBAL FOCUS STATES - No outlines
   =========================================== */
*:focus,
*:focus-visible {
    outline: none;
}

/* ===========================================
   CONTAINERS
   =========================================== */
.container,
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--primary-accent); }

.bg-card { background: var(--bg-card); }
.bg-elevated { background: var(--bg-elevated); }

/* ===========================================
   HIDE THEME BREADCRUMBS
   =========================================== */
.ct-breadcrumbs,
nav.breadcrumbs,
.breadcrumbs-wrapper {
    display: none;
}

/* ===========================================
   WORDPRESS ADMIN BAR PROTECTION
   =========================================== */
#wpadminbar,
#wpadminbar * {
    --primary-accent: initial;
    --primary-accent-dark: initial;
}

#wpadminbar a,
#wpadminbar a:hover {
    color: inherit;
}

/* ===========================================
   SCROLLBAR (Dark Mode)
   =========================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* ===========================================
   SELECTION
   =========================================== */
::selection {
    background: var(--primary-accent);
    color: var(--button-text);
}

/* ===========================================
   IMAGES
   =========================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================================
   RESPONSIVE TYPOGRAPHY
   =========================================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}
