/* ============================================================
   📁 琉急式日誌 - 專業開發者 UI 設計
   ============================================================ */

:root {
    --log-bg: #1a2634;
    --feature-color: #12b886;
    --fix-color: #fa5252;
    --ui-color: #7950f2;
    --opt-color: #228be6;
}

/* 佈局修正 */
.main-content {
    padding-top: 20px;
    min-height: 100vh;
    position: relative;
    z-index: 5;
}

.hero-section {
    max-width: 800px !important;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

/* 篩選工具列 */
.log-toolbar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 20px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.log-tags-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.tag-pill:hover, .tag-pill.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    box-shadow: 0 0 15px rgba(18, 184, 134, 0.4);
}

/* 時光軸清單 */
.log-list {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 30px; /* 為垂直線留空間 */
}

/* 垂直線 */
.log-list::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-green), transparent);
    opacity: 0.3;
}

/* 日誌卡片項目 */
.log-item {
    position: relative;
    background: var(--log-bg);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: 0.3s;
}

/* 時光軸圓點 */
.log-item::after {
    content: "";
    position: absolute;
    left: -37px;
    top: 28px;
    width: 12px;
    height: 12px;
    background: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-green);
}

.log-item:hover {
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* 標籤樣式 */
.log-type-line {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.badge {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.badge.feature { background: var(--feature-color); color: white; }
.badge.fix { background: var(--fix-color); color: white; }
.badge.ui { background: var(--ui-color); color: white; }
.badge.optimization { background: var(--opt-color); color: white; }

/* 內容區 */
.log-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    color: #fff;
}

.log-body {
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.log-body p {
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* 底部 Meta 資訊 */
.log-meta {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.log-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 5px;
}

.log-version {
    background: rgba(72, 202, 228, 0.1);
    color: #48CAE4;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
}

/* 手機版適應 */
@media (max-width: 768px) {
    .log-list { padding-left: 20px; margin-inline: 15px; }
    .log-list::before { left: 0; }
    .log-item::after { left: -26px; }
    .hero-section { padding: 40px 20px; }
    .log-title { font-size: 1.15rem; }
}