/* ---
   blog.css
   Styles for The Oracle Blog Page, designed to be cohesive with the Sensuous-Living site.
   --- */

/* --- 1. General Container --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- 2. Blog Hero Section --- */
.blog-hero {
    background-color: var(--color-background);
    text-align: center;
    padding: 12rem 2rem 8rem;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/soft-wallpaper.png');
    opacity: 0.05;
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    font-family: var(--font-primary);
    font-size: 6rem;
    font-weight: 600;
    color: var(--color-text);
    text-shadow: 0 0 20px rgba(212, 183, 106, 0.2);
    margin-bottom: 1rem;
}

.blog-hero-subtitle {
    font-size: 1.4rem;
    color: var(--color-text-2);
    line-height: 1.7;
}

/* --- 3. Featured Article Section --- */
.featured-oracle-section {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.featured-oracle-section .container {
    max-width: 1200px;
}

.featured-article-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background-color: var(--color-background);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(109, 91, 135, 0.1);
}

.featured-article-image {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article-card:hover .featured-article-image img {
    transform: scale(1.05);
}

.premium-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: rgba(73, 55, 91, 0.7);
    color: var(--color-gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.premium-badge i {
    width: 14px;
    height: 14px;
}

.featured-article-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-tag {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.featured-article-title {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.featured-article-excerpt {
    font-size: 1.1rem;
    color: var(--color-text-2);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.featured-article-content .btn-primary {
    align-self: flex-start;
    border-color: var(--color-amethyst);
    color: var(--color-amethyst);
    text-shadow: none;
}

.featured-article-content .btn-primary:hover {
    background: var(--color-amethyst);
    color: #ffffff;
}

/* --- 4. Blog Feed Section --- */
.blog-feed-section {
    padding: 6rem 2rem;
    background-color: var(--color-background);
}

.blog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--color-amethyst);
    color: var(--color-amethyst);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--color-amethyst);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(109, 91, 135, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(109, 91, 135, 0.12);
}

.blog-card-image-link {
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
}

.blog-card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image-link img {
    transform: scale(1.1);
}

.premium-badge-small {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(73, 55, 91, 0.8);
    color: var(--color-gold);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.premium-badge-small i {
    width: 16px;
    height: 16px;
}

.blog-card-content {
    padding: 1.5rem;
    color: var(--color-text-4);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-amethyst);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-card-title a {
    color: var(--color-text);
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--color-amethyst);
}

.blog-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-2);
    margin-bottom: 1.5rem;
}

.blog-card-readmore {
    font-weight: 700;
    color: var(--color-amethyst);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.blog-card-readmore:hover {
    gap: 0.8rem;
}

.blog-card-readmore i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.blog-card-readmore:hover i {
    transform: translateX(4px);
}

/* --- 5. Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
}

.page-btn, .page-number {
    border: 1px solid var(--color-background-3);
    color: var(--color-text-2);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.page-number.active, .page-btn:hover, .page-number:hover {
    background-color: var(--color-amethyst);
    border-color: var(--color-amethyst);
    color: #ffffff;
}

/* --- 6. Monetization CTA Section --- */
.monetization-cta-section {
    background-color: var(--color-background-2);
    padding: 6rem 2rem;
    text-align: center;
}

.monetization-cta-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content {
    color: var(--color-text);
}

.cta-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.2rem;
    color: var(--color-text-2);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* --- 7. Responsive Adjustments --- */
@media (min-width: 1024px) {
    .featured-article-card {
        grid-template-columns: 1.2fr 1fr;
    }
    .featured-article-content {
        padding: 4rem;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 1.5rem;
    }
    .blog-hero {
        padding: 10rem 1.5rem 6rem;
    }
    .blog-hero-title {
        font-size: 3.5rem;
    }
    .blog-hero-subtitle {
        font-size: 1.1rem;
    }
    .featured-oracle-section, .blog-feed-section, .monetization-cta-section {
        padding: 4rem 1.5rem;
    }
    .featured-article-content {
        padding: 2rem;
    }
    .featured-article-title {
        font-size: 2rem;
    }
    .cta-title {
        font-size: 2.5rem;
    }
}
