/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #FAFAFA;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-blue: #0066cc;
    --accent-gold: #cc6600;
    --border: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-blue);
    background: var(--bg-primary);
}

.site-title {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.site-title .emoji {
    font-size: 1.6rem;
}

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

.site-title a:hover {
    color: var(--accent-blue);
}

.tagline {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Main Content */
main {
    padding: 3rem 0;
    min-height: calc(100vh - 300px);
}

.hero {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Posts */
.posts-list h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

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

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.footer-note {
    font-size: 0.9rem;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

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

.about-content a {
    color: var(--accent-blue);
    text-decoration: none;
}

.about-content a:hover {
    color: var(--accent-gold);
}

.signature {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.signature p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.signature strong {
    color: var(--accent-blue);
}

/* Archive Page */
.archive h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.archive-year {
    margin-bottom: 2rem;
}

.archive-year h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.archive-month {
    margin-left: 1rem;
    margin-bottom: 1.5rem;
}

.archive-month h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.archive-item {
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-blue);
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.archive-item:hover {
    border-left-color: var(--accent-blue);
    background: #f5f5f5;
}

.archive-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: inline-block;
    margin-right: 1rem;
}

.archive-item a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.archive-item a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.archive-tags {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 1rem;
}

.archive-stats {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.archive-stats h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.archive-stats ul {
    list-style: none;
    margin-left: 0;
}

.archive-stats li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

/* Hamburger Menu */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.8rem 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent-blue);
    border-left-color: var(--accent-blue);
    background: var(--bg-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .post-card {
        padding: 1.5rem;
    }

    /* Hide desktop nav */
    .top-bar .main-nav {
        display: none;
    }

    /* Show hamburger button */
    .hamburger-btn {
        display: block;
    }

    /* Adjust header for hamburger */
    .top-bar {
        justify-content: space-between;
    }

    /* Make header relative for mobile menu positioning */
    header {
        position: relative;
    }

    .header-content {
        position: relative;
    }
}
