/* ===== Flavor Theme Custom Styles ===== */

/* DaisyUI light theme overrides */
[data-theme="light"] {
    --color-primary: oklch(0.44 0.19 264);
    --color-primary-content: oklch(0.98 0.01 264);
    --color-secondary: oklch(0.63 0.16 237);
    --color-secondary-content: oklch(0.98 0.01 237);
    --color-accent: oklch(0.67 0.16 165);
    --color-accent-content: oklch(0.98 0.01 165);
    --color-base-100: oklch(1 0 0);
    --color-base-200: oklch(0.985 0.002 247);
    --color-base-300: oklch(0.967 0.003 264);
    --color-base-content: oklch(0.278 0.033 256);
    --radius-selector: 0.5rem;
    --radius-field: 0.375rem;
    --radius-box: 0.75rem;
}

/* ===== Typography ===== */
body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Article Prose Styles ===== */
.prose {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: oklch(0.40 0.03 256);
}

.prose h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: oklch(0.278 0.033 256);
}

.prose h3 {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: oklch(0.278 0.033 256);
}

.prose h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: oklch(0.278 0.033 256);
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose a {
    color: oklch(0.44 0.19 264);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.prose a:hover {
    color: oklch(0.38 0.22 264);
}

.prose ul, .prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.prose li ul, .prose li ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.prose blockquote {
    border-left: 3px solid oklch(0.44 0.19 264);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: oklch(0.45 0.03 256);
}

.prose img {
    border-radius: 0.5rem;
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
}

.prose figure {
    margin: 2rem 0;
}

.prose figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: oklch(0.55 0.02 256);
    margin-top: 0.5rem;
}

.prose pre {
    background: oklch(0.967 0.003 264);
    border-radius: 0.5rem;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid oklch(0.92 0.004 264);
}

.prose code {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 0.875rem;
}

.prose p code, .prose li code {
    background: oklch(0.967 0.003 264);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.prose pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.prose thead th {
    background: oklch(0.967 0.003 264);
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid oklch(0.92 0.004 264);
    color: oklch(0.278 0.033 256);
}

.prose tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid oklch(0.95 0.003 264);
}

.prose tbody tr:hover {
    background: oklch(0.985 0.002 247);
}

.prose strong {
    font-weight: 600;
    color: oklch(0.278 0.033 256);
}

.prose hr {
    border: none;
    border-top: 1px solid oklch(0.92 0.004 264);
    margin: 2.5rem 0;
}

/* ===== Card Hover ===== */
.post-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(135deg, oklch(0.44 0.19 264) 0%, oklch(0.56 0.18 245) 50%, oklch(0.63 0.16 237) 100%);
}

/* ===== Navbar shadow on scroll ===== */
.navbar-sticky {
    transition: box-shadow 0.2s ease;
}

/* ===== Reading Progress Bar ===== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: oklch(0.44 0.19 264);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== Category Badge Colors ===== */
.cat-analytics-fundamentals { --badge-color: oklch(0.44 0.19 264); }
.cat-tools-integrations { --badge-color: oklch(0.63 0.16 237); }
.cat-technical-implementation { --badge-color: oklch(0.67 0.16 165); }
.cat-seo { --badge-color: oklch(0.65 0.20 50); }
.cat-automation-reporting { --badge-color: oklch(0.55 0.18 300); }

/* ===== Smooth Scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Selection ===== */
::selection {
    background: oklch(0.85 0.10 264);
    color: oklch(0.20 0.05 264);
}

/* ===== Focus ===== */
a:focus-visible, button:focus-visible {
    outline: 2px solid oklch(0.44 0.19 264);
    outline-offset: 2px;
    border-radius: 4px;
}
