/* ==========================================
   命理專欄 - 專屬樣式
   ========================================== */

body {
    background-color: var(--light-bg);
}

/* Page Hero */
.blog-hero {
    background: linear-gradient(135deg, rgba(44,36,27,0.92) 0%, rgba(61,50,40,0.9) 100%),
                url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=1920&h=300&fit=crop') center/cover;
    padding: 56px 0;
    text-align: center;
}

.blog-hero h1 {
    color: white;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

/* Category Filter Tabs */
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.cat-tab {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1.5px solid #e5e5e5;
    background: white;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Noto Sans TC', sans-serif;
}

.cat-tab:hover,
.cat-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Featured Article Card */
.article-featured {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(234,176,135,0.12);
    transition: all 0.3s;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 768px) {
    .article-featured {
        flex-direction: row;
    }
    .article-featured .article-img { width: 45%; flex-shrink: 0; }
    .article-featured .article-body { flex: 1; }
}

.article-featured:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(234,176,135,0.15);
    transform: translateY(-3px);
}

/* Regular Article Cards */
.article-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(234,176,135,0.1);
    transition: all 0.3s;
}

.article-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(234,176,135,0.15);
    transform: translateY(-3px);
}

.article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
    display: block;
}

.article-card:hover .article-img,
.article-featured:hover .article-img {
    transform: scale(1.04);
}

.article-img-wrap {
    overflow: hidden;
}

.article-body {
    padding: 20px;
}

.article-cat {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(234,176,135,0.12);
    color: var(--accent-gold);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 8px;
    line-height: 1.5;
    transition: color 0.2s;
}

.article-card:hover .article-title,
.article-featured:hover .article-title {
    color: var(--accent-gold);
}

.article-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.article-meta img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Sidebar */
.sidebar-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #f4d0b8;
    padding: 22px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.sidebar-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-cat-list a:last-child { border-bottom: none; }
.sidebar-cat-list a:hover { color: var(--accent-gold); }

.sidebar-cat-count {
    background: var(--secondary-color);
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.popular-post {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
}

.popular-post:last-child { border-bottom: none; }

.popular-post img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.popular-post-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-bg);
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.popular-post:hover .popular-post-title { color: var(--accent-gold); }

.popular-post-date {
    font-size: 11px;
    color: #aaa;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-cloud a {
    padding: 4px 12px;
    background: var(--light-bg);
    color: #555;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid #e8e0d8;
    transition: all 0.2s;
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==========================================
   文章詳情頁
   ========================================== */

.article-detail-hero {
    background: linear-gradient(180deg, rgba(44,36,27,0.6) 0%, rgba(44,36,27,0.85) 100%);
    padding: 64px 0;
    text-align: center;
    color: white;
    position: relative;
}

.article-detail-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.article-detail-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-bg);
    margin: 32px 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--primary-color);
}

.article-detail-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-bg);
    margin: 24px 0 10px;
}

.article-detail-content p { margin-bottom: 18px; }

.article-detail-content blockquote {
    background: rgba(234,176,135,0.08);
    border-left: 4px solid var(--primary-color);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.article-detail-content ul,
.article-detail-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.article-detail-content li { margin-bottom: 6px; }

/* Author Box */
.author-box {
    background: white;
    border-radius: 14px;
    border: 2px solid #f4d0b8;
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    flex-shrink: 0;
    object-fit: cover;
}
