/* General styles */
:root {
    --primary-color: #3B82F6;
    --success-color: #34D399;
    --danger-color: #F87171;
    --neutral-color: #9CA3AF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-color: #F3F4F6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: white;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

/* Header styles */
.header {
    margin-bottom: 30px;
}

.intro {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
    font-size: 15px;
}

.intro .wave {
    font-size: 15px;
    margin-right: 2px;
}

.intro .name {
    font-weight: 600;
    font-size: 15px;
}

.title {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 400;
}

/* Social links */
.social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 35px;
}

.social-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
}

/* Collection section */
.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 10px;
    position: relative;
}

.collection-title {
    font-size: 15px;
    display: flex;
    align-items: center;
    font-weight: 400;
}

.back-arrow {
    position: absolute;
    transition: all 0.3s ease;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 12px;
    top: 38%;
    transform: translateY(-50%);
}

.back-arrow.on-collection {
    left: 65px;
    transform: translateY(-50%) rotate(0deg);
}

.back-arrow.on-writing {
    right: 48px;
    transform: translateY(-50%) rotate(180deg);
}

.collection-name {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.collection-name:hover {
    color: var(--text-primary);
}

.writing-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.writing-link:hover {
    color: var(--text-primary);
}

.separator-line {
    position: absolute;
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 0.1px;
    background-color: #dedede;
}

/* Project cards */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-card {
    border-radius: 12px;
    padding: 16px 20px;
    background-color: white;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.project-info h3 {
    margin: 0;
    font-weight: 500;
    font-size: 15px;
}

.project-info p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.status-badge {
    border-radius: 40px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-building {
    color: var(--primary-color);
    background-color: #EFF6FF;
}

.status-completed {
    color: #059669;
    background-color: #ECFDF5;
}

.status-planned {
    color: #DC2626;
    background-color: #FEF2F2;
}

.status-quit {
    color: var(--text-secondary);
    background-color: #F3F4F6;
}

/* Expandable project details */
.project-details {
    display: none;
    margin-top: 12px;
    padding: 12px 0 0 0;
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
}

.project-details.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-item {
    margin-bottom: 0px;
    font-size: 13px;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: 8px;
}

.detail-value {
    color: var(--text-primary);
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Articles section */
.articles-list {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.articles-list.show {
    display: flex;
}

.article-item {
    border-radius: 12px;
    padding: 20px;
    background-color: white;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #d3d3d3;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.article-date {
    font-weight: 500;
}

.article-read-time {
    font-weight: 400;
}

.writing-link.active {
    color: #303030;
    font-weight: bold;
}

.collection-name.active {
    color: #303030;
    font-weight: bold;
}

@media (max-width: 500px) {
    .container {
        padding: 30px 16px;
    }
}
