/* Blog Page Styles */

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

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

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

/* Featured Post */
.featured-post {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.featured-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.featured-image-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
}

.featured-image-content .post-emoji {
    font-size: 5rem;
    display: block;
    margin-bottom: 1rem;
}

.featured-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-body {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #eff6ff;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 2rem;
}

.post-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.post-read-time {
    color: var(--text-light);
    font-size: 0.875rem;
}

.featured-body h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-body h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-body h2 a:hover {
    color: var(--primary-color);
}

.featured-body .post-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Blog Grid */
.blog-grid-section {
    padding: 4rem 0 6rem;
    background: white;
}

.blog-grid-section .section-title {
    margin-bottom: 0.5rem;
}

.blog-grid-section .section-subtitle {
    margin-bottom: 3rem;
}

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

.blog-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.blog-card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image .post-emoji {
    font-size: 4rem;
    position: relative;
    z-index: 1;
}

.blog-card-image.gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-card-image.gradient-2 {
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
}

.blog-card-image.gradient-3 {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
}

.blog-card-image.gradient-4 {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.blog-card-image.gradient-5 {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

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

.blog-card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Blog CTA */
.blog-cta {
    padding: 5rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.blog-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.blog-cta p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta .btn {
    display: inline-block;
}

/* ===================== */
/* Blog Post Page Styles */
/* ===================== */

.post-header {
    padding: 8rem 0 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.post-header .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.post-header .post-meta {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.post-header .post-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.post-header .post-date,
.post-header .post-read-time {
    color: rgba(255, 255, 255, 0.8);
}

.post-header h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: center;
}

.post-header .post-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Post Content */
.post-content-section {
    padding: 4rem 0 6rem;
    background: white;
}

.post-layout {
    max-width: 760px;
    margin: 0 auto;
}

.post-body h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 3rem 0 1.25rem;
    line-height: 1.3;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}

.post-body p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.075rem;
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 1.75rem;
}

.post-body li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.post-body li strong {
    color: var(--text-primary);
}

.post-body blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.post-body blockquote p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Stat callout boxes used in posts */
.stat-callout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.stat-callout-item {
    background: var(--bg-secondary);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-callout-item .stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-callout-item .stat-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Info/tip boxes reused from guides */
.post-body .info-box,
.post-body .success-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.post-body .info-box {
    background: #eff6ff;
    border: 2px solid #bfdbfe;
}

.post-body .success-box {
    background: #d1fae5;
    border: 2px solid #a7f3d0;
}

.post-body .info-box .box-icon,
.post-body .success-box .box-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.post-body .info-box strong,
.post-body .success-box strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* Post CTA box */
.post-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
    color: white;
}

.post-cta h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.post-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    color: white;
}

.post-cta .btn-primary {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
}

.post-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Post nav (prev/next) */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.post-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.post-nav a:hover {
    color: var(--primary-color);
}

.post-nav .nav-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.25rem;
}

/* Share Bar */
.share-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 0;
}

.share-bar.share-bar-top {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.share-bar.share-bar-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding-top: 1.5rem;
}

.share-bar .share-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-right: 0.25rem;
    white-space: nowrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.share-btn.share-x:hover {
    background: #000;
    color: white;
}

.share-btn.share-facebook:hover {
    background: #1877f2;
    color: white;
}

.share-btn.share-linkedin:hover {
    background: #0a66c2;
    color: white;
}

.share-btn.share-email:hover {
    background: var(--primary-color);
    color: white;
}

.share-btn.share-copy:hover {
    background: var(--text-primary);
    color: white;
}

.share-btn.share-copy.copied {
    background: var(--success-color);
    color: white;
    border-color: transparent;
}

/* Responsive */
@media (max-width: 968px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .featured-body {
        padding: 2rem;
    }

    .featured-body h2 {
        font-size: 1.5rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-body h2 {
        font-size: 1.5rem;
    }

    .stat-callout {
        grid-template-columns: 1fr 1fr;
    }

    .post-cta {
        padding: 2rem;
    }

    .post-nav {
        flex-direction: column;
    }

    .blog-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stat-callout {
        grid-template-columns: 1fr;
    }
}
