/* AutoFlow Studio - Blog Specific Styles */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 25%, #ba68c8 50%, #9c27b0 75%, #7b1fa2 100%);
    padding: 70px 20px 80px;
    text-align: center;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    margin: 0;
    top: 0;
}

.blog-header .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.blog-header .abstract-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.blog-header .sphere-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(233, 30, 99, 0.3));
    animation: float 6s ease-in-out infinite;
}

.blog-header .sphere-2 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 10%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(156, 39, 176, 0.3));
    animation: float 8s ease-in-out infinite reverse;
}

.blog-header .geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blog-header .dots-pattern {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 20%;
    right: 15%;
}

.blog-header .dots-pattern::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 
        8px 0 rgba(255, 255, 255, 0.6),
        16px 0 rgba(255, 255, 255, 0.6),
        0 8px rgba(255, 255, 255, 0.6),
        8px 8px rgba(255, 255, 255, 0.6),
        16px 8px rgba(255, 255, 255, 0.6);
}

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

.blog-header h1 {
    color: white;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.blog-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-image {
width: 100%;
border-radius: 15px 15px 0 0;
overflow: hidden;
}

.blog-image img {
width: 100%;
height: 100%; /* Make the image try to fill the height /
object-fit: cover; / This will make the image fill the container, potentially cropping */
display: block;
}

/* Mobile responsive */
.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.blog-tag {
    background: #e6f3ff;
    color: #0066cc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.blog-card p {
    color: #6b7280;
    margin-bottom: 20px;
}

.read-more {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #00b894;
}

/* Blog Article Styles */
.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-article {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.article-header {
    padding: 50px 50px 30px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 30px;
    font-weight: 400;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: #9ca3af;
    font-size: 14px;
}

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

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.article-content {
    padding: 40px 50px 50px;
}

.hero-image {
    display: inline-block;
    margin: 30px auto 40px auto;
    background: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: fit-content;
    height: auto;
    position: relative;
}

.hero-image::before {
    display: none;
}

.hero-image img {
    display: block;
    border-radius: 15px;
    max-width: 100%;
    height: auto;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 20px 0;
    border-left: 4px solid #e91e63;
    padding-left: 20px;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4a5568;
    margin: 30px 0 15px 0;
}

.article-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #4a5568;
    line-height: 1.7;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #4a5568;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.05), rgba(156, 39, 176, 0.08));
    border: 1px solid rgba(233, 30, 99, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.highlight-box h3 {
    color: #e91e63;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-box p {
    margin-bottom: 0;
}

.results-box {
    background: linear-gradient(135deg, #fce4ec, #f3e5f5);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid #e91e63;
}

.results-box h3 {
    color: #e91e63;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.tag {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* CTA Section for Blog */
.blog-cta-section {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.blog-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.blog-cta-section .container {
    position: relative;
    z-index: 1;
}

.blog-cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    border: none;
    padding: 0;
    color: white;
}

.blog-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Related Articles */
.related-articles {
    background: #ffffff;
    padding: 80px 20px;
}

.related-articles .blog-image {
    height: 180px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

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

.blog-date {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile Responsive for Blog */
@media (max-width: 768px) {
    .blog-container {
        padding: 40px 15px;
    }

    .article-header, .article-content {
        padding: 30px 25px;
    }

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

    .article-subtitle {
        font-size: 1.1rem;
    }

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

    .hero-image {
    height: auto;
    width: fit-content;
    max-width: calc(100% - 40px);
    margin: 20px auto 30px auto;
    display: block;
    }
    
    .blog-cta-section {
        padding: 40px 25px;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Blog Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Animation for floating elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Print Styles for Blog Articles */
@media print {
    .blog-header,
    .related-articles,
    .blog-cta-section,
    .tools-fab-container,
    nav,
    footer {
        display: none;
    }
    
    .blog-article {
        box-shadow: none;
        border-radius: 0;
    }
    
    .article-content {
        padding: 20px 0;
    }
    
    .article-content h2 {
        border-left: none;
        padding-left: 0;
    }
}
/* Accessibility Improvements */
.article-content a:focus,
.read-more:focus,
.blog-card:focus-within {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .highlight-box,
    .results-box {
        border-width: 3px;
    }
    
    .category-badge {
        border: 2px solid white;
    }
    
    .blog-tag {
        border: 1px solid #0066cc;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .animate-in,
    .blog-header .sphere-1,
    .blog-header .sphere-2 {
        animation: none;
        transition: none;
    }
    
    .blog-card:hover {
        transform: none;
    }
}