/*
Plugin Name: AAA-New Blog
Description: Styles for the new blog/Easypedia page
*/

/* ─────────────────────────────────────────────────────────────
   HERO BANNER SECTION
   ───────────────────────────────────────────────────────────── */
.wse-blog-hero {
    position: relative;
    background-color: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    padding: 48px 40px 56px;
    overflow: hidden;
}

.wse-hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/fondo-cuadros.png');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    pointer-events: none;
}

.wse-hero-container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    z-index: 2;
}

.wse-breadcrumb {
    font-size: 13px;
    font-weight: 600;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wse-breadcrumb span.wse-crumb-separator {
    color: #9ca3af;
}

.wse-breadcrumb a {
    color: #1d4ed8;
    text-decoration: none;
}

.wse-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #111827;
    line-height: 1.15;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.wse-hero-subtitle {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
    max-width: 760px;
}

/* ─────────────────────────────────────────────────────────────
   MAIN CONTENT SECTION (Search, Filters, Cards Grid)
   ───────────────────────────────────────────────────────────── */
.wse-blog-main {
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 56px 40px 80px;
    box-sizing: border-box;
}

.wse-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 28px 0;
    letter-spacing: -0.02em;
}

/* Search bar */
.wse-search-container {
    position: relative !important;
    margin-bottom: 24px !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.wse-search-icon {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #9ca3af !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    width: 20px !important;
    height: 20px !important;
    z-index: 5 !important;
}

.wse-search-icon svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #9ca3af !important;
    display: block !important;
}

body.wse-blog-body .wse-search-container input.wse-search-input,
.wse-search-input {
    width: 100% !important;
    padding-top: 16px !important;
    padding-right: 20px !important;
    padding-bottom: 16px !important;
    padding-left: 52px !important;
    font-size: 15px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background-color: #f9fafb !important;
    color: #111827 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    line-height: normal !important;
}

body.wse-blog-body .wse-search-container input.wse-search-input:focus,
.wse-search-input:focus {
    background-color: #ffffff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12) !important;
}

body.wse-blog-body .wse-search-container input.wse-search-input::placeholder,
.wse-search-input::placeholder {
    color: #6b7280 !important;
    opacity: 1 !important;
}


/* Filter Tags */
.wse-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.wse-tag-pill {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.wse-tag-pill:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

.wse-tag-pill.active {
    background-color: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
}

/* Cards Grid */
.wse-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    margin-bottom: 72px;
}

.wse-blog-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wse-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
}

.wse-card-thumb-link {
    display: block;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f3f4f6;
    position: relative;
}

.wse-card-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.wse-blog-card:hover .wse-card-thumb-link img {
    transform: scale(1.03);
}

.wse-card-content {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wse-card-category {
    font-size: 12px;
    font-weight: 700;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.wse-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px 0;
    line-height: 1.3;
}

.wse-card-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.wse-card-title a:hover {
    color: #1d4ed8;
}

.wse-card-link {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, gap 0.2s;
}

.wse-card-link:hover {
    color: #1d4ed8;
    gap: 10px;
}

/* No results state */
.wse-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 16px;
    border: 1px dashed #e5e7eb;
    color: #6b7280;
    display: none;
}

.wse-no-results h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #111827;
}

/* ─────────────────────────────────────────────────────────────
   CALL TO ACTION (CTA) BANNER
   ───────────────────────────────────────────────────────────── */
.wse-cta-section {
    position: relative;
    background-color: #f9fafb;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    padding: 64px 32px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.wse-cta-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/fondo-cuadros.png');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    pointer-events: none;
}

.wse-cta-content {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    z-index: 2;
}

.wse-cta-title {
    font-size: 34px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px 0;
    letter-spacing: -0.02em;
}

.wse-cta-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 28px 0;
    line-height: 1.5;
}

.wse-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #1d4ed8;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.wse-cta-btn:hover {
    background-color: #1e40af;
    transform: translateY(-1px);
}

/* Pagination */
.wse-pagination {
    margin-bottom: 72px;
    text-align: center;
}

.wse-pagination ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.wse-pagination li {
    margin: 0;
}

.wse-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.wse-pagination .page-numbers:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
}

.wse-pagination .page-numbers.current {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
    cursor: default;
}

.wse-pagination .page-numbers.prev,
.wse-pagination .page-numbers.next {
    font-size: 16px;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE STYLES
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .wse-cards-grid {
        gap: 24px;
    }
    .wse-hero-title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .wse-blog-hero {
        padding: 32px 20px 40px;
    }
    .wse-hero-title {
        font-size: 28px;
    }
    .wse-hero-subtitle {
        font-size: 15px;
    }

    .wse-blog-main {
        padding: 32px 20px 60px;
    }
    .wse-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .wse-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 48px;
    }

    .wse-card-thumb-link {
        height: 200px;
    }
    .wse-card-content {
        padding: 20px 24px 24px;
    }
    .wse-card-title {
        font-size: 19px;
    }

    .wse-cta-section {
        padding: 40px 20px;
    }
    .wse-cta-title {
        font-size: 24px;
    }
}
