/* style.css - PureCollagen Global Styles */
:root {
    --brand-primary: #ec4899; /* Pink-500 */
    --brand-primary-hover: #db2777; /* Pink-600 */
    --brand-light: #fdf2f8; /* Pink-50 */
    --text-main: #1f2937; /* Gray-800 */
    --text-secondary: #4b5563; /* Gray-600 */
    --bg-body: #f9fafb; /* Gray-50 */
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius-lg: 0.5rem;
    --radius-xl: 1rem;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

/* Header & Nav (Simplified for inner pages) */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--brand-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--brand-primary);
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--brand-primary);
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f3f4f6;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-meta {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-title a:hover {
    color: var(--brand-primary);
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-link {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.grid-sidebar {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-xl);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-light);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--brand-primary);
}

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

.tag-item {
    padding: 6px 12px;
    background: var(--bg-body);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tag-item:hover {
    background: var(--brand-primary);
    color: var(--white);
}

/* Article Detail Styles */
.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.article-cover {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--text-main);
}

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

.article-content img {
    border-radius: var(--radius-lg);
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

.article-tags {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid #e5e7eb;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.page-item:hover, .page-item.active {
    background: var(--brand-primary);
    color: var(--white);
    border-color: var(--brand-primary);
}

/* Footer */
.footer {
    background: #111827;
    color: #9ca3af;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a:hover {
    color: var(--brand-primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-sidebar {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-cover {
        height: 250px;
    }
    
    .nav-links {
        display: none; /* Simplified for demo, ideally add mobile menu JS */
    }
}
