/* Blog-specific styles for Lurest Trips Gaming Portal */

/* Blog Hero Section */
.blog-hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Categories Filter */
.blog-categories {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 80px;
    z-index: 10;
}

.categories-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-tab {
    background: transparent;
    border: 2px solid var(--light-gray);
    color: var(--gray);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Featured Article */
.featured-article {
    padding: 4rem 0;
    background: var(--light-gray);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-text {
    padding: 2rem;
}

.featured-text h2 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-text h2 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-text h2 a:hover {
    color: var(--primary);
}

.featured-text p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Article Meta */
.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.category {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category.reviews {
    background: #fef3c7;
    color: #d97706;
}

.category.mobile {
    background: #dbeafe;
    color: #2563eb;
}

.category.gambling {
    background: #fecaca;
    color: #dc2626;
}

.category.tips {
    background: #d1fae5;
    color: #059669;
}

.category.regulations {
    background: #e0e7ff;
    color: #4338ca;
}

.date, .read-time {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Author Info */
.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info strong {
    display: block;
    color: var(--primary);
    font-size: 1rem;
}

.author-info span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Articles Grid */
.blog-articles {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
    font-size: 2.5rem;
}

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

.article-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

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

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

.article-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.article-content h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: var(--primary);
}

.article-content p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

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

.tag {
    background: var(--light-gray);
    color: var(--gray);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Blog Newsletter CTA */
.blog-newsletter {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 4rem 0;
}

.newsletter-cta {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
    color: var(--white);
}

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.newsletter-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* Blog Sidebar */
.blog-sidebar {
    padding: 3rem 0;
    background: var(--light-gray);
}

.sidebar-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.sidebar-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.popular-post:hover {
    background: var(--light-gray);
    transform: translateX(5px);
}

.popular-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.popular-rank {
    background: var(--primary);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.popular-views {
    color: var(--gray);
    font-size: 0.8rem;
}

.popular-post h4 {
    color: var(--dark);
    font-size: 1rem;
    margin: 0;
    line-height: 1.3;
}

/* Categories List */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--dark);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: var(--light-gray);
    color: var(--primary);
}

.category-count {
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: var(--light-gray);
    color: var(--gray);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Navigation Active State */
.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

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

    .blog-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .categories-tabs {
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .featured-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .featured-image {
        height: 250px;
    }

    .featured-text {
        padding: 1.5rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .newsletter-cta {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sidebar-content {
        grid-template-columns: 1fr;
    }

    .article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .article-tags {
        order: 2;
    }

    .read-more {
        order: 1;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 3rem 0;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

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

    .blog-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .categories-tabs {
        flex-direction: column;
        align-items: center;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        margin: 0 1rem;
    }

    .sidebar-content {
        margin: 0 1rem;
    }
}

/* Animation for filtered articles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for articles */
.article-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print styles for blog */
@media print {
    .blog-categories,
    .blog-newsletter,
    .blog-sidebar {
        display: none;
    }

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