/* Blog Styles */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #e8ecff 0%, #f5f7ff 100%);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.blog-header-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.blog-breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.blog-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
}

.blog-header h1 .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-header p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 750px;
    margin: 0 auto;
}

.blog-header-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Blog Grid */
.blog-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.blog-card-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.blog-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(22, 115, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    z-index: 0;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card-image {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-color: var(--primary-blue);
}

.blog-card:hover .blog-card-image::before {
    background: radial-gradient(circle, rgba(22, 115, 255, 0.15) 0%, transparent 70%);
}

.blog-card-image svg {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-card-image svg {
    transform: scale(1.08);
}

.blog-card-content {
    padding: 2rem;
}

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

.blog-category {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--gradient);
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.blog-reading-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-reading-time::before {
    content: '•';
    margin-right: 0.5rem;
}

.blog-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

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

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

.blog-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin: 0;
}

.author-title {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

/* Featured Post */
.featured-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.featured-image {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
    min-height: 400px;
    transition: all 0.3s ease;
}

.featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(22, 115, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(40%, -40%);
    z-index: 0;
    transition: all 0.3s ease;
}

.featured-post:hover .featured-image {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.featured-post:hover .featured-image::before {
    background: radial-gradient(circle, rgba(22, 115, 255, 0.18) 0%, transparent 70%);
}

.featured-image svg {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.featured-post:hover .featured-image svg {
    transform: scale(1.05);
}

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

.featured-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ffd700;
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.featured-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

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

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

.featured-excerpt {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Blog Post Page */
.post-header {
    background: linear-gradient(135deg, #e8ecff 0%, #f5f7ff 100%);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.post-header .container {
    max-width: 800px;
}

.post-header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.post-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    color: var(--text-dark);
}

.post-meta-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.post-content-wrapper {
    padding: 80px 0;
    background: white;
}

.post-content-wrapper .container {
    max-width: 800px;
}

.post-author-box {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.post-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 2rem;
    flex-shrink: 0;
}

.post-author-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.post-author-details p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 3rem 0 1.5rem 0;
}

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

.post-content p {
    margin: 0 0 1.5rem 0;
}

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

.post-content li {
    margin-bottom: 0.75rem;
}

.post-content strong {
    color: var(--text-dark);
    font-weight: 700;
}

.post-content a {
    color: var(--primary-blue);
    text-decoration: none;
    border-bottom: 2px solid rgba(22, 115, 255, 0.3);
    transition: border-color 0.3s ease;
}

.post-content a:hover {
    border-color: var(--primary-blue);
}

.post-content blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-gray);
}

.post-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: #e83e8c;
}

.post-tags {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.post-tags h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    color: var(--text-gray);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--gradient);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

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

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

    .blog-header p {
        font-size: 1.1rem;
    }

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

    .featured-content {
        padding: 2rem;
    }

    .featured-content h2 {
        font-size: 2rem;
    }

    .post-title {
        font-size: 2.25rem;
    }

    .post-content h2 {
        font-size: 1.75rem;
    }

    .post-content h3 {
        font-size: 1.35rem;
    }
}

@media (max-width: 640px) {
    .blog-header {
        padding: 170px 0 60px;
    }

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

    .blog-content {
        padding: 60px 0;
    }

    .featured-content h2 {
        font-size: 1.75rem;
    }

    .post-header {
        padding: 170px 0 40px;
    }

    .post-title {
        font-size: 1.85rem;
    }

    .post-author-box {
        flex-direction: column;
        text-align: center;
    }
}
