/* CSS Variables - Fuwari Style */
:root {
    --hue: 250;
    --radius-large: 1rem;
    --content-delay: 150ms;
    
    /* Colors - Light Mode */
    --primary: oklch(0.70 0.14 var(--hue));
    --page-bg: oklch(0.95 0.01 var(--hue));
    --card-bg: white;
    
    --btn-content: oklch(0.55 0.12 var(--hue));
    --btn-regular-bg: oklch(0.95 0.025 var(--hue));
    --btn-regular-bg-hover: oklch(0.9 0.05 var(--hue));
    --btn-regular-bg-active: oklch(0.85 0.08 var(--hue));
    
    --btn-plain-bg-hover: oklch(0.95 0.025 var(--hue));
    --btn-plain-bg-active: oklch(0.98 0.01 var(--hue));
    
    --btn-card-bg-hover: oklch(0.98 0.005 var(--hue));
    --btn-card-bg-active: oklch(0.9 0.03 var(--hue));
    
    --deep-text: oklch(0.25 0.02 var(--hue));
    --title-active: oklch(0.6 0.1 var(--hue));
    
    --line-divider: rgba(0, 0, 0, 0.08);
    --line-color: rgba(0, 0, 0, 0.1);
    --meta-divider: rgba(0, 0, 0, 0.2);
    
    --inline-code-bg: var(--btn-regular-bg);
    --inline-code-color: var(--btn-content);
    --selection-bg: oklch(0.90 0.05 var(--hue));
    --codeblock-selection: oklch(0.40 0.08 var(--hue));
    --codeblock-bg: oklch(0.17 0.015 var(--hue));
    --codeblock-topbar-bg: oklch(0.3 0.02 var(--hue));
    
    --link-underline: oklch(0.93 0.04 var(--hue));
    --link-hover: oklch(0.95 0.025 var(--hue));
    --link-active: oklch(0.90 0.05 var(--hue));
    
    --float-panel-bg: white;
    
    --scrollbar-bg: rgba(0, 0, 0, 0.4);
    --scrollbar-bg-hover: rgba(0, 0, 0, 0.5);
    --scrollbar-bg-active: rgba(0, 0, 0, 0.6);

    --admonitions-color-tip: oklch(0.7 0.14 180);
    --admonitions-color-note: oklch(0.7 0.14 250);
    --admonitions-color-important: oklch(0.7 0.14 310);
    --admonitions-color-warning: oklch(0.7 0.14 60);
    --admonitions-color-caution: oklch(0.6 0.2 25);

    --toc-badge-bg: oklch(0.89 0.050 var(--hue));
    --toc-btn-hover: oklch(0.926 0.015 var(--hue));
    --toc-btn-active: oklch(0.90 0.015 var(--hue));
    --toc-item-active: oklch(0.70 0.13 var(--hue));
}

/* Dark Mode Variables */
:root.dark,
body.dark-mode {
    --primary: oklch(0.75 0.14 var(--hue));
    --page-bg: oklch(0.16 0.014 var(--hue));
    --card-bg: oklch(0.23 0.015 var(--hue));
    
    --btn-content: oklch(0.75 0.1 var(--hue));
    --btn-regular-bg: oklch(0.33 0.035 var(--hue));
    --btn-regular-bg-hover: oklch(0.38 0.04 var(--hue));
    --btn-regular-bg-active: oklch(0.43 0.045 var(--hue));
    
    --btn-plain-bg-hover: oklch(0.30 0.035 var(--hue));
    --btn-plain-bg-active: oklch(0.27 0.025 var(--hue));
    
    --btn-card-bg-hover: oklch(0.3 0.03 var(--hue));
    --btn-card-bg-active: oklch(0.35 0.035 var(--hue));
    
    --line-divider: rgba(255, 255, 255, 0.08);
    --line-color: rgba(255, 255, 255, 0.1);
    --meta-divider: rgba(255, 255, 255, 0.2);
    
    --selection-bg: oklch(0.40 0.08 var(--hue));
    --codeblock-bg: oklch(0.17 0.015 var(--hue));
    --codeblock-topbar-bg: oklch(0.12 0.015 var(--hue));
    
    --link-underline: oklch(0.40 0.08 var(--hue));
    --link-hover: oklch(0.40 0.08 var(--hue));
    --link-active: oklch(0.35 0.07 var(--hue));
    
    --float-panel-bg: oklch(0.19 0.015 var(--hue));
    
    --scrollbar-bg: rgba(255, 255, 255, 0.4);
    --scrollbar-bg-hover: rgba(255, 255, 255, 0.5);
    --scrollbar-bg-active: rgba(255, 255, 255, 0.6);

    --admonitions-color-tip: oklch(0.75 0.14 180);
    --admonitions-color-note: oklch(0.75 0.14 250);
    --admonitions-color-important: oklch(0.75 0.14 310);
    --admonitions-color-warning: oklch(0.75 0.14 60);
    --admonitions-color-caution: oklch(0.65 0.2 25);

    --toc-badge-bg: var(--btn-regular-bg);
    --toc-btn-hover: oklch(0.22 0.02 var(--hue));
    --toc-btn-active: oklch(0.25 0.02 var(--hue));
    --toc-item-active: oklch(0.35 0.07 var(--hue));
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--page-bg);
    color: var(--deep-text);
    transition: all 0.3s ease;
    font-size: var(--font-size-base, 16px);
}

.container {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-divider);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

body.dark-mode .site-header {
    background: oklch(0.19 0.015 var(--hue), 0.8);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-branding .site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-branding .site-title:hover {
    color: var(--title-active);
}

.site-branding .site-description {
    font-size: 0.875rem;
    color: var(--meta-divider);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-navigation a {
    color: var(--deep-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary);
    background-color: var(--btn-plain-bg-hover);
}

.main-navigation a:active {
    background-color: var(--btn-plain-bg-active);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-plain {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    color: var(--deep-text);
}

.btn-plain:hover {
    background: var(--btn-plain-bg-hover);
    color: var(--primary);
}

.btn-plain:active {
    background: var(--btn-plain-bg-active);
}

.dark-mode-toggle .moon-icon {
    display: none;
}

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

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

/* Search Panel */
.search-panel {
    max-height: calc(-100px + 100vh);
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--float-panel-bg);
    border-top: 1px solid var(--line-divider);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.search-panel.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line-divider);
    border-radius: 0.5rem;
    background: var(--card-bg);
    color: var(--deep-text);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-results {
    margin-top: 1rem;
}

.search-results a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line-divider);
    color: var(--deep-text);
    text-decoration: none;
}

.search-results a:hover {
    color: var(--primary);
}

.search-results .title {
    font-weight: 600;
}

.search-results .date {
    font-size: 0.875rem;
    color: var(--meta-divider);
}

/* Main Content */
.site-main {
    margin-top: 80px; /* Height of fixed header */
    min-height: calc(100vh - 80px);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, 
        oklch(0.85 0.08 var(--hue)) 0%, 
        oklch(0.80 0.12 calc(var(--hue) + 60)) 100%);
    color: white;
    text-align: center;
    padding: 6rem 0 4rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

body.dark-mode .hero-section {
    background: linear-gradient(135deg, 
        oklch(0.25 0.08 var(--hue)) 0%, 
        oklch(0.30 0.12 calc(var(--hue) + 60)) 100%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Card Components */
.post-card {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.005);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--btn-card-bg-hover);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-card:hover::before {
    opacity: 1;
}

body.dark-mode .post-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--deep-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary);
}

.post-meta {
    color: var(--meta-divider);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-excerpt {
    color: var(--deep-text);
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--btn-regular-bg-hover);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--btn-regular-bg);
    color: var(--btn-content);
}

.btn-primary:hover {
    background: var(--btn-regular-bg-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    background: var(--btn-regular-bg-active);
    transform: translateY(0);
}

.read-more {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Footer */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--line-divider);
    color: var(--deep-text);
    text-align: center;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.site-info {
    opacity: 0.8;
}

.site-info p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.site-info a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-info a:hover {
    color: var(--title-active);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.p-4 { padding: 1rem; }
.hidden { display: none; }

/* Single Post Styles */
.single-post {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.005);
}

.single-post .entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.single-post .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-post .entry-meta {
    color: var(--meta-divider);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.single-post .entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-thumbnail-single img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-large);
    margin-bottom: 2rem;
}

.entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
    color: var(--deep-text);
    font-weight: 600;
    line-height: 1.3;
    margin: 1.5em 0 0.5em 0;
}

.entry-content h1 { font-size: 2em; }
.entry-content h2 { font-size: 1.75em; }
.entry-content h3 { font-size: 1.5em; }
.entry-content h4 { font-size: 1.25em; }
.entry-content h5 { font-size: 1.125em; }
.entry-content h6 { font-size: 1em; }

.entry-content p {
    margin-bottom: 1em;
}

.entry-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--link-underline);
    text-underline-offset: 2px;
    transition: all 0.3s ease;
}

.entry-content a:hover {
    text-decoration-color: var(--primary);
}

.entry-content ul, .entry-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background: var(--btn-regular-bg);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
}

.entry-content pre {
    background: var(--codeblock-bg);
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content code {
    background: var(--inline-code-bg);
    color: var(--inline-code-color);
    padding: 0.125em 0.25em;
    border-radius: 0.25em;
    font-family: 'JetBrains Mono Variable', monospace;
    font-size: 0.9em;
}

.entry-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--line-divider);
    border-radius: 0.5em;
    overflow: hidden;
}

.entry-content th, .entry-content td {
    padding: 0.75em 1em;
    text-align: left;
    border-bottom: 1px solid var(--line-divider);
}

.entry-content th {
    background: var(--btn-regular-bg);
    font-weight: 600;
}

.entry-content tr:last-child td {
    border-bottom: none;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5em;
    margin: 1em 0;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-divider);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: var(--meta-divider);
    font-size: 0.9rem;
}

.post-tags a {
    display: inline-block;
    background: var(--btn-regular-bg);
    color: var(--btn-content);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: var(--btn-regular-bg-hover);
    transform: translateY(-1px);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--btn-regular-bg);
    padding: 1rem;
    border-radius: var(--radius-large);
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-description h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--deep-text);
}

.author-description p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--meta-divider);
}

.author-description a {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.post-navigation div {
    flex: 1;
}

.post-navigation a {
    display: block;
    background: var(--btn-regular-bg);
    padding: 1rem;
    border-radius: var(--radius-large);
    text-decoration: none;
    color: var(--deep-text);
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: var(--btn-regular-bg-hover);
    transform: translateY(-1px);
}

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-next {
    text-align: right;
}

/* Comments */
.comments-area {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.005);
    margin-top: 2rem;
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--deep-text);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    border-bottom: 1px solid var(--line-divider);
    padding: 1.5rem 0;
}

.comment-body:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-author img {
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--meta-divider);
}

.comment-content {
    margin-top: 0.5rem;
    line-height: 1.7;
}

.comment-reply-link {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--line-divider);
    border-radius: 0.5rem;
    background: var(--page-bg);
    color: var(--deep-text);
    font-size: 1rem;
    min-height: 120px;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form-author, .comment-form-email, .comment-form-url {
    margin-bottom: 1rem;
}

.comment-form-author label, .comment-form-email label, .comment-form-url label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.comment-form-author input, .comment-form-email input, .comment-form-url input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--line-divider);
    border-radius: 0.5rem;
    background: var(--page-bg);
    color: var(--deep-text);
    font-size: 1rem;
}

.comment-form-author input:focus, .comment-form-email input:focus, .comment-form-url input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-submit input[type="submit"] {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background: var(--title-active);
}

/* Pagination */
.navigation.pagination {
    margin-top: 2rem;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 0.5rem;
    background: var(--card-bg);
    border-radius: var(--radius-large);
    padding: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.005);
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--deep-text);
    transition: all 0.3s ease;
}

.page-numbers:hover {
    background: var(--btn-plain-bg-hover);
    color: var(--primary);
}

.page-numbers.current {
    background: var(--primary);
    color: white;
}

.page-numbers.current:hover {
    background: var(--title-active);
}

/* Sidebar Styles */
.widget-area {
    margin-top: 2rem;
}

.widget {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.005);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--deep-text);
    border-bottom: 1px solid var(--line-divider);
    padding-bottom: 0.5rem;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line-divider);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--deep-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--primary);
}

/* Guestbook Page Styles */
.guestbook-page {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.005);
}

.guestbook-page .entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.guestbook-page .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.guestbook-page .page-description {
    font-size: 1.1rem;
    color: var(--meta-divider);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.guestbook-stats {
    margin-bottom: 2rem;
    background: var(--btn-regular-bg);
    border-radius: var(--radius-large);
    padding: 1.5rem;
}

.guestbook-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    text-align: center;
}

.guestbook-stats .stat-item {
    padding: 1rem;
    border-radius: 0.5rem;
    background: var(--card-bg);
}

.guestbook-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.guestbook-stats .stat-label {
    font-size: 0.9rem;
    color: var(--meta-divider);
}

.guestbook-form-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--deep-text);
}

.guestbook-form-section .form-description {
    font-size: 1rem;
    color: var(--meta-divider);
    margin-bottom: 1.5rem;
}

.guestbook-form-section .form-group {
    margin-bottom: 1rem;
}

.guestbook-form-section .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.guestbook-form-section .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--line-divider);
    border-radius: 0.5rem;
    background: var(--page-bg);
    color: var(--deep-text);
    font-size: 1rem;
}

.guestbook-form-section .form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.guestbook-form-section .form-row {
    display: flex;
    gap: 1rem;
}

.guestbook-form-section .form-row .form-group {
    flex: 1;
}

.guestbook-messages {
    margin-top: 3rem;
}

.guestbook-messages .messages-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--deep-text);
}

.guestbook-messages .messages-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guestbook-message {
    background: var(--btn-regular-bg);
    border-radius: var(--radius-large);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.guestbook-message .message-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.guestbook-message .message-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.guestbook-message .message-author {
    font-weight: 600;
    color: var(--deep-text);
}

.guestbook-message .message-date {
    font-size: 0.875rem;
    color: var(--meta-divider);
}

.guestbook-message .message-content {
    line-height: 1.7;
    color: var(--deep-text);
}

.guestbook-message .reply-link {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
}

.guestbook-message .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1.5rem;
    border-left: 2px solid var(--line-divider);
}

.guestbook-message .children .guestbook-message {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.no-messages {
    text-align: center;
    padding: 3rem 0;
    color: var(--meta-divider);
}

.no-messages-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-messages h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-messages p {
    font-size: 1rem;
}

/* Archive Page Styles */
.archive-page .post-card {
    margin-bottom: 1.5rem;
}

.archive-page .post-card:last-child {
    margin-bottom: 0;
}

.archive-page .posts-grid {
    grid-template-columns: 1fr;
}

/* Shortcode Styles */
.btn-small { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-large { padding: 1rem 2rem; font-size: 1.125rem; }

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 4px solid;
}
.alert-info { background: var(--btn-regular-bg); border-color: var(--admonitions-color-tip); }
.alert-warning { background: #fef3cd; border-color: var(--admonitions-color-warning); color: #92400e; }
.alert-error { background: #fee2e2; border-color: var(--admonitions-color-caution); color: #991b1b; }
.alert-success { background: #dcfce7; border-color: var(--admonitions-color-note); color: #166534; }
.alert-title { font-weight: 600; margin-bottom: 0.5rem; }

.highlight { padding: 0.125rem 0.25rem; border-radius: 0.25rem; }
.highlight-yellow { background: #fef08a; }
.highlight-blue { background: #bfdbfe; }
.highlight-green { background: #bbf7d0; }
.highlight-red { background: #fecaca; }

.quote-block {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--btn-regular-bg);
    border-radius: 0 0.5rem 0.5rem 0;
}
.quote-citation { display: block; margin-top: 0.5rem; font-style: italic; opacity: 0.8; }

.code-wrapper { margin: 1rem 0; }
.code-title {
    background: var(--codeblock-topbar-bg);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}
.code-block {
    background: var(--codeblock-bg);
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.columns { display: grid; gap: 1rem; }
.columns-2 { grid-template-columns: repeat(2, 1fr); }
.columns-3 { grid-template-columns: repeat(3, 1fr); }
.columns-4 { grid-template-columns: repeat(4, 1fr); }
.gap-small { gap: 0.5rem; }
.gap-large { gap: 2rem; }

.column {
    padding: 1rem;
    background: var(--btn-regular-bg);
    border-radius: 0.5rem;
}

.social-links { display: flex; gap: 1rem; align-items: center; }
.social-link { color: var(--deep-text); transition: color 0.3s ease; }
.social-link:hover { color: var(--primary); }
.size-small .social-link svg { width: 16px; height: 16px; }
.size-large .social-link svg { width: 24px; height: 24px; }

/* Collapsible Shortcode */
.collapsible-wrapper {
    margin: 1rem 0;
    border: 1px solid var(--line-divider);
    border-radius: var(--radius-large);
    overflow: hidden;
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--btn-regular-bg);
    cursor: pointer;
    font-weight: 600;
    color: var(--deep-text);
    transition: background 0.3s ease;
}

.collapsible-header:hover {
    background: var(--btn-regular-bg-hover);
}

.collapsible-header svg {
    transition: transform 0.3s ease;
}

.collapsible-header.active svg {
    transform: rotate(90deg);
}

.collapsible-content {
    padding: 1rem;
    border-top: 1px solid var(--line-divider);
    display: none;
}

.collapsible-content.active {
    display: block;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

::-webkit-scrollbar-thumb:active {
    background: var(--scrollbar-bg-active);
}

/* Responsive */
@media (max-width: 768px) {
    .single-post .entry-title {
        font-size: 2rem;
    }
    .guestbook-page .entry-title {
        font-size: 2rem;
    }
    .guestbook-stats .stats-grid {
        grid-template-columns: 1fr;
    }
    .guestbook-form-section .form-row {
        flex-direction: column;
    }
}


