/* 
   ===========================================
   BLOG PAGE STYLES
   ===========================================
   
   Modern, responsive blog page styling with
   enhanced UI/UX, proper visual hierarchy,
   and smooth animations.
   
   ===========================================
*/

/* Blog Hero Section */
.blog-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #e6e6e6 50%, #ffffff 100%);
    padding: 2rem 0;
    /* Ensure the hero clears the fixed navbar and leaves some breathing room */
    padding-top: calc(var(--nav-h, 80px) + 32px);
    /* Neutralize the global hero translateY so content isn't pulled upward */
    --hero-transform: none;
    /* Override any conflicting styles */
    height: auto !important;
    place-items: center !important;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(92, 51, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(194, 255, 77, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-hero .hero-content {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    top: auto !important;
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.blog-hero .hero-title {
    font-size: clamp(3.5rem, 10vw, 6rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    text-align: center;
    width: 100%;
    /* Override any conflicting styles */
    position: relative !important;
    left: auto !important;
    transform: none !important;
    max-width: 100% !important;
}

.blog-hero .hero-subtitle {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    color: rgba(247, 249, 252, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
    /* Override any conflicting styles */
    position: relative !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
}

/* Blog-specific hero line styling */
.blog-hero .hero-line {
    text-align: center;
    width: 100%;
    display: block;
}

/* Featured Article Section */
.featured-article {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.featured-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-image:hover {
    transform: translateY(-10px);
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.featured-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
}

.featured-tag {
    background: linear-gradient(135deg, #5C33FF, #C2FF4D);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(92, 51, 255, 0.3);
}

.featured-text {
    padding: 2rem 0;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-category {
    background: rgba(92, 51, 255, 0.2);
    color: #5C33FF;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(92, 51, 255, 0.3);
}

.article-date {
    color: rgba(247, 249, 252, 0.6);
    font-size: 0.875rem;
    font-weight: 400;
}

.featured-text h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #000000;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.featured-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(247, 249, 252, 0.8);
    margin-bottom: 2rem;
}

.article-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(247, 249, 252, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #C2FF4D;
    border-radius: 50%;
    display: inline-block;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #5C33FF, #C2FF4D);
    color: #000000;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(92, 51, 255, 0.3);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(92, 51, 255, 0.4);
    color: #000000;
}

/* Blog Categories Section */
.blog-categories {
    padding: 3rem 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.search-filter-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.search-box {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-box:focus-within {
    border-color: #5C33FF;
    box-shadow: 0 0 20px rgba(92, 51, 255, 0.3);
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(247, 249, 252, 0.5);
}

.search-btn {
    background: linear-gradient(135deg, #5C33FF, #C2FF4D);
    color: #000000;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #C2FF4D, #5C33FF);
}

.categories-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.category-btn {
    background: transparent;
    color: rgba(247, 249, 252, 0.7);
    border: 2px solid rgba(247, 249, 252, 0.2);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5C33FF, #C2FF4D);
    transition: left 0.3s ease;
    z-index: -1;
}

.category-btn:hover::before,
.category-btn.active::before {
    left: 0;
}

.category-btn:hover,
.category-btn.active {
    color: #000000;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(92, 51, 255, 0.3);
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(247, 249, 252, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(92, 51, 255, 0.1), rgba(194, 255, 77, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    border-color: rgba(92, 51, 255, 0.3);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.blog-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.blog-category {
    background: rgba(92, 51, 255, 0.9);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.blog-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: rgba(247, 249, 252, 0.6);
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

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

.blog-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: rgba(247, 249, 252, 0.6);
}

.read-more-link {
    color: #5C33FF;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-link:hover {
    color: #C2FF4D;
    transform: translateX(5px);
}

/* Video Section */
.video-section {
    padding: 6rem 0;
    background: #000000;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.video-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(247, 249, 252, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(92, 51, 255, 0.3);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(92, 51, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.play-button:hover {
    background: rgba(194, 255, 77, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-content {
    padding: 1.5rem;
}

.video-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
    line-height: 1.3;
}

.video-content p {
    color: rgba(247, 249, 252, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(247, 249, 252, 0.6);
}

/* Newsletter Section */
.newsletter-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #e6e6e6 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(92, 51, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(194, 255, 77, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.newsletter-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.newsletter-content p {
    font-size: 1.1rem;
    color: rgba(247, 249, 252, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 1rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid rgba(247, 249, 252, 0.2);
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    font-size: 1rem;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(247, 249, 252, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: #5C33FF;
    box-shadow: 0 0 20px rgba(92, 51, 255, 0.3);
}

.newsletter-btn {
    background: linear-gradient(135deg, #5C33FF, #C2FF4D);
    color: #000000;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(92, 51, 255, 0.4);
}

.newsletter-note {
    font-size: 0.875rem;
    color: rgba(247, 249, 252, 0.6);
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-image {
        order: -1;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero {
        min-height: 50vh;
        /* Slightly smaller nav on mobile, keep extra spacing */
        padding-top: calc(var(--nav-h, 64px) + 24px);
    }
    
    .blog-hero .hero-content {
        padding: 0 1rem;
    }
    
    .blog-hero .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 1.5rem;
    }
    
    .blog-hero .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        max-width: 100%;
    }
    
    .featured-article,
    .blog-grid-section,
    .video-section,
    .newsletter-section {
        padding: 4rem 0;
    }
    
    .featured-content {
        padding: 0 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .search-filter-container {
        padding: 0 1rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .categories-filter {
        padding: 0;
        gap: 0.75rem;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-hero .hero-content {
        padding: 0 1rem;
    }
    
    .featured-content {
        padding: 0 1rem;
    }
    
    .featured-text h2 {
        font-size: 1.75rem;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-content h3 {
        font-size: 1.1rem;
    }
    
    .article-stats {
        gap: 1rem;
    }
    
    .video-content {
        padding: 1rem;
    }
    
    .newsletter-content {
        padding: 0 1rem;
    }
}

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

.blog-card,
.video-card {
    animation: fadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading states */
.blog-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus states for accessibility */
.category-btn:focus,
.read-more-btn:focus,
.newsletter-btn:focus,
.newsletter-form input:focus {
    outline: 2px solid #C2FF4D;
    outline-offset: 2px;
}

/* Article-specific styles */
.article-header {
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.article-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.article-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #000000;
}

.article-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
}

.article-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
    margin: 0 auto;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    padding: 4rem 0;
    background: #ffffff;
}

.article-body {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.article-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 3rem;
}

.article-section {
    margin-bottom: 3rem;
}

.article-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #000000;
}

.article-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
}

.article-conclusion {
    background: linear-gradient(135deg, rgba(92, 51, 255, 0.05), rgba(194, 255, 77, 0.05));
    padding: 3rem;
    border-radius: 20px;
    margin: 3rem 0;
}

.article-cta {
    background: linear-gradient(135deg, #5C33FF, #C2FF4D);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin: 3rem 0;
}

.article-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.article-cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(92, 51, 255, 0.3);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(135deg, #5C33FF, #C2FF4D);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .article-header {
        padding: 4rem 0 2rem;
    }

    .article-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

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

    .article-body {
        padding: 0 1rem;
    }

    .article-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .article-section h2 {
        font-size: 1.5rem;
    }

    .article-conclusion,
    .article-cta {
        padding: 2rem;
        margin: 2rem 0;
    }
}

/* Print styles */
@media print {
    .blog-hero,
    .newsletter-section,
    .video-section,
    .article-header {
        display: none;
    }

    .blog-card,
    .article-section {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
} 
