/* ================================================================
   Blog Styles - AI Classifier
   Minimal, professional design inspired by Medium
   ================================================================ */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
    color: white;
    padding: 6rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-hero__description {
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.7;
}

/* Newsletter Signup */
.blog-newsletter {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #f9fafb 0%, white 100%);
}

.newsletter-card {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
}

.newsletter-content {
    text-align: center;
    margin-bottom: 30px;
}

.newsletter__title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #111827;
}

.newsletter__description {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.7;
}

.newsletter-form__group {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 10px;
}

.newsletter-form__input {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.newsletter-form__input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.newsletter-form__button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
    position: relative;
    overflow: hidden;
}

.newsletter-form__button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.newsletter-form__button:hover::before {
    transform: translateX(0);
}

.newsletter-form__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(66, 133, 244, 0.4);
}

.newsletter-form__note {
    text-align: center;
    font-size: 0.875rem;
    color: #718096;
    margin: 0;
}

.newsletter-success {
    text-align: center;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 2px solid #86efac;
}

.newsletter-success .success-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.newsletter-success p {
    color: #166534;
    font-weight: 600;
    margin: 0;
}

/* Blog Articles Section */
.blog-articles {
    padding: 6rem 2rem 4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4285f4, #34a853);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #4285f4;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card--featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.blog-card--coming-soon {
    opacity: 0.7;
}

.blog-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #4285f4;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.blog-card__badge--soon {
    background: #94a3b8;
}

.blog-card__image-link {
    display: block;
    text-decoration: none;
}

.blog-card__image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blog-card--featured .blog-card__image {
    height: 100%;
}

.blog-card__icon {
    font-size: 5rem;
    opacity: 0.9;
}

.blog-card__content {
    padding: 30px;
}

.blog-card--featured .blog-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.blog-card__category {
    color: #4285f4;
    font-weight: 600;
}

.blog-card__date {
    color: #94a3b8;
}

.blog-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card--featured .blog-card__title {
    font-size: 2rem;
}

.blog-card__title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card__title a:hover {
    color: #4285f4;
}

.blog-card__excerpt {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.blog-card__read-time {
    font-size: 0.875rem;
    color: #94a3b8;
}

.blog-card__link {
    color: #4285f4;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card__link:hover {
    color: #3367d6;
    transform: translateX(4px);
}

/* Blog Categories */
.blog-categories {
    padding: 6rem 2rem;
    background: white;
}

.blog-categories .section__title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 3rem;
    color: #34a853;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.category-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: #4285f4;
    box-shadow: 0 20px 40px rgba(66, 133, 244, 0.15);
}

.category-card__icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.category-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.category-card__count {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
}

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

.article-category {
    display: inline-block;
    color: #4285f4;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.3;
    color: #111827;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 20px;
}

.article-meta__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-featured-image {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    margin: 0 auto 60px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2d3748;
}

.article-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #34a853;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #4285f4;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #2d3748;
}

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

.article-content ul,
.article-content ol {
    margin-bottom: 24px;
    padding-left: 32px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.article-content strong {
    font-weight: 600;
    color: #1a202c;
}

.article-content blockquote {
    border-left: 4px solid #4285f4;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: #4a5568;
    font-size: 1.2rem;
}

.article-content code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #e53e3e;
}

.article-content pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 24px;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
}

.article-content a {
    color: #4285f4;
    text-decoration: underline;
    text-decoration-color: rgba(66, 133, 244, 0.3);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #3367d6;
    text-decoration-color: #3367d6;
}

/* Table of Contents */
.table-of-contents {
    background: #f9fafb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 48px;
}

.table-of-contents h2 {
    font-size: 1.25rem !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.table-of-contents li {
    margin-bottom: 8px !important;
}

.table-of-contents a {
    text-decoration: none !important;
    color: #4a5568 !important;
    font-weight: 500;
}

.table-of-contents a:hover {
    color: #4285f4 !important;
}

/* Article CTA Box */
.article-cta {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
    color: white;
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.article-cta > * {
    position: relative;
    z-index: 2;
}

.article-cta h3 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white !important;
}

.article-cta p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.article-cta .button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: #4285f4;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.article-cta .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
}

/* Social Sharing */
.social-sharing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 48px 0;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.social-sharing__label {
    font-weight: 600;
    color: #4a5568;
    margin-right: 8px;
}

.social-sharing__buttons {
    display: flex;
    gap: 8px;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-share-btn--twitter {
    background: #1DA1F2;
    color: white;
}

.social-share-btn--linkedin {
    background: #0077B5;
    color: white;
}

.social-share-btn--facebook {
    background: #1877F2;
    color: white;
}

.social-share-btn--email {
    background: #64748b;
    color: white;
}

/* Related Articles */
.related-articles {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.related-articles__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-card--featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .blog-card--featured .blog-card__image {
        height: 300px;
    }
}

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

    .blog-hero__description {
        font-size: 1rem;
    }

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

    .newsletter-card {
        padding: 30px 20px;
    }

    .newsletter-form__group {
        flex-direction: column;
    }

    .newsletter-form__button {
        width: 100%;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1.0625rem;
    }

    .social-sharing {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-sharing__buttons {
        flex-wrap: wrap;
        width: 100%;
    }

    .social-share-btn {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 60px 20px 40px;
    }

    .article-meta {
        flex-direction: column;
        gap: 12px;
    }

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