/**
 * Katholisch.ai Base Styles
 * Typography, resets, and common utilities
 */

/* ====================================
   Base Typography
   ==================================== */

body {
    font-family: var(--font-sans);
    color: var(--ktv-text);
    background: var(--ktv-neutral-100);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: var(--font-display);
}

.font-mono {
    font-family: var(--font-mono);
}

/* ====================================
   Links
   ==================================== */

a {
    color: var(--ktv-brand);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--ktv-brand-shade);
}

/* ====================================
   Headings
   ==================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: var(--leading-tight);
    color: var(--ktv-text);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

/* ====================================
   Overlay
   ==================================== */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    z-index: var(--z-modal-backdrop);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ====================================
   Scrollbar Styles
   ==================================== */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--ktv-neutral-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ktv-neutral-400);
}

/* Dark panel scrollbar */
.dark-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.dark-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.dark-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ====================================
   Utility Classes
   ==================================== */

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ====================================
   Focus States
   ==================================== */

:focus-visible {
    outline: 2px solid var(--ktv-brand);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ktv-brand);
    outline-offset: 2px;
}
