/* /assets/css/blog.css - Dark Theme */

/* 移除舊的、不適用的 Dropdown Menu Styles */

/* Blog List Container */
.blog-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px; /* 調整 padding */
}

.blog-header {
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid #334155; /* slate-700 */
    padding-bottom: 20px;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #f1f5f9; /* slate-100 */
    font-weight: 700;
}

.post-list .no-posts {
    text-align: center;
    font-size: 1.2rem;
    color: #94a3b8; /* slate-400 */
    padding: 50px 0;
}

/* Post Item in List */
.post-item {
    background-color: #1e293b; /* slate-800 */
    border: 1px solid #334155; /* slate-700 */
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2), 0 0 15px rgba(56, 189, 248, 0.3);
}

.post-item-content {
    padding: 25px 30px;
}

.post-item-title {
    text-decoration: none;
}

.post-item-title h2 {
    font-size: 1.8rem;
    color: #e2e8f0; /* slate-200 */
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.post-item-title:hover h2 {
    color: #38bdf8; /* sky-400 */
}

.post-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #94a3b8; /* slate-400 */
    margin-bottom: 15px;
}

.post-item-meta span {
    display: flex;
    align-items: center;
}

.post-item-meta i {
    margin-right: 8px;
    color: #64748b; /* slate-500 */
}

.post-item-meta .post-item-category a {
    text-decoration: none;
    color: #93c5fd; /* blue-300 */
    background-color: #334155; /* slate-700 */
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.post-item-meta .post-item-category a:hover {
    background-color: #60a5fa; /* blue-400 */
    color: #fff;
}

.post-item-excerpt p {
    font-size: 1rem;
    line-height: 1.7;
    color: #cbd5e1; /* slate-300 */
    margin: 0;
}

.post-item-footer {
    margin-top: 20px;
}

.read-more {
    text-decoration: none;
    color: #60a5fa; /* blue-400 */
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #93c5fd; /* blue-300 */
}

/* Single Post Styles */
.single-post-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #1e293b; /* slate-800 */
    border: 1px solid #334155; /* slate-700 */
    border-radius: 12px;
}

.single-post-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #334155; /* slate-700 */
}

.single-post-header h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    color: #f1f5f9; /* slate-100 */
}

.single-post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    color: #94a3b8; /* slate-400 */
}

.single-post-meta span, .single-post-meta a {
    text-decoration: none;
    color: #94a3b8; /* slate-400 */
    display: flex;
    align-items: center;
    transition: color 0.3s;
}
.single-post-meta i {
    margin-right: 8px;
}
.single-post-meta .post-category a:hover {
    color: #60a5fa; /* blue-400 */
}


.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1; /* slate-300 */
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #e2e8f0; /* slate-200 */
    border-bottom: 1px solid #334155; /* slate-700 */
    padding-bottom: 0.3em;
}

.single-post-content p {
    margin-bottom: 1.5em;
}

.single-post-content a {
    color: #60a5fa; /* blue-400 */
    text-decoration: underline;
    transition: color 0.3s;
}
.single-post-content a:hover {
    color: #93c5fd; /* blue-300 */
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.single-post-content blockquote {
    border-left: 4px solid #38bdf8; /* sky-400 */
    margin: 30px 0;
    padding: 15px 25px;
    background-color: #334155; /* slate-700 */
    color: #e2e8f0; /* slate-200 */
    font-style: italic;
}

.single-post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #334155; /* slate-700 */
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.post-tags span {
    font-weight: bold;
    color: #94a3b8; /* slate-400 */
}
.post-tags a {
    display: inline-block;
    background-color: #334155; /* slate-700 */
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: #93c5fd; /* blue-300 */
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background-color: #60a5fa; /* blue-400 */
    color: #fff;
}


/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #334155; /* slate-700 */
}

.pagination li a {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    background: #1e293b; /* slate-800 */
    color: #60a5fa; /* blue-400 */
    border-right: 1px solid #334155; /* slate-700 */
    transition: background-color 0.3s;
}

.pagination li:last-child a {
    border-right: none;
}

.pagination li a:hover,
.pagination li.active a {
    background-color: #60a5fa; /* blue-400 */
    color: #fff;
}
/* /assets/css/blog.css - 新增導覽路徑樣式 */

.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li a {
    color: #94a3b8; /* slate-400 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb li a:hover {
    color: #38bdf8; /* sky-400 */
}

.breadcrumb li + li::before {
    content: '/';
    margin: 0 0.75rem;
    color: #475569; /* slate-600 */
}

.breadcrumb li.current {
    color: #cbd5e1; /* slate-300 */
    font-weight: 500;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
