/* /css/blog-style.css - Styles for the Blog Page */

/* --- Global Variables & Reset (Inherited from main style, but defined for standalone use) --- */
:root {
    --primary-color: #ffb703;      /* Amber/Gold Accent */
    --secondary-color: #023047;   /* Dark Slate Blue */
    --accent-color: #2ab7ca;       /* Brighter Cyan */
    --text-color: #023047;         /* Dark Slate Blue for text */
    --text-light: #495057;         /* Darkened Gray for readability */
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(2, 48, 71, 0.05);
    --shadow-md: 0 4px 8px rgba(2, 48, 71, 0.07);
    --shadow-lg: 0 10px 20px rgba(2, 48, 71, 0.1);
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Noto Sans TC', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-light); /* Blog page has a light bg */
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Re-usable Button Style (from main css) --- */
.btn {
    padding: 12px 28px;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 500;
    padding: 8px 20px;
}
.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}

/* --- Navigation (Copied from main style for consistency) --- */
nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.nav-brand { font-size: 1.5rem; font-weight: 700; color: var(--secondary-color); text-decoration: none; }
nav ul { list-style: none; display: flex; align-items: center; gap: 32px; }
nav ul a { color: var(--text-color); font-weight: 500; text-decoration: none; position: relative; padding-bottom: 5px; }
.mobile-menu-toggle, nav ul.active { display: none; /* Simplified for blog context */ }

/* --- Blog Hero Section --- */
.blog-hero {
    background: linear-gradient(135deg, var(--secondary-color), #03405f);
    color: white;
    padding: 80px 0;
    text-align: center;
}
.blog-hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}
.blog-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: white;
    opacity: 0.8;
}

/* --- Main Blog Content --- */
.blog-container {
    padding: 80px 0;
}

/* --- Filter/Stats Section --- */
.blog-intro-section {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}
.blog-intro-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); }
.stat-label { color: var(--text-light); }

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}
.filter-tag {
    padding: 10px 25px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}
.filter-tag:hover,
.filter-tag.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- Blog Grid & Cards --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}
.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: white;
}
.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.blog-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}
.blog-excerpt {
    color: var(--text-light);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}
.tag {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.blog-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}
.read-more {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}
.read-more:hover {
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 40px 24px;
    margin-top: 100px;
}
footer p { color: white; opacity: 0.7; margin: 0; }
footer a { color: var(--primary-color); text-decoration: none; }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .blog-hero h1 { font-size: 2.5rem; }
    .blog-grid { grid-template-columns: 1fr; }
}