/* ===== LifeTrails 專屬樣式 ===== */
/* 使用翠綠/金色作為品牌色，與日文教學的紅色系區隔 */

/* Body */
.lt-body {
    background: #F5F7F2;
}

/* Navbar */
.lt-nav {
    background-color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    padding: 0.5rem 1rem;
    position: relative;
}
.lt-nav::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1B5E20 0%, #43A047 40%, #A5D6A7 60%, #43A047 80%, #1B5E20 100%);
}
.lt-brand {
    color: #1B5E20 !important;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lt-brand-text {
    font-size: 1rem;
    font-weight: 800;
    color: #1B5E20;
    line-height: 1.2;
}
.lt-nav .navbar-nav > li.nav-item > a {
    color: #444 !important;
    font-weight: 600;
    font-size: 15px;
    padding: 15px 14px;
    transition: color 0.2s;
}
.lt-nav .navbar-nav > li.nav-item > a:hover {
    color: #2E7D32 !important;
}
.lt-back-link {
    color: #888 !important;
    font-size: 0.88rem !important;
}
.lt-back-link:hover {
    color: #2E7D32 !important;
}

/* DropDown */
.lt-nav .dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding: 6px 4px;
}
.lt-nav .dropdown-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    border-radius: 6px;
    padding: 8px 14px;
    transition: background 0.15s, color 0.15s;
}
.lt-nav .dropdown-item:hover {
    background: #E8F5E9;
    color: #2E7D32;
}

/* Hero Banner */
.lt-hero-banner {
    margin-top: 66px;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 40%, #388E3C 70%, #558B2F 100%);
    color: #fff;
    padding: 56px 0 48px;
    text-align: center;
}
.lt-hero-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}
.lt-hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.lt-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.7;
}
.lt-subscribe-btn {
    display: inline-block;
    background: #fff;
    color: #1B5E20;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 11px 28px;
    border-radius: 28px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: transform 0.2s, box-shadow 0.2s;
}
.lt-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    text-decoration: none;
    color: #1B5E20;
}

/* Content area */
.lt-content {
    padding-top: 36px;
}

/* Footer */
.lt-footer {
    background: #fff;
    padding: 36px 0;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #2E7D32, #A5D6A7) 1;
    margin-top: 40px;
}

/* Override link colors for LifeTrails */
.lt-body a {
    color: #2E7D32;
}
.lt-body a:hover {
    color: #388E3C;
    text-decoration: none;
}
.lt-body .btn-success {
    background-color: #2E7D32;
    border-color: #2E7D32;
}
.lt-body .btn-success:hover {
    background-color: #1B5E20;
    border-color: #1B5E20;
}
.lt-body .btn-warning {
    background: linear-gradient(135deg, #F57F17, #F9A825);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
}
.lt-body .btn-warning:hover {
    opacity: 0.9;
    color: #fff;
}
.lt-body .btn-link {
    color: #2E7D32;
}

/* Post preview cards */
.lt-body .post-preview {
    padding: 20px 0;
}
.lt-body .post-preview h4.post-title {
    color: #1B5E20;
    font-weight: 700;
    transition: color 0.2s;
}
.lt-body .post-preview a:hover h4.post-title {
    color: #388E3C;
}
.lt-body .btn-success.active,
.lt-body .btn-success:active {
    background-color: #1B5E20;
    border-color: #1B5E20;
}

/* Breadcrumb */
.lt-body .breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 767px) {
    .lt-hero-title { font-size: 1.7rem; }
    .lt-hero-banner { padding: 44px 0 36px; }
}

/* ===== Blog Index 文章列表 ===== */

/* 版主介紹卡片 */
.lt-author-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: linear-gradient(135deg, #F1F8E9 0%, #E8F5E9 100%);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 32px;
    border-left: 5px solid #43A047;
    box-shadow: 0 4px 14px rgba(46,125,50,0.08);
}
.lt-author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #43A047;
    flex-shrink: 0;
}
.lt-author-info {}
.lt-author-tag {
    display: inline-block;
    background: #43A047;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
}
.lt-author-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1B5E20;
    margin-bottom: 8px;
}
.lt-author-bio {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}
.lt-subscribe-btn-sm {
    display: inline-block;
    background: #2E7D32;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}
.lt-subscribe-btn-sm:hover {
    background: #1B5E20;
    color: #fff;
    text-decoration: none;
}
@media (max-width: 576px) {
    .lt-author-card { flex-direction: column; align-items: center; text-align: center; }
}

/* 搜尋列 */
.lt-search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.lt-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #C8E6C9;
    border-radius: 24px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.lt-search-input:focus {
    border-color: #43A047;
}
.lt-search-btn {
    background: #2E7D32;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}
.lt-search-btn:hover {
    background: #1B5E20;
}

/* 分類按鈕 */
.lt-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.lt-cat-btn {
    padding: 6px 18px;
    border-radius: 20px;
    border: 2px solid #C8E6C9;
    background: #fff;
    color: #2E7D32;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lt-cat-btn:hover,
.lt-cat-btn.active {
    background: #2E7D32;
    border-color: #2E7D32;
    color: #fff;
}

/* 文章卡片 */
.lt-post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-left: 4px solid #43A047;
    transition: transform 0.2s, box-shadow 0.2s;
}
.lt-post-card:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.lt-post-link {
    text-decoration: none;
}
.lt-post-link:hover {
    text-decoration: none;
}
.lt-post-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1B5E20;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.lt-post-card:hover .lt-post-title {
    color: #43A047;
}
.lt-post-excerpt {
    color: #666;
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.lt-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.lt-post-cat-badge {
    display: inline-block;
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
}
.lt-post-date {
    font-size: 0.82rem;
    color: #999;
    font-style: italic;
}

/* 分頁 */
.lt-pager {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-bottom: 8px;
}

/* Responsive */
@media (max-width: 767px) {
    .lt-post-card { padding: 18px 16px; }
    .lt-search-bar { flex-direction: column; }
    .lt-search-input { border-radius: 12px; }
    .lt-search-btn { border-radius: 12px; width: 100%; }
}
