/* Writing Page Styles */
.writing-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.writing-navigation {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-button {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #30363d;
    border-radius: 2px;
    color: #8b949e;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: #161b22;
    color: #f0f6fc;
}

.nav-button.active {
    background-color: #4a7c9a;
    border-color: #4a7c9a;
    color: #0d1117;
}

.best-posts h2,
.all-posts h2 {
    color: #f0f6fc;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-left: 4px solid #4a7c9a;
    padding-left: 15px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.post-card {
    background-color: #161b22;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4a7c9a;
    margin-bottom: 30px;
}

.post-card h3 {
    color: #f0f6fc;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.post-card h3 a {
    color: #f0f6fc;
    text-decoration: none;
}

.post-card h3 a:hover {
    color: #4a7c9a;
}

.post-meta {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-meta span {
    margin-right: 15px;
}

.read-time {
    color: #4a7c9a;
    font-weight: bold;
}

.post-excerpt {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 15px;
    word-spacing: -0.05em;
}

.post-tags {
    margin-bottom: 15px;
}

.post-tags .tag {
    background-color: #30363d;
    color: #8b949e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 8px;
}

.read-more {
    color: #4a7c9a;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    color: #3d6a7a;
}

.contents-section {
    margin-bottom: 40px;
}

.contents-section p {
    color: #8b949e;
    margin-bottom: 20px;
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-button {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 4px;
    color: #8b949e;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-button:hover {
    background-color: #21262d;
    color: #f0f6fc;
}

.tag-button.active {
    background-color: #4a7c9a;
    border-color: #4a7c9a;
    color: #0d1117;
}

.filtered-posts {
    margin-top: 40px;
}

.no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #8b949e;
}

