/* Modern Business Blog Theme */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #7c3aed;
    --accent-color: #059669;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #eff6ff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --transition: all 0.2s ease-in-out;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --line-height: 1.6;
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: var(--line-height-tight);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--font-size-4xl);
    margin-top: 2rem;
}

h2 {
    font-size: var(--font-size-3xl);
    margin-top: 1.75rem;
    border-bottom: 2px solid var(--bg-accent);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: var(--font-size-2xl);
    margin-top: 1.5rem;
}

h4 {
    font-size: var(--font-size-xl);
    margin-top: 1.25rem;
}

h5 {
    font-size: var(--font-size-lg);
    margin-top: 1rem;
}

h6 {
    font-size: var(--font-size-base);
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--primary-dark);
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

a:hover::after {
    width: 100%;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
}

figure {
    margin: 1.5rem 0;
    text-align: center;
}

figcaption {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Lists */
ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

li p {
    margin-bottom: 0;
}

/* Blockquotes */
blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--bg-accent);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 0.5rem;
    left: 0.75rem;
    font-family: Georgia, serif;
}

blockquote p {
    margin-bottom: 0;
}

/* Code */
code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875em;
    background-color: var(--bg-secondary);
    color: #d946ef;
    padding: 0.2em 0.4em;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
}

pre {
    margin: 1.5rem 0;
    padding: 1rem;
    overflow-x: auto;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875em;
    line-height: 1.5;
}

pre code {
    background-color: transparent;
    padding: 0;
    border: none;
    color: var(--text-primary);
}

/* Tables */
table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

tr:nth-child(even) {
    background-color: var(--bg-accent);
}

tr:hover {
    background-color: var(--bg-secondary);
}

/* Horizontal Rule */
hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--border-color);
}

/* Figure and Figure Caption */
.figure {
    margin: 2rem 0;
    text-align: center;
}

.figure-img {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.figure-caption {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.blog-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.blog-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta-item i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* Featured Image */
.featured-image {
    margin: 2rem 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.featured-image img:hover {
    transform: scale(1.02);
}

/* Content */
.blog-content {
    margin-bottom: 3rem;
}

/* Categories and Tags */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.category {
    background-color: var(--bg-accent);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.category:hover {
    background-color: var(--primary-color);
    color: white;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.tag {
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Call to Action */
.cta {
    background-color: var(--bg-accent);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    text-align: center;
}

.cta-title {
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: var(--font-size-sm);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #7c3aed;
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #047857;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-title {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: 0.5rem;
}

.author-bio-text {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.author-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.author-social a {
    color: var(--text-muted);
    transition: var(--transition);
}

.author-social a:hover {
    color: var(--primary-color);
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
}

.related-posts-title {
    font-size: var(--font-size-2xl);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.post-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.25rem;
}

.post-title {
    font-size: var(--font-size-lg);
    margin-bottom: 0.5rem;
    line-height: var(--line-height-snug);
}

.post-title a {
    color: var(--text-primary);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* Comments Section */
.comments-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.comments-title {
    font-size: var(--font-size-2xl);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.comment {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.comment-date {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.comment-body {
    color: var(--text-secondary);
    padding-left: 48px;
}

/* Comment Form */
.comment-form {
    margin-top: 2rem;
}

.comment-form-title {
    font-size: var(--font-size-xl);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.footer-logo {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-text {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
    }

    .container {
        padding: 0 1rem;
    }

    .blog-title {
        font-size: var(--font-size-3xl);
    }

    .featured-image img {
        height: 300px;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .comment-body {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-4xl: 1.5rem;
        --font-size-3xl: 1.25rem;
        --font-size-2xl: 1.125rem;
    }

    header {
        padding: 2rem 0 1.5rem;
    }

    .blog-title {
        font-size: var(--font-size-2xl);
    }

    .featured-image img {
        height: 250px;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
   