/* Blog Styles */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    color: white;
}

.blog-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.blog-card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.tag-story { background: #fef3c7; color: #92400e; }
.tag-guide { background: #dbeafe; color: #1e40af; }
.tag-tech { background: #d1fae5; color: #065f46; }
.tag-business { background: #ede9fe; color: #5b21b6; }
.tag-tips { background: #fce7f3; color: #9d174d; }

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

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

.blog-card-excerpt {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.blog-card-featured {
    border: 2px solid var(--primary);
}

.blog-card-featured .blog-card-tag::after {
    content: ' - Featured';
}

/* Article Page Styles */
.article-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 1.5rem 3rem;
    color: white;
    text-align: center;
}

.article-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.article-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #1e293b;
}

.article-content h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--gray-900);
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--gray-900);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--gray-700);
}

.article-content code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.article-content .highlight-box {
    background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
}

.article-content .highlight-box h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.article-content .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.article-content .stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.article-content .stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.article-content .stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.article-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    color: white;
    margin: 3rem 0;
}

.article-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.article-cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.article-cta .cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: #4f46e5;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.article-cta .cta-btn:hover {
    transform: scale(1.05);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.article-share span {
    font-weight: 600;
    color: var(--gray-700);
}

.article-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--gray-700);
    text-decoration: none;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.article-share a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-200);
}

.related-posts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .blog-hero h1 { font-size: 2rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .article-hero h1 { font-size: 1.8rem; }
    .article-content { font-size: 1rem; }
    .article-content .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
