/* ===================================
   Variables & Root Styles
   =================================== */
:root {
    /* Colors - Light Mode */
    --color-background: oklch(1 0 0);
    --color-foreground: oklch(0.145 0 0);
    --color-card: oklch(1 0 0);
    --color-card-foreground: oklch(0.145 0 0);
    --color-primary: oklch(0.205 0 0);
    --color-primary-foreground: oklch(0.985 0 0);
    --color-secondary: oklch(0.97 0 0);
    --color-secondary-foreground: oklch(0.205 0 0);
    --color-muted: oklch(0.97 0 0);
    --color-muted-foreground: oklch(0.556 0 0);
    --color-accent: oklch(0.97 0 0);
    --color-accent-foreground: oklch(0.205 0 0);
    --color-border: oklch(0.922 0 0);
    --color-input: oklch(0.922 0 0);
    --color-ring: oklch(0.708 0 0);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Radius */
    --radius: 0.625rem;
    --radius-sm: calc(var(--radius) - 4px);
    --radius-md: calc(var(--radius) - 2px);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) + 4px);
    
    /* Fonts */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
    
    /* Transitions */
    --transition-base: 200ms ease;
}

.dark {
    --color-background: oklch(0.145 0 0);
    --color-foreground: oklch(0.985 0 0);
    --color-card: oklch(0.205 0 0);
    --color-card-foreground: oklch(0.985 0 0);
    --color-primary: oklch(0.922 0 0);
    --color-primary-foreground: oklch(0.205 0 0);
    --color-secondary: oklch(0.269 0 0);
    --color-secondary-foreground: oklch(0.985 0 0);
    --color-muted: oklch(0.269 0 0);
    --color-muted-foreground: oklch(0.708 0 0);
    --color-accent: oklch(0.269 0 0);
    --color-accent-foreground: oklch(0.985 0 0);
    --color-border: oklch(1 0 0 / 10%);
    --color-input: oklch(1 0 0 / 15%);
    --color-ring: oklch(0.556 0 0);
}

/* ===================================
   Base Styles
   =================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

/* ===================================
   Layout
   =================================== */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ===================================
   Header
   =================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-background);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    height: 3.5rem;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
}

.site-logo img {
    height: 2rem;
    width: auto;
    max-width: 12rem;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.site-nav {
    display: flex;
    gap: var(--spacing-lg);
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav li {
    margin: 0;
}

.site-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-base);
}

.site-nav a:hover {
    color: var(--color-primary);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: transparent;
    color: var(--color-foreground);
    cursor: pointer;
    transition: background-color var(--transition-base);
}

.theme-toggle:hover {
    background-color: var(--color-accent);
}

.theme-toggle svg {
    color: var(--color-foreground);
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

.dark .sun-icon {
    display: none;
}

.dark .moon-icon {
    display: block;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    padding: var(--spacing-2xl) 0;
    border-bottom: 1px solid var(--color-border);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flickering-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 0;
    mask-image: linear-gradient(to top, transparent 25%, black 95%);
    -webkit-mask-image: linear-gradient(to top, transparent 25%, black 95%);
    background-image: 
        repeating-linear-gradient(
            0deg,
            var(--color-border) 0px,
            transparent 1px,
            transparent 6px,
            var(--color-border) 7px
        ),
        repeating-linear-gradient(
            90deg,
            var(--color-border) 0px,
            transparent 1px,
            transparent 6px,
            var(--color-border) 7px
        );
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.hero-description {
    color: var(--color-muted-foreground);
    font-size: clamp(0.875rem, 2vw, 1.125rem);
}

/* ===================================
   Posts Grid
   =================================== */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    margin-bottom: var(--spacing-2xl);
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    position: relative;
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

.post-card-link {
    display: block;
    height: 100%;
    transition: transform var(--transition-base);
}

.post-card-link:hover {
    transform: translateY(-2px);
}

.post-card-image {
    position: relative;
    width: 100%;
    height: 12rem;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.post-card-link:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-card-foreground);
}

.post-card-link:hover .post-card-title {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.post-card-excerpt {
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
    line-height: 1.5;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

/* ===================================
   Post Content
   =================================== */
.post-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 0;
}

.post-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-2xl) 0;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: transparent;
    color: var(--color-foreground);
    transition: background-color var(--transition-base);
}

.back-button:hover {
    background-color: var(--color-accent);
}

.back-button svg {
    color: var(--color-foreground);
}

.post-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.post-excerpt {
    max-width: 56rem;
    color: var(--color-muted-foreground);
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.post-body-wrapper {
    position: relative;
    z-index: 10;
    padding: var(--spacing-2xl) 0;
}

.post-feature-image {
    position: relative;
    width: 100%;
    max-width: 56rem;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 0 auto var(--spacing-2xl);
}

.post-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content-body {
    max-width: 56rem;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Prose Styles */
.post-content-body h1,
.post-content-body h2,
.post-content-body h3,
.post-content-body h4,
.post-content-body h5,
.post-content-body h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-top: 2rem;
    margin-bottom: 1rem;
    scroll-margin-top: 5rem;
}

.post-content-body h2 {
    font-size: 1.875rem;
}

.post-content-body h3 {
    font-size: 1.5rem;
}

.post-content-body p {
    margin-bottom: 1.5rem;
}

.post-content-body a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content-body a:hover {
    text-decoration: none;
}

.post-content-body ul,
.post-content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content-body li {
    margin-bottom: 0.5rem;
}

.post-content-body blockquote {
    border-left: 4px solid var(--color-border);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--color-muted-foreground);
    margin: 2rem 0;
}

.post-content-body code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background-color: var(--color-muted);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
}

.post-content-body pre {
    background-color: var(--color-muted);
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content-body pre code {
    background-color: transparent;
    padding: 0;
}

.post-content-body img {
    border-radius: var(--radius);
    margin: 2rem 0;
}

/* ===================================
   Read More Section
   =================================== */
.read-more-section {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--color-border);
}

.read-more-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
}

.read-more-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .read-more-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.read-more-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.read-more-image {
    position: relative;
    width: 100%;
    height: 10rem;
    overflow: hidden;
    border-radius: var(--radius);
}

.read-more-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.read-more-card:hover .read-more-image img {
    transform: scale(1.05);
}

.read-more-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

.read-more-content h3 a:hover {
    text-decoration: underline;
}

.read-more-content p {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.read-more-content time {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

/* ===================================
   Author/Tag Pages
   =================================== */
.author-hero {
    padding: var(--spacing-2xl) 0;
}

.author-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .author-header {
        flex-direction: row;
        text-align: left;
    }
}

.author-header-avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
}

.author-post-count,
.tag-post-count {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    margin-top: var(--spacing-sm);
}

.author-website {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    border-radius: var(--radius);
    transition: opacity var(--transition-base);
}

.author-website:hover {
    opacity: 0.9;
}

/* ===================================
   Page Content
   =================================== */
.page-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-2xl) 0;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.page-excerpt {
    max-width: 56rem;
    color: var(--color-muted-foreground);
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.page-body-wrapper {
    padding: var(--spacing-2xl) 0;
}

.page-feature-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: var(--spacing-2xl);
}

.page-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-content-body {
    max-width: 56rem;
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Page Content Prose Styles */
.page-content-body h1,
.page-content-body h2,
.page-content-body h3,
.page-content-body h4,
.page-content-body h5,
.page-content-body h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-top: 2rem;
    margin-bottom: 1rem;
    scroll-margin-top: 5rem;
}

.page-content-body h1 {
    font-size: 2.25rem;
}

.page-content-body h2 {
    font-size: 1.875rem;
}

.page-content-body h3 {
    font-size: 1.5rem;
}

.page-content-body p {
    margin-bottom: 1.5rem;
}

.page-content-body a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-content-body a:hover {
    text-decoration: none;
}

.page-content-body ul,
.page-content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-content-body li {
    margin-bottom: 0.5rem;
}

.page-content-body blockquote {
    border-left: 4px solid var(--color-border);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--color-muted-foreground);
    margin: 2rem 0;
}

.page-content-body code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background-color: var(--color-muted);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
}

.page-content-body pre {
    background-color: var(--color-muted);
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 2rem 0;
}

.page-content-body pre code {
    background-color: transparent;
    padding: 0;
}

.page-content-body img {
    border-radius: var(--radius);
    margin: 2rem 0;
}

.page-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.page-content-body th,
.page-content-body td {
    border: 1px solid var(--color-border);
    padding: 0.75rem;
    text-align: left;
}

.page-content-body th {
    background-color: var(--color-muted);
    font-weight: 600;
}

/* ===================================
   Pagination
   =================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-2xl);
}

.pagination-prev,
.pagination-next {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color var(--transition-base);
}

.pagination-prev:hover,
.pagination-next:hover {
    background-color: var(--color-accent);
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background-color: var(--color-background);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xl) 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-text {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.footer-nav {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    transition: color var(--transition-base);
}

.footer-nav a:hover {
    color: var(--color-foreground);
}

/* ===================================
   Koenig Editor Styles
   =================================== */
/* Wide and Full Width Images */
.kg-width-wide {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

@media (min-width: 1024px) {
    .kg-width-wide {
        width: 80vw;
        margin-left: -15vw;
        margin-right: -15vw;
    }
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Gallery Card */
.kg-gallery-container {
    display: flex;
    flex-direction: column;
    margin: 1.5em auto;
    max-width: 1040px;
    width: 100vw;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.kg-gallery-image img {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
}

.kg-gallery-row:not(:first-of-type) {
    margin: 0.75em 0 0;
}

.kg-gallery-image:not(:first-of-type) {
    margin: 0 0 0 0.75em;
}

/* Bookmark Card */
.kg-bookmark-card {
    width: 100%;
    margin: 2rem 0;
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    color: inherit;
    transition: all var(--transition-base);
}

.kg-bookmark-container:hover {
    border-color: var(--color-primary);
}

.kg-bookmark-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1.5rem;
}

.kg-bookmark-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.kg-bookmark-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-muted-foreground);
    margin-bottom: 0.5rem;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.kg-bookmark-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.kg-bookmark-author {
    font-weight: 500;
}

.kg-bookmark-publisher {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}

.kg-bookmark-thumbnail {
    position: relative;
    min-width: 33%;
    max-height: 100%;
}

.kg-bookmark-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card */
.kg-card {
    margin: 2rem 0;
}

/* Embed Card */
.kg-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 2rem 0;
}

.kg-embed-card iframe {
    width: 100%;
    border-radius: var(--radius);
}

/* Video Card */
.kg-video-card {
    margin: 2rem 0;
}

.kg-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.kg-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
}

/* File Card */
.kg-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin: 2rem 0;
    transition: all var(--transition-base);
}

.kg-file-card:hover {
    border-color: var(--color-primary);
}

.kg-file-card-contents {
    display: flex;
    flex-direction: column;
}

.kg-file-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.kg-file-card-caption {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.kg-file-card-metadata {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.kg-file-card-filesize {
    margin-left: 0.5rem;
}

/* Image Card */
.kg-image-card {
    margin: 2rem 0;
}

.kg-image-card img {
    width: 100%;
    border-radius: var(--radius);
}

.kg-image-card figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    margin-top: 0.75rem;
}

/* Code Card */
.kg-code-card {
    margin: 2rem 0;
}

.kg-code-card pre {
    margin: 0;
}

/* Button Card */
.kg-button-card {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.kg-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    border-radius: var(--radius);
    transition: opacity var(--transition-base);
}

.kg-btn:hover {
    opacity: 0.9;
}

.kg-btn-accent {
    background-color: var(--color-accent);
    color: var(--color-accent-foreground);
}

/* Callout Card */
.kg-callout-card {
    display: flex;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.kg-callout-card-grey {
    background-color: var(--color-muted);
    border: 1px solid var(--color-border);
}

.kg-callout-card-white {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
}

.kg-callout-card-blue {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.kg-callout-card-green {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.kg-callout-card-yellow {
    background-color: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.kg-callout-card-red {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.kg-callout-card-pink {
    background-color: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.kg-callout-card-purple {
    background-color: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.kg-callout-card-accent {
    background-color: var(--color-accent);
    border: 1px solid var(--color-border);
}

.kg-callout-emoji {
    font-size: 1.5rem;
    line-height: 1;
    margin-right: 1rem;
}

.kg-callout-text {
    font-size: 1rem;
    line-height: 1.6;
}

/* Toggle Card */
.kg-toggle-card {
    margin: 2rem 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.kg-toggle-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
}

.kg-toggle-content {
    padding: 0 1.5rem 1rem;
    display: none;
}

.kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-content {
    display: block;
}

/* Product Card */
.kg-product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.kg-product-card-image {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.kg-product-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.kg-product-card-description {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    margin-bottom: 1rem;
}

.kg-product-card-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.kg-product-card-rating-star {
    color: #fbbf24;
}

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

