@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@400;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0d1117;
    color: #e6edf3;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

/* 返回按鍵 */
.back-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: #21262d;
    color: #e6edf3;
    border-radius: 50%;
    text-decoration: none;
    z-index: 10000;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    border: 1px solid #30363d;
}

.back-button:hover {
    background-color: #30363d;
}

/* 進度條 */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #4CAF50;
    z-index: 9999;
}

/* 主容器 */
.skill-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}

/* 日期 */
.skill-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #4CAF50;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

/* 標題 */
.skill-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
}

.skill-title::before {
    content: '> ';
    color: #4CAF50;
    font-family: 'JetBrains Mono', monospace;
}

/* 平台 tags */
.skill-platform-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.skill-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.06);
}

/* 圖片 */
.skill-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 56px;
}

/* Section 標題 */
.skill-section {
    margin-bottom: 48px;
}

.skill-section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: #4CAF50;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #21262d;
}

/* 內文 */
.skill-section p {
    font-size: 1rem;
    color: #c9d1d9;
    margin-bottom: 16px;
    line-height: 1.75;
}

/* 列表 */
.skill-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-section ul li {
    padding-left: 20px;
    color: #c9d1d9;
    position: relative;
    font-size: 1rem;
}

.skill-section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-family: 'JetBrains Mono', monospace;
}

/* highlight */
.skill-highlight {
    color: #4CAF50;
    font-weight: 600;
}

/* How to Use: terminal 步驟 */
.skill-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.skill-step {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 20px 24px;
}

.skill-step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #4CAF50;
    margin-bottom: 6px;
}

.skill-step h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 8px;
}

.skill-step p {
    font-size: 0.9rem;
    color: #8b949e;
    margin: 0;
    line-height: 1.6;
}

.skill-step a {
    color: #4CAF50;
    text-decoration: none;
}

.skill-step a:hover {
    text-decoration: underline;
}

.skill-step ul {
    margin: 8px 0 0;
}

/* CTA 按鈕 */
.skill-cta {
    margin-top: 48px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.skill-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #4CAF50;
    color: #0d1117;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.skill-cta-primary:hover {
    background: #66bb6a;
}

.skill-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: #e6edf3;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid #30363d;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.skill-cta-secondary:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

/* Divider */
.skill-divider {
    border: none;
    height: 1px;
    background: #21262d;
    margin: 56px 0;
}

/* 延伸閱讀 */
.skill-related-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: #8b949e;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.skill-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.skill-related-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background: #161b22;
    border: 1px solid #21262d;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.skill-related-card:hover {
    border-color: #4CAF50;
    transform: translateY(-3px);
}

.skill-related-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: 0.85;
}

.skill-related-card-body {
    padding: 14px 16px 18px;
}

.skill-related-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 6px;
}

.skill-related-card p {
    font-size: 0.82rem;
    color: #8b949e;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 600px) {
    .skill-related-grid {
        grid-template-columns: 1fr;
    }
}
