/**
 * Base Theme Styles
 * CSS Variables and custom properties
 */

:root {
/* 現代素雅 — 主色 #116636 */
    --background: 150 8% 97%;
    --foreground: 150 10% 12%;
    --card: 150 5% 100%;
    --card-foreground: 150 10% 12%;
    --popover: 150 5% 100%;
    --popover-foreground: 150 10% 12%;
    --primary: 146 71% 23%;
    --primary-foreground: 0 0% 100%;
    --secondary: 148 15% 92%;
    --secondary-foreground: 150 10% 20%;
    --muted: 148 10% 94%;
    --muted-foreground: 150 5% 45%;
    --accent: 146 71% 23%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 100%;
    --border: 148 12% 88%;
    --input: 148 12% 88%;
    --ring: 146 71% 23%;
    --radius: 0.25rem;

    /* Custom tokens */
    --gold: 146 71% 23%;
    --gold-light: 146 45% 42%;
    --gold-glow: 146 55% 32%;
    --ink: 150 10% 12%;
    --ink-light: 150 8% 35%;
    --ink-wash: 150 5% 75%;
    --paper: 148 18% 96%;
    --temple-red: 146 60% 18%;
    --temple-red-light: 146 40% 35%;
    --burgundy: 150 45% 15%;
    --burgundy-light: 150 30% 30%;
    --earth: 152 25% 30%;
    --earth-light: 150 18% 45%;
    --earth-warm: 145 20% 93%;
    --sand: 148 18% 89%;
    --bamboo: 140 30% 35%;
    --brass: 38 55% 62%;
    --brass-light: 42 70% 78%;
    
    --color-gold: #11663636;
    --color-gold-light: #2d7a4f;
    --color-gold-glow: #39604e;
    --color-ink: #1a261c;
    --color-ink-light: #5c6b63;
    --color-ink-wash: #b8c9be;
    --color-paper: #f2f6f3;
    --color-temple-red: #39604e;
    --color-temple-red-light: #5e8773;
    --color-burgundy: #1a2620;
    --color-burgundy-light: #5c6b63;
    --color-earth: #39604e;
    --color-earth-light: #5e8773;
    --color-earth-warm: #e8f0eb;
    --color-sand: #dce8e3;
    --color-bamboo: #3a5c4a;
    
    --font-serif: 'Noto Serif TC', serif;
    --font-sans: 'Noto Sans TC', sans-serif;

    --post-thumbnail-display: block;
}

html[lang="zh-CN"] {
    --font-serif: 'Noto Serif SC', serif;
    --font-sans: 'Noto Sans SC', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.3;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: rgba(17, 102, 54, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(17, 102, 54, 0.6);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Mobile menu animations */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 70vh;
    }
}

/* Container utility */
.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 1400px;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #116636;
    outline-offset: 2px;
}

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

.admin-bar header.fixed {
	top:32px;
}