/**
 * Blog Archive Page Styles
 * Matches PHP site blog listing design
 *
 * @package Remko_Theme
 * @since 1.0.0
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */

.page-title {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-title.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.page-title__content {
    position: relative;
    z-index: 2;
}

.hero-text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Heading */
.heading--hero {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .heading--hero {
        font-size: 2.5rem;
    }
}

/* Tagline */
.tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tagline--accent {
    color: var(--accent, #C8E600);
}

.tagline__bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent, #C8E600);
}

/* ==========================================================================
   Section Header
   ========================================================================== */

.section-header {
    margin-bottom: 3rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-500, #6b7280);
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Featured Article Section
   ========================================================================== */

.featured-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.featured-image-container:hover .featured-image {
    transform: scale(1.03);
}

.featured-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
}

/* ==========================================================================
   Filter Buttons
   ========================================================================== */

.blog-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--gray-200, #e5e5e5);
    border-radius: 9999px;
    background-color: #fff;
    color: var(--dark, #1a1a1a);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.blog-filter-btn:hover {
    background-color: var(--accent, #C8E600) !important;
    color: var(--dark, #1a1a1a) !important;
    border-color: var(--accent, #C8E600) !important;
}

.blog-filter-btn.active {
    background-color: var(--dark, #1a1a1a) !important;
    color: #fff !important;
    border-color: var(--dark, #1a1a1a) !important;
}

/* Blog article hide/show animation */
.blog-article {
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   Blog Card
   ========================================================================== */

.card-blog {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card-blog:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-blog__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-blog__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-blog:hover .card-blog__image img {
    transform: scale(1.05);
}

.card-blog__content {
    padding: 1.25rem;
}

.card-blog__content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark, #1a1a1a);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.card-blog:hover .card-blog__content h3 {
    color: var(--accent, #C8E600);
}

/* Tag pill on card */
.tag-pill {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination a {
    text-decoration: none;
}

.pagination .btn:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 992px) {
    .md-grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .md-grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .lg-grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .lg-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Background Colors
   ========================================================================== */

.bg-gray-50 {
    background-color: var(--gray-50, #fafafa);
}

.bg-darker {
    background-color: var(--dark, #1a1a1a);
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */

.text-3xl {
    font-size: 1.875rem;
}

.md-text-4xl {
    font-size: 2.25rem;
}

@media (max-width: 768px) {
    .md-text-4xl {
        font-size: 1.5rem;
    }
}

.text-lg {
    font-size: 1.125rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.leading-tight {
    line-height: 1.25;
}

.leading-snug {
    line-height: 1.375;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-normal {
    line-height: 1.5;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.top-4 {
    top: 1rem;
}

.left-4 {
    left: 1rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.object-cover {
    object-fit: cover;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.cursor-pointer {
    cursor: pointer;
}

.duration-300 {
    transition-duration: 300ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: ease;
    transition-duration: 300ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: ease;
    transition-duration: 300ms;
}
