/*
 * Blog Categories Premium - wappnodepro
 *
 * Estilos premium dark/gold para páginas de categorías de blog.
 * Hero animado, cards oscuras, chips de categorías, paginación.
 *
 * @package wappnodepro
 * @version 3.0.0
 */

/* =============================================================================
   1.0 - BODY OVERRIDE
   ============================================================================= */
body.category,
body.tag,
body.date,
body.author,
body.archive,
.blog,
.category #content,
.tag #content,
.date #content,
.author #content,
.archive #content {
    background: #08080d !important;
    color: #f0f0f0 !important;
}

body.category *,
body.tag *,
body.date *,
body.author *,
body.archive * {
    box-sizing: border-box;
}


/* =============================================================================
   2.0 - HERO DE CATEGORÍA
   ============================================================================= */
.cwp-cat-hero {
    background: #08080d;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 3rem;
    text-align: center;
}

.cwp-cat-hero__orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cwp-cat-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .25;
}

.cwp-cat-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #c8a96e, transparent 70%);
    top: -200px;
    right: -100px;
}

.cwp-cat-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #c8a96e, transparent 70%);
    bottom: -150px;
    left: -100px;
}

.cwp-cat-orb--3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #e0bf82, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .15;
}

/* Background image overlay */
.cwp-cat-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cwp-cat-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .1;
}

.cwp-cat-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,8,13,.6) 0%, rgba(8,8,13,.95) 100%);
    z-index: 1;
}

/* Inner content */
.cwp-cat-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

/* Breadcrumb */
.cwp-cat-hero__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-bottom: 1.25rem;
    font-size: .8rem;
    flex-wrap: wrap;
}

.cwp-cat-hero__breadcrumb a {
    color: rgba(255,255,255,.6) !important;
    text-decoration: none;
    transition: color .2s;
}

.cwp-cat-hero__breadcrumb a:hover {
    color: #c8a96e !important;
}

.cwp-cat-hero__sep {
    color: rgba(255,255,255,.3) !important;
}

.cwp-cat-hero__current {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500;
}

/* Badge */
.cwp-cat-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(200,169,110,.15) !important;
    border: 1px solid rgba(200,169,110,.3) !important;
    color: #c8a96e !important;
    font-size: .75rem;
    font-weight: 600;
    padding: .35rem .9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* Title */
.cwp-cat-hero__title {
    font-family: 'Bebas Neue', Impact, sans-serif !important;
    font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
    color: #ffffff !important;
    letter-spacing: .04em;
    margin: 0 0 .6rem !important;
    line-height: 1 !important;
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

/* Force override dark text from body */
.page-title,
.cwp-cat-hero__title,
.archive-header h1,
h1.page-title {
    color: #ffffff !important;
}

/* Description */
.cwp-cat-hero__desc {
    color: rgba(255,255,255,.65) !important;
    font-size: 1rem !important;
    margin: 0 auto !important;
    line-height: 1.7 !important;
    max-width: 500px;
}

/* Override WordPress/WooCommerce default description colors */
.cwp-cat-hero__desc p,
.cwp-cat-hero__desc a,
.cwp-cat-hero__desc strong,
.cwp-cat-hero__desc em,
.cwp-cat-hero__desc span {
    color: rgba(255,255,255,.65) !important;
}

.cwp-cat-hero__desc a {
    color: #c8a96e !important;
    text-decoration: underline !important;
}

.cwp-cat-hero__desc a:hover {
    color: #d4b87a !important;
}

/* Override any inherited dark text from WordPress */
.archive-description,
.woocommerce-products-header__description {
    color: rgba(255,255,255,.65) !important;
}

.woocommerce-products-header__description p,
.archive-description p {
    color: rgba(255,255,255,.65) !important;
}


/* =============================================================================
   3.0 - CHIPS DE CATEGORÍAS
   ============================================================================= */
.cwp-cat-chips {
    background: #0a0a10;
    border-top: 1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.04);
    padding: 1rem 0;
    position: sticky;
    top: 72px;
    z-index: 50;
    backdrop-filter: blur(12px);
}

.cwp-cat-chips__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cwp-cat-chips__inner::-webkit-scrollbar {
    display: none;
}

.cwp-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem 1rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 999px;
    color: rgba(255,255,255,.6);
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all .25s;
}

.cwp-cat-chip:hover {
    background: rgba(200,169,110,.08);
    border-color: rgba(200,169,110,.2);
    color: #c8a96e;
}

.cwp-cat-chip--active {
    background: rgba(200,169,110,.12) !important;
    border-color: rgba(200,169,110,.3) !important;
    color: #c8a96e !important;
}

.cwp-cat-chip__count {
    background: rgba(255,255,255,.06);
    padding: .1rem .4rem;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 600;
}

.cwp-cat-chip--active .cwp-cat-chip__count {
    background: rgba(200,169,110,.2);
}


/* =============================================================================
   4.0 - GRID DE ARTÍCULOS
   ============================================================================= */
.cwp-cat-posts {
    background: #0c0c12;
    padding: 3rem 1.5rem 4rem;
}

.cwp-cat-posts__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    padding: 0;
}

.site-content {
    background: #0c0c12 !important;
}

.site-main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

@media (max-width: 960px) {
    .cwp-cat-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cwp-cat-posts__grid {
        grid-template-columns: 1fr;
    }
}


/* =============================================================================
   5.0 - CARD DE ARTÍCULO
   ============================================================================= */
.cwp-cat-card {
    background: rgba(14,14,22,.9);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .35s;
}

.cwp-cat-card:hover {
    border-color: rgba(200,169,110,.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(200,169,110,.08);
}

/* Image */
.cwp-cat-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.cwp-cat-card__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.cwp-cat-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.cwp-cat-card:hover .cwp-cat-card__image img {
    transform: scale(1.06);
}

.cwp-cat-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.03);
    color: rgba(255,255,255,.1);
}

.cwp-cat-card__badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: rgba(10,10,15,.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(200,169,110,.2);
    color: #c8a96e;
    font-size: .65rem;
    font-weight: 600;
    padding: .25rem .65rem;
    border-radius: 6px;
    letter-spacing: .03em;
    text-transform: uppercase;
    z-index: 2;
}

/* Body */
.cwp-cat-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta */
.cwp-cat-card__meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .6rem;
    font-size: .72rem;
    color: rgba(255,255,255,.35);
}

.cwp-cat-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.cwp-cat-card__meta svg {
    color: rgba(200,169,110,.5);
    flex-shrink: 0;
}

/* Title */
.cwp-cat-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 .5rem;
}

.cwp-cat-card__title a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color .2s;
}

.cwp-cat-card__title a:hover {
    color: #c8a96e;
}

/* Excerpt */
.cwp-cat-card__excerpt {
    color: rgba(255,255,255,.4);
    font-size: .82rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.cwp-cat-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .75rem;
    border-top: 1px solid rgba(255,255,255,.04);
    margin-top: auto;
}

.cwp-cat-card__author {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    color: rgba(255,255,255,.4);
}

.cwp-cat-card__avatar {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.1);
}

.cwp-cat-card__link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: #c8a96e;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.cwp-cat-card__link:hover {
    gap: .5rem;
    color: #d4b87a;
}


/* =============================================================================
   6.0 - PAGINACIÓN
   ============================================================================= */
.cwp-cat-pagination {
    background: #0c0c12;
    padding: 0 1.5rem 4rem;
}

.cwp-cat-pagination .nav-links {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.cwp-cat-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .75rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.5);
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s;
}

.cwp-cat-pagination .page-numbers:hover {
    background: rgba(200,169,110,.08);
    border-color: rgba(200,169,110,.2);
    color: #c8a96e;
}

.cwp-cat-pagination .page-numbers.current {
    background: linear-gradient(135deg, #c8a96e, #a88c4a);
    border-color: transparent;
    color: #0a0a0f;
}

.cwp-cat-pagination .page-numbers.prev,
.cwp-cat-pagination .page-numbers.next {
    display: inline-flex;
}

.cwp-cat-pagination .page-numbers.prev svg,
.cwp-cat-pagination .page-numbers.next svg {
    display: block;
}


/* =============================================================================
   7.0 - ESTADO VACÍO
   ============================================================================= */
.cwp-cat-empty {
    background: #0c0c12;
    padding: 6rem 1.5rem;
    text-align: center;
}

.cwp-cat-empty__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200,169,110,.06);
    border: 1px solid rgba(200,169,110,.12);
    border-radius: 50%;
    color: rgba(200,169,110,.5);
}

.cwp-cat-empty h2 {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: .04em;
    margin: 0 0 .5rem;
}

.cwp-cat-empty p {
    color: rgba(255,255,255,.4);
    font-size: .9rem;
    margin: 0 0 1.5rem;
}

.cwp-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.5rem;
    background: linear-gradient(135deg, #c8a96e, #a88c4a);
    color: #0a0a0f;
    font-weight: 600;
    font-size: .85rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s;
}

.cwp-cat-btn:hover {
    background: linear-gradient(135deg, #d4b87a, #b89c5a);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200,169,110,.25);
}


/* =============================================================================
   8.0 - RESPONSIVE
   ============================================================================= */
@media (max-width: 768px) {
    .cwp-cat-hero {
        padding: 7rem 1.5rem 2.5rem;
    }

    .cwp-cat-hero__title {
        font-size: 2.5rem;
    }

    .cwp-cat-chips {
        top: 60px;
    }
}

@media (max-width: 480px) {
    .cwp-cat-hero__title {
        font-size: 2rem;
    }

    .cwp-cat-card__body {
        padding: 1rem;
    }

    .cwp-cat-card__title {
        font-size: .95rem;
    }
}
