/* ===== BLOG PAGE STYLES ===== */

/* Force remove all subscription input styles */
.subscription-section input,
.subscription-section .card-element,
.subscription-section .payment-form input,
.subscription-section .payment-form .card-element,
#subscribe input,
#subscribe .card-element {
    all: unset !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none !important;
    transform: none !important;
    min-height: auto !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
    box-sizing: content-box !important;
    display: inline-block !important;
    position: static !important;
    z-index: auto !important;
    overflow: visible !important;
    resize: none !important;
    cursor: text !important;
}

/* Hero Section */
.blog-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.blog-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.blog-hero .hero-title {
    margin-bottom: 2rem;
}

.blog-hero .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.blog-hero .hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Featured Posts Section */
.featured-posts {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 0, 122, 0.05) 100%);
}

.featured-posts .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.featured-posts .section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--grok-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-posts .section-header p {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.featured-article {
    background: var(--card-background);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(20px);
}

.featured-article:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.article-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover .article-image img {
    transform: scale(1.1);
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--grok-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta .article-date::before {
    content: '📅';
}

.article-meta .article-author::before {
    content: '👤';
}

.article-meta .read-time::before {
    content: '⏱️';
}

.article-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
}

.article-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-tags .tag {
    background: var(--grok-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    background: transparent;
}

.read-more:hover {
    background: var(--accent-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

/* Blog Categories Section */
.blog-categories {
    padding: 100px 0;
    background: var(--background-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--card-background);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grok-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--grok-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
}

.category-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: var(--grok-gradient);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.3;
    z-index: -1;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.category-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-count {
    background: var(--grok-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Latest Posts Section */
.latest-posts {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, rgba(255, 0, 122, 0.03) 100%);
}

.latest-posts .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.latest-posts .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--grok-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.latest-posts .section-header p {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--card-background);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(20px);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--grok-gradient);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.4;
}

.post-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.post-content .read-more {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 100px 0;
    background: var(--background-color);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--grok-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group input[type="email"] {
    flex: 1;
    min-width: 300px;
    background: var(--card-background);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-family: inherit;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group .btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    white-space: nowrap;
}

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.form-note i {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-hero .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .featured-posts .section-header h2 {
        font-size: 2.5rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-article {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-group {
        flex-direction: column;
        align-items: center;
    }
    
    .form-group input[type="email"] {
        min-width: 250px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-hero .hero-content {
        padding: 0 1rem;
    }
    
    .featured-article {
        margin: 0 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.featured-article[data-aos="fade-up"],
.post-card[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.featured-article[data-aos="fade-up"].aos-animate,
.post-card[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.category-card[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.category-card[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* Hover Effects */
.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card:hover .category-icon::after {
    opacity: 0.5;
    transform: scale(1.2);
}

/* Focus States for Accessibility */
.read-more:focus,
.form-group input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.category-card:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 20px;
}

/* Loading States */
.newsletter-form.loading .btn {
    pointer-events: none;
    opacity: 0.7;
}

.newsletter-form.loading .btn::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Transitions */
.featured-article,
.post-card,
.category-card {
    transition: all 0.3s ease;
}

/* Enhanced Hover Effects */
.featured-article:hover .article-image::after,
.post-card:hover .post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
