/* Blog Page Specific Styles */

/* Blog Hero Section */
.blog-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    margin-top: 80px;
}
.post-link{
    color: #f2fdff;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
}

.blog-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.blog-hero .hero-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #007bff 50%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.blog-hero .hero-subtitle {
    font-size: 1.3rem;
    color: #b8c5d6;
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.blog-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: #b8c5d6;
}

.search-btn {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #00d4ff, #007bff);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

/* Featured Article */
.featured-article {
    padding: 100px 0;
    background: #0f0f23;
}

.featured-card {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.featured-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #00d4ff, #007bff);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.image-placeholder {
    font-size: 4rem;
    color: white;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff6b35;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.category {
    background: rgba(0, 123, 255, 0.2);
    color: #00d4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.date {
    color: #b8c5d6;
    font-size: 0.9rem;
}

.featured-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-content p {
    color: #b8c5d6;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00d4ff, #007bff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.author span,
.read-time span {
    color: #b8c5d6;
    font-size: 0.9rem;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b8c5d6;
}

/* Blog Categories Filter */
.blog-categories {
    padding: 60px 0;
    background: #0a0a1a;
}

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

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #b8c5d6;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: #00d4ff;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

/* Blog Articles Grid */
.blog-articles {
    padding: 80px 0;
    background: #0a0a1a;
}

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

.article-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out;
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 25px 60px rgba(0, 123, 255, 0.2);
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, #00d4ff, #007bff);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

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

.article-image .image-placeholder {
    font-size: 3rem;
    color: white;
}

.article-content {
    padding: 2rem;
}

.article-content .article-meta {
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-content p {
    color: #b8c5d6;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.article-content .article-footer {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.article-content .author-avatar {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d4ff 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-content p {
    color: #b8c5d6;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: #b8c5d6;
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00d4ff, #007bff);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    transform: none;
    box-shadow: none;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Animation */
.article-card.hidden {
    display: none;
}

.article-card.show {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero .hero-title {
        font-size: 2.5rem;
    }

    .blog-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .featured-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .featured-content h2 {
        font-size: 1.8rem;
    }

    .categories-filter {
        padding: 0 1rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 15px;
    }

    .newsletter-input {
        border-radius: 15px 15px 0 0;
    }

    .btn-primary {
        border-radius: 0 0 15px 15px;
    }
}

@media (max-width: 480px) {
    .blog-search {
        margin: 0 1rem;
    }

    .featured-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .article-content {
        padding: 1.5rem;
    }
}
