/* ========================================
   POLUSAI - MODERN BLOG STYLES
   ======================================== */

/* Featured Hero Blog Post */
.blog-featured-hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
}

.featured-blog-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    cursor: pointer;
}

.featured-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.featured-blog-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.featured-image-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-visual {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ai-visual-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.ai-visual-element::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.ai-visual-element::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.02) 0%, transparent 70%);
}

.space-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: spaceFloat 20s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes spaceFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.featured-blog-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 3rem;
    color: white;
}

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

.featured-category {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.featured-blog-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-blog-excerpt {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

.featured-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.featured-read-more:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.featured-read-more::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.featured-read-more:hover::after {
    transform: translateX(3px);
}

/* Secondary Blog Grid Section */
.blog-secondary-section {
    padding: 4rem 0 6rem;
    background: rgba(59, 130, 246, 0.02);
}

/* Coming Soon Content */
.coming-soon-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.coming-soon-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #64748b;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Blog Cards */
.blog-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.05);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-visual-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-element {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

/* Visual variations for different categories */
.secure-ai-visual .visual-element {
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
}

.secure-ai-visual .visual-element::before {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    filter: brightness(0) invert(1);
}

.complexity-visual .visual-element {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.strategy-visual .visual-element {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 0;
    transform: rotate(45deg);
}

.security-visual .visual-element {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 8px;
}

.human-ai-visual .visual-element {
    background: linear-gradient(135deg, #ec4899, #db2777);
    border-radius: 20px 0 20px 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

.blog-category {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.blog-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
    line-height: 1.3;
}

.blog-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more {
    display: inline-block;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.read-more:hover {
    color: #1d4ed8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
}

.pagination button {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #3b82f6;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pagination button:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination button:disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #3b82f6;
    box-shadow: none;
}

.pagination .current-page {
    background: #3b82f6;
    color: white;
}

/* Blog Post Styles */
.blog-post-hero {
    padding: 8rem 0 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    text-align: center;
    position: relative;
}

/* Back to Blog Navigation Arrow */
.back-to-blog-nav {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 100;
}

.back-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    color: #3b82f6;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.back-arrow:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
    transform: translateX(-3px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
}

.blog-post-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    line-height: 1.2;
}

.blog-post-meta {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.blog-post-featured-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 20px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    overflow: hidden;
    position: relative;
}

.blog-post-featured-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

/* Blog Post Content */
.blog-post-content {
    padding: 4rem 0 6rem;
    background: rgba(255, 255, 255, 0.5);
}

.blog-post-article {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
}

.blog-post-article h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem 0;
    color: #1e293b;
    line-height: 1.3;
}

.blog-post-article h2:first-child {
    margin-top: 0;
}

.blog-post-article h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #3b82f6;
    line-height: 1.4;
}

.blog-post-article p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #374151;
}

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

.blog-post-article li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: #374151;
}

.blog-post-article blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
}

.blog-post-article img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* Back to Blog Link */
.back-to-blog {
    text-align: center;
    margin-top: 3rem;
}

.back-to-blog a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.back-to-blog a:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.back-to-blog a::before {
    content: '←';
    font-size: 1.2rem;
}

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