/* Ghost OS Theme - Soft Blue
   Elegant Desktop OS Design
   Version 2.2
   ================================ */

/* ===========================================
   FONTS & VARIABLES
   =========================================== */

:root {
    /* Colors - Soft Blue palette */
    --bg-primary: #0f1318;
    --bg-secondary: rgba(16, 20, 26, 0.95);
    --bg-tertiary: rgba(12, 15, 20, 0.95);
    --bg-taskbar: rgba(14, 18, 24, 0.98);
    --bg-overlay: rgba(12, 16, 20, 0.85);
    
    /* Accent - Uses custom color from Ghost settings, fallback to soft blue */
    --accent: var(--custom-accent, #7a8a9a);
    --accent-light: color-mix(in srgb, var(--accent) 100%, white 20%);
    --accent-border: color-mix(in srgb, var(--accent) 30%, transparent);
    --accent-border-light: color-mix(in srgb, var(--accent) 20%, transparent);
    --accent-border-faint: color-mix(in srgb, var(--accent) 12%, transparent);
    --accent-glow: color-mix(in srgb, var(--accent) 8%, transparent);
    --accent-hover: color-mix(in srgb, var(--accent) 12%, transparent);
    
    /* Text */
    --text-primary: #e4e8ec;
    --text-secondary: #c0c8d0;
    --text-muted: #8a9aaa;
    --text-dim: #6a7a8a;
    --text-faint: #5a6a7a;
    --text-ghost: #4a5a6a;
    
    /* Layout */
    --taskbar-height: 44px;
    --sidebar-width: 200px;
    --modal-header-height: 40px;
    --content-max-width: 660px;
    
    /* Fonts */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 6px;
}

/* ===========================================
   RESET & BASE
   =========================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

/* ===========================================
   DESKTOP ENVIRONMENT
   =========================================== */

.os-desktop {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.desktop-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: saturate(60%) hue-rotate(-10deg);
    z-index: 0;
}

.desktop-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 16, 20, 0.5);
    z-index: 1;
}

.desktop-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--taskbar-height);
    z-index: 10;
    overflow: hidden;
}

/* ===========================================
   HERO - Center Title
   =========================================== */

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    user-select: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.hero-line {
    width: 80px;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
    margin: 14px 0;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ===========================================
   DESKTOP ICONS
   =========================================== */

.desktop-icons {
    position: absolute;
    top: 20px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 20;
}

.desktop-icon {
    width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease;
}

.desktop-icon:hover {
    background: var(--accent-hover);
}

.desktop-icon.dragging {
    opacity: 0.5;
}

.desktop-icon img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    margin-bottom: 5px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.desktop-icon .icon-placeholder {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    margin-bottom: 5px;
    background: linear-gradient(145deg, #1a2230 0%, #141a24 100%);
    border: 1px solid var(--accent-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
}

.desktop-icon .icon-label {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===========================================
   SPOTLIGHT GRID
   =========================================== */

.spotlight-grid {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: repeat(2, 180px);
    gap: 10px;
    z-index: 30;
    max-height: calc(100vh - var(--taskbar-height) - 80px);
    overflow-y: auto;
    padding: 10px;
}

.spotlight-grid::-webkit-scrollbar {
    width: 4px;
}

.spotlight-grid::-webkit-scrollbar-track {
    background: transparent;
}

.spotlight-grid::-webkit-scrollbar-thumb {
    background: var(--accent-border-light);
    border-radius: 2px;
}

.spotlight-card {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.spotlight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-border);
}

.card-image {
    height: 80px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(16, 20, 26, 0.9) 100%);
}

/* Video card */
.spotlight-video .card-image {
    position: relative;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 10px;
    z-index: 5;
}

.card-content {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-tag {
    font-size: 8px;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 9px;
    color: var(--text-faint);
    margin-top: 2px;
}

/* ===========================================
   TASKBAR
   =========================================== */

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--taskbar-height);
    background: var(--bg-taskbar);
    border-top: 1px solid var(--accent-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.taskbar-main {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Ghost navigation output */
.taskbar-main ul,
.taskbar-main .nav {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
}

.taskbar-main li {
    margin: 0;
    padding: 0;
}

.taskbar-main li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 7px;
    color: var(--text-ghost);
    transition: all 0.15s ease;
    position: relative;
}

.taskbar-main li a::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    margin-bottom: 1px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
}

/* Taskbar icons */
.taskbar-main li a[href*="about"]::before,
.taskbar-main li.nav-about a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aaabc' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.taskbar-main li a[href*="artikel"]::before,
.taskbar-main li a[href*="blog"]::before,
.taskbar-main li a[href*="posts"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aaabc' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
}

.taskbar-main li a[href*="projekt"]::before,
.taskbar-main li a[href*="project"]::before,
.taskbar-main li a[href*="work"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aaabc' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
}

.taskbar-main li a[href*="portfolio"]::before,
.taskbar-main li a[href*="galerie"]::before,
.taskbar-main li a[href*="gallery"]::before,
.taskbar-main li a[href*="foto"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aaabc' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
}

.taskbar-main li a[href*="kontakt"]::before,
.taskbar-main li a[href*="contact"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aaabc' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

.taskbar-main li a[href*="video"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aaabc' stroke-width='2'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'/%3E%3C/svg%3E");
}

/* Default icon */
.taskbar-main li a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aaabc' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3C/svg%3E");
}

.taskbar-main li a:hover {
    background: var(--accent-glow);
    color: var(--text-muted);
}

.taskbar-main li a:hover::before {
    opacity: 0.8;
}

/* Active state - subtle background instead of underline */
.taskbar-main li.nav-current a,
.taskbar-main li a.active {
    background: var(--accent-hover);
    color: var(--text-muted);
}

.taskbar-main li.nav-current a::before {
    opacity: 1;
}

/* ===========================================
   OVERLAY MODAL (Articles/Pages)
   =========================================== */

.overlay-container {
    position: fixed;
    inset: 0;
    bottom: var(--taskbar-height);
    z-index: 50;
}

.overlay-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(2px);
}

.overlay-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 960px;
    height: 85%;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.overlay-modal-page {
    max-width: 800px;
}

.overlay-modal.dragging {
    cursor: grabbing;
    user-select: none;
}

/* ===========================================
   MODAL SIDEBAR - Article List
   =========================================== */

.modal-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-tertiary);
    border-right: 1px solid var(--accent-border-light);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    height: 40px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--accent-border-faint);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-faint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-header svg {
    color: var(--accent-light);
    flex-shrink: 0;
}

.sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.sidebar-list::-webkit-scrollbar {
    width: 4px;
}

.sidebar-list::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-list::-webkit-scrollbar-thumb {
    background: var(--accent-border-light);
    border-radius: 2px;
}

.sidebar-item {
    display: block;
    padding: 10px 12px;
    margin-bottom: 2px;
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
}

.sidebar-item:hover {
    background: var(--accent-glow);
}

.sidebar-item.active {
    background: var(--accent-hover);
    border-left-color: var(--accent-light);
}

.sidebar-item h4 {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 3px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-item.active h4 {
    color: var(--text-primary);
}

.sidebar-item-meta {
    font-size: 9px;
    color: var(--text-ghost);
    display: flex;
    gap: 8px;
}

.sidebar-tag {
    color: var(--accent);
}

/* ===========================================
   MODAL MAIN AREA
   =========================================== */

.modal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.modal-header {
    height: var(--modal-header-height);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--accent-border-faint);
    background: rgba(10, 14, 18, 0.5);
    cursor: grab;
}

.modal-header:active {
    cursor: grabbing;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-nav-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-border-light);
    border-radius: var(--radius-sm);
    color: var(--text-faint);
    transition: all 0.15s ease;
}

.modal-nav-btn:hover:not(.disabled) {
    background: var(--accent-glow);
    border-color: var(--accent-border);
    color: var(--text-secondary);
}

.modal-nav-btn.disabled {
    opacity: 0.3;
    cursor: default;
}

.modal-breadcrumb {
    font-size: 10px;
    color: var(--text-ghost);
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-breadcrumb svg {
    color: var(--accent);
}

.modal-breadcrumb span {
    color: var(--text-dim);
}

.modal-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-action {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.modal-action:hover {
    color: var(--text-secondary);
    background: var(--accent-glow);
}

.modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-size: 18px;
    font-weight: 300;
    border-radius: var(--radius-sm);
    margin-left: 4px;
    transition: all 0.15s ease;
}

.modal-close:hover {
    background: rgba(180, 80, 80, 0.15);
    color: #e07070;
}

/* ===========================================
   READER / ARTICLE CONTENT
   =========================================== */

.modal-reader {
    flex: 1;
    overflow-y: auto;
    padding: 32px 40px;
}

.modal-reader::-webkit-scrollbar {
    width: 6px;
}

.modal-reader::-webkit-scrollbar-track {
    background: transparent;
}

.modal-reader::-webkit-scrollbar-thumb {
    background: var(--accent-border-light);
    border-radius: 3px;
}

.reader-container {
    max-width: var(--content-max-width);
}

.reader-container-wide {
    max-width: 720px;
}

/* ===========================================
   ARTICLE HEADER - Improved Design
   =========================================== */

.article-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--accent-border-faint);
}

.reader-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 12px;
    color: var(--text-dim);
}

.meta-tag {
    color: var(--accent-light);
    font-weight: 500;
    transition: color 0.15s ease;
}

.meta-tag:hover {
    color: var(--text-primary);
}

.meta-separator {
    margin: 0 10px;
    color: var(--text-ghost);
}

.meta-date {
    color: var(--text-dim);
}

.meta-reading-time {
    color: var(--text-faint);
}

.meta-author {
    color: var(--text-muted);
}

/* ===========================================
   READER BODY
   =========================================== */

.reader-feature-image {
    margin-bottom: 28px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.reader-feature-image img {
    width: 100%;
}

.reader-feature-image figcaption {
    font-size: 11px;
    color: var(--text-ghost);
    padding: 10px 0;
    text-align: center;
    font-style: italic;
}

.reader-body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.75;
}

.reader-body p {
    margin-bottom: 18px;
}

.reader-body p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 52px;
    float: left;
    line-height: 1;
    margin-right: 12px;
    margin-top: 6px;
    color: var(--accent-light);
    font-weight: 500;
}

.page-body p:first-of-type::first-letter {
    font-size: inherit;
    float: none;
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
}

.reader-body a {
    color: var(--accent-light);
    text-decoration: underline;
    text-decoration-color: var(--accent-border);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s ease;
}

.reader-body a:hover {
    text-decoration-color: var(--accent-light);
}

.reader-body h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 40px 0 18px;
}

.reader-body h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 32px 0 14px;
}

.reader-body ul,
.reader-body ol {
    margin: 18px 0;
    padding-left: 24px;
}

.reader-body li {
    margin-bottom: 10px;
}

.reader-body blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 3px solid var(--accent-light);
    background: var(--bg-tertiary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
}

.reader-body pre {
    margin: 24px 0;
    padding: 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-border-faint);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 13px;
}

.reader-body code {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.9em;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 3px;
}

.reader-body pre code {
    background: none;
    padding: 0;
}

.reader-body img {
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

.reader-footer {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--accent-border-faint);
}

.reader-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reader-tag-link {
    font-size: 11px;
    color: var(--text-faint);
    background: var(--bg-tertiary);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.reader-tag-link:hover {
    background: var(--accent-glow);
    color: var(--accent-light);
}

/* ===========================================
   GHOST CONTENT / CARD CLASSES
   =========================================== */

.gh-content {
    font-size: 16px;
    line-height: 1.75;
}

.kg-card {
    margin: 28px 0;
}

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

.kg-width-wide {
    margin-left: -8%;
    margin-right: -8%;
    width: 116%;
    max-width: none;
}

.kg-width-full {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: none;
    border-radius: 0;
}

.kg-width-wide img,
.kg-width-full img {
    width: 100%;
}

.kg-gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kg-bookmark-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-border-faint);
    border-radius: var(--radius-sm);
}

.kg-bookmark-container {
    display: flex;
}

.kg-bookmark-content {
    flex: 1;
    padding: 18px;
}

.kg-bookmark-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.kg-bookmark-description {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.kg-bookmark-metadata {
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-ghost);
    display: flex;
    align-items: center;
    gap: 8px;
}

.kg-bookmark-icon {
    width: 16px;
    height: 16px;
}

.kg-bookmark-thumbnail {
    width: 160px;
    flex-shrink: 0;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.kg-embed-card {
    display: flex;
    justify-content: center;
}

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

.kg-video-card video,
.kg-audio-card audio {
    width: 100%;
    border-radius: var(--radius-sm);
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 1100px) {
    .spotlight-grid {
        grid-template-columns: repeat(2, 160px);
        gap: 8px;
    }
    
    .card-image {
        height: 70px;
    }
}

@media (max-width: 1024px) {
    .modal-sidebar {
        width: 180px;
    }
}

@media (max-width: 900px) {
    .modal-sidebar {
        display: none;
    }
    
    .overlay-modal {
        width: 95%;
        height: 88%;
    }
    
    .spotlight-grid {
        grid-template-columns: repeat(1, 200px);
        right: 12px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 10px;
    }
    
    .spotlight-grid {
        position: absolute;
        right: 12px;
        left: 12px;
        top: auto;
        bottom: 16px;
        transform: none;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        max-height: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .spotlight-card {
        width: 180px;
        flex-shrink: 0;
    }
    
    .desktop-icons {
        top: 12px;
        left: 12px;
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 200px;
    }
    
    .modal-reader {
        padding: 24px 20px;
    }
    
    .reader-title {
        font-size: 24px;
    }
    
    .reader-body {
        font-size: 15px;
    }
    
    .taskbar-main li a {
        width: 44px;
        font-size: 0;
    }
}

@media (max-width: 480px) {
    .spotlight-grid {
        display: none;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 20px;
        text-align: center;
    }
    
    .overlay-modal {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0;
    }
    
    .modal-reader {
        padding: 20px 16px;
    }
}

/* ===========================================
   PRINT
   =========================================== */

@media print {
    .taskbar,
    .spotlight-grid,
    .desktop-icons,
    .modal-header,
    .modal-sidebar {
        display: none !important;
    }
    
    body,
    .os-desktop,
    .desktop-content,
    .overlay-container,
    .overlay-bg,
    .overlay-modal,
    .modal-main,
    .modal-reader {
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: white !important;
        color: black !important;
        overflow: visible !important;
    }
    
    .reader-body {
        color: black;
        font-size: 12pt;
    }
}
