/* Blog Styles - LOL Quiz Games */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #010A13;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(12, 38, 61, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 35, 40, 0.4) 0%, transparent 50%);
    color: #A09B8C;
    line-height: 1.6;
    min-height: 100vh;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(200, 170, 110, 0.2);
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #F0E6D2;
    font-size: 1.3rem;
    font-weight: 700;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.blog-nav {
    display: flex;
    gap: 30px;
}

.blog-nav a {
    color: #A09B8C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.blog-nav a:hover,
.blog-nav a.active {
    color: #C8AA6E;
    background: rgba(200, 170, 110, 0.1);
}

/* Hero Section */
.blog-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(12, 38, 61, 0.4) 0%, rgba(30, 35, 40, 0.3) 100%);
    border-radius: 15px;
    margin-bottom: 40px;
    border: 1px solid rgba(200, 170, 110, 0.15);
}

.blog-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(180deg, #F0E6D2 0%, #C8AA6E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    font-size: 1.2rem;
    color: #A09B8C;
    max-width: 600px;
    margin: 0 auto;
}

/* Search & Filters */
.blog-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(12, 38, 61, 0.5);
    border: 1px solid rgba(200, 170, 110, 0.3);
    border-radius: 10px;
    color: #F0E6D2;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #C8AA6E;
    box-shadow: 0 0 20px rgba(200, 170, 110, 0.2);
}

.search-box input::placeholder {
    color: #8B8376;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(12, 38, 61, 0.3);
    border: 1px solid rgba(200, 170, 110, 0.2);
    border-radius: 25px;
    color: #A09B8C;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(200, 170, 110, 0.2);
    border-color: #C8AA6E;
    color: #F0E6D2;
}

/* Sections */
.featured-section,
.articles-section,
.extra-articles-section {
    margin-bottom: 60px;
}

.featured-section h2,
.articles-section h2,
.extra-articles-section h2 {
    font-size: 1.8rem;
    color: #C8AA6E;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(200, 170, 110, 0.2);
}

.featured-section h2 span,
.articles-section h2 span {
    font-size: 1rem;
    color: #8B8376;
    font-weight: normal;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.featured-card {
    background: linear-gradient(135deg, rgba(12, 38, 61, 0.5) 0%, rgba(30, 35, 40, 0.4) 100%);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(200, 170, 110, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.featured-card:hover {
    transform: translateY(-5px);
    border-color: #C8AA6E;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.featured-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
}

.featured-card-content {
    padding: 25px;
}

.featured-card-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(200, 170, 110, 0.2);
    border-radius: 15px;
    font-size: 0.8rem;
    color: #C8AA6E;
    margin-bottom: 12px;
}

.featured-card h3 {
    color: #F0E6D2;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.featured-card p {
    color: #A09B8C;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    background: rgba(12, 38, 61, 0.3);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(200, 170, 110, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 170, 110, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: top;
    background: rgba(0, 0, 0, 0.3);
}

.article-card-content {
    padding: 18px;
}

.article-card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.article-tag {
    padding: 3px 10px;
    background: rgba(200, 170, 110, 0.15);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #C8AA6E;
}

.article-card h3 {
    color: #F0E6D2;
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.article-card p {
    color: #8B8376;
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Extra Articles Grid */
.extra-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.extra-article-card {
    background: rgba(12, 38, 61, 0.3);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(200, 170, 110, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.extra-article-card:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 170, 110, 0.4);
    background: rgba(12, 38, 61, 0.5);
}

.extra-article-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.extra-article-card h3 {
    color: #F0E6D2;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.extra-article-card p {
    color: #8B8376;
    font-size: 0.9rem;
}

/* Loading Spinner */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(200, 170, 110, 0.2);
    border-top-color: #C8AA6E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #8B8376;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #8B8376;
}

.no-results h3 {
    color: #A09B8C;
    margin-bottom: 10px;
}

/* Footer */
.blog-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(200, 170, 110, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #C8AA6E;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: #A09B8C;
    text-decoration: none;
    padding: 5px 0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #C8AA6E;
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(200, 170, 110, 0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-bottom .disclaimer {
    font-size: 0.75rem;
    color: #6B6560;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header {
        flex-direction: column;
        gap: 20px;
    }

    .blog-nav {
        gap: 15px;
    }

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

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

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

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 0 15px;
    }

    .blog-hero {
        padding: 40px 15px;
    }

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

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

/* Ad Containers */
.ad-container {
    margin: 30px 0;
    text-align: center;
    min-height: 100px;
}

.ad-blog-banner {
    margin: 20px 0 30px;
}

.ad-blog-between {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(200, 170, 110, 0.1);
    border-bottom: 1px solid rgba(200, 170, 110, 0.1);
}

.ad-blog-footer {
    margin: 50px 0 30px;
}

@media (max-width: 768px) {
    .ad-container {
        margin: 20px 0;
    }
}
