/* Blog Page Styles for Luxury Social Casino */

/* Blog Filters */
.blog-filters {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8));
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.filter-btn:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-dark);
    border-color: var(--primary-color);
}

/* Blog Articles */
.blog-articles {
    padding: 3rem 0;
}

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

.article-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
    border-color: var(--accent-color);
}

.article-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-title {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    line-height: 1.3;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--accent-color);
}

.article-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

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

.article-tag {
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-read-more:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.article-read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

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

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.newsletter-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.newsletter-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: rgba(26, 26, 46, 0.5);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.newsletter-form input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.newsletter-form .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    white-space: nowrap;
}

.newsletter-note {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.7;
    margin: 0;
}

/* Article Preview Images */
.article-image.game-mechanics {
    background-image: url('images/accent_element.png');
}

.article-image.themes-culture {
    background-image: url('images/decorative_icon.png');
}

.article-image.technical-guides {
    background-image: url('images/card_bg.png');
}

.article-image.psychology-strategy {
    background-image: url('images/section_bg.png');
}

.article-image.technology {
    background-image: url('images/hero_desktop_bg.png');
}

/* Mobile Styles */
@media (max-width: 768px) {
    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card {
        margin: 0 0.5rem;
    }
    
    .newsletter-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .newsletter-form input,
    .newsletter-form .btn {
        width: 100%;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-filters {
        padding: 1.5rem 0;
    }
    
    .blog-articles {
        padding: 2rem 0;
    }
    
    .articles-grid {
        gap: 1rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .newsletter-card {
        padding: 1.5rem 1rem;
    }
    
    .newsletter-card h2 {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.articles-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* No Articles Found */
.no-articles {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-light);
    opacity: 0.8;
}

.no-articles h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-articles p {
    font-size: 1.1rem;
}

/* Article Animation */
.article-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Animation */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

/* Responsive Grid Adjustments */
@media (min-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
