/* ═══════════════════════════════════════════════════════════════
   PandaX Post Grid — Stylesheet v2.0
   ═══════════════════════════════════════════════════════════════ */

/* ── Heading (título + subtítulo do widget) ──────────────────── */
.pandax-pg-heading { margin-bottom: 24px; }
.pandax-pg-widget-title {
    margin: 0 0 8px;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}
.pandax-pg-widget-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* ── Wrapper ─────────────────────────────────────────────────── */
.pandax-pg-wrapper { font-family: inherit; }

/* ── Filter bar ──────────────────────────────────────────────── */
.pandax-pg-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.pandax-pg-filter-btn {
    padding: 7px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 500;
    transition: background .25s, color .25s;
    line-height: 1.4;
}
.pandax-pg-filter-dropdown select {
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: .875rem;
}

/* ── Grid ────────────────────────────────────────────────────── */
.pandax-pg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pandax-pg-layout-masonry { columns: 3; gap: 20px; display: block; }
.pandax-pg-layout-masonry .pandax-pg-card { break-inside: avoid; margin-bottom: 20px; }
.pandax-pg-layout-list { grid-template-columns: 1fr; }
.pandax-pg-layout-list .pandax-pg-card { display: flex; align-items: flex-start; }
.pandax-pg-layout-list .pandax-pg-card.thumb-left  { flex-direction: row; }
.pandax-pg-layout-list .pandax-pg-card.thumb-right { flex-direction: row-reverse; }
.pandax-pg-layout-list .pandax-pg-thumb { flex: 0 0 280px; max-width: 280px; }

/* equal height */
.pandax-equal-height .pandax-pg-card { display: flex; flex-direction: column; }
.pandax-equal-height .pandax-pg-card-body { flex: 1; display: flex; flex-direction: column; }
.pandax-equal-height .pandax-pg-read-more { margin-top: auto; }

/* ═══════════════════════════════════════════════════════════════
   CARD BASE
   ═══════════════════════════════════════════════════════════════ */
.pandax-pg-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Hover effects */
.pandax-pg-card.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.pandax-pg-card.hover-border:hover { box-shadow: 0 0 0 2px #0073aa; }

/* Thumbnail */
.pandax-pg-thumb { position: relative; overflow: hidden; }
.pandax-pg-thumb::after { content: ''; position: absolute; inset: 0; background: transparent; transition: background .3s; pointer-events: none; }
.pandax-pg-thumb img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .4s ease; }
.pandax-pg-card.hover-zoom:hover .pandax-pg-thumb img { transform: scale(1.06); }

/* Card body */
.pandax-pg-card-body { padding: 20px; }

/* Category */
.pandax-pg-category { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.pandax-pg-category a { display: inline-block; background: #0073aa; color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 3px; text-decoration: none; transition: opacity .2s; }
.pandax-pg-category a:hover { opacity: .85; }

/* Title */
.pandax-pg-title { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.4; }
.pandax-pg-title a { text-decoration: none; color: inherit; transition: color .2s; }
.pandax-pg-title a:hover { color: #0073aa; }

/* Meta */
.pandax-pg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .8rem; color: #777; margin-bottom: 10px; }
.pandax-pg-meta span { display: inline-flex; align-items: center; gap: 4px; }
.pandax-pg-meta a { color: inherit; text-decoration: none; }
.pandax-pg-meta a:hover { color: #0073aa; }

/* Excerpt */
.pandax-pg-excerpt { font-size: .9rem; color: #555; line-height: 1.65; margin: 0 0 16px; }

/* Read more */
.pandax-pg-read-more { display: inline-block; background: #0073aa; color: #fff; padding: 8px 18px; border-radius: 4px; text-decoration: none; font-size: .875rem; font-weight: 500; transition: background .2s, color .2s, transform .2s; }
.pandax-pg-read-more:hover { background: #005d8e; color: #fff; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════════
   10 DESIGNS DE CARD
   ═══════════════════════════════════════════════════════════════ */

/* 1. classic — padrão acima */

/* 2. modern */
.design-modern .pandax-pg-card { border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,.08); border: none; }
.design-modern .pandax-pg-thumb img { height: 220px; border-radius: 12px 12px 0 0; }
.design-modern .pandax-pg-title { font-size: 1.15rem; font-weight: 700; }
.design-modern .pandax-pg-read-more { border-radius: 50px; padding: 8px 22px; }

/* 3. elegant */
.design-elegant .pandax-pg-card { border: 1px solid #e8e0d4; border-radius: 2px; box-shadow: none; background: #fdfaf6; }
.design-elegant .pandax-pg-card-body { padding: 24px 28px; }
.design-elegant .pandax-pg-title { font-family: Georgia, serif; font-size: 1.25rem; font-style: italic; }
.design-elegant .pandax-pg-title a { color: #2c2c2c; }
.design-elegant .pandax-pg-category a { background: transparent; color: #8a7560; border: 1px solid #8a7560; border-radius: 0; font-size: .65rem; }
.design-elegant .pandax-pg-read-more { background: transparent; color: #8a7560; border: 1px solid #8a7560; border-radius: 0; }
.design-elegant .pandax-pg-read-more:hover { background: #8a7560; color: #fff; }

/* 4. minimal */
.design-minimal .pandax-pg-card { border-radius: 0; box-shadow: none; border: none; border-bottom: 1px solid #eee; background: transparent; }
.design-minimal .pandax-pg-card-body { padding: 16px 0; }
.design-minimal .pandax-pg-title { font-size: 1rem; }
.design-minimal .pandax-pg-read-more { background: transparent; color: #333; text-decoration: underline; padding: 0; border-radius: 0; font-size: .85rem; }
.design-minimal .pandax-pg-read-more:hover { background: transparent; color: #0073aa; transform: none; }

/* 5. bold */
.design-bold .pandax-pg-card { border-radius: 0; border-left: 5px solid #ff3d00; box-shadow: 4px 4px 0 #ff3d00; background: #fff; }
.design-bold .pandax-pg-title { font-size: 1.3rem; font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; }
.design-bold .pandax-pg-category a { background: #ff3d00; border-radius: 0; }
.design-bold .pandax-pg-read-more { background: #ff3d00; border-radius: 0; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.design-bold .pandax-pg-read-more:hover { background: #c62800; }

/* 6. magazine */
.design-magazine .pandax-pg-card { border-radius: 8px; overflow: hidden; position: relative; }
.design-magazine .pandax-pg-thumb img { height: 260px; }
.design-magazine .pandax-pg-card-body { padding: 20px; border-top: 3px solid #e63946; }
.design-magazine .pandax-pg-title { font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.design-magazine .pandax-pg-meta { font-size: .75rem; }
.design-magazine .pandax-pg-read-more { background: #e63946; border-radius: 2px; font-size: .8rem; font-weight: 700; text-transform: uppercase; }

/* 7. card_overlay */
.design-card_overlay .pandax-pg-card { position: relative; border-radius: 10px; overflow: hidden; min-height: 300px; }
.design-card_overlay .pandax-pg-thumb { position: absolute; inset: 0; }
.design-card_overlay .pandax-pg-thumb img { height: 100%; width: 100%; object-fit: cover; }
.design-card_overlay .pandax-pg-thumb::after { background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.1) 60%) !important; }
.design-card_overlay .pandax-pg-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; color: #fff; }
.design-card_overlay .pandax-pg-title a,
.design-card_overlay .pandax-pg-meta,
.design-card_overlay .pandax-pg-excerpt { color: #fff; }
.design-card_overlay .pandax-pg-category a { background: rgba(255,255,255,.2); backdrop-filter: blur(4px); }
.design-card_overlay .pandax-pg-read-more { background: #fff; color: #111; }

/* 8. gradient */
.design-gradient .pandax-pg-card { border-radius: 12px; background: linear-gradient(135deg,#667eea 0%,#764ba2 100%); color: #fff; }
.design-gradient .pandax-pg-title a,
.design-gradient .pandax-pg-meta,
.design-gradient .pandax-pg-excerpt { color: rgba(255,255,255,.92); }
.design-gradient .pandax-pg-thumb img { filter: brightness(.85); }
.design-gradient .pandax-pg-category a { background: rgba(255,255,255,.25); }
.design-gradient .pandax-pg-read-more { background: #fff; color: #764ba2; }
.design-gradient .pandax-pg-read-more:hover { background: rgba(255,255,255,.85); }

/* 9. flat */
.design-flat .pandax-pg-card { border-radius: 6px; box-shadow: none; border: 2px solid #eee; }
.design-flat .pandax-pg-card:hover { border-color: #0073aa; }
.design-flat .pandax-pg-read-more { background: transparent; color: #0073aa; border: 2px solid #0073aa; border-radius: 6px; }
.design-flat .pandax-pg-read-more:hover { background: #0073aa; color: #fff; }

/* 10. glass */
.design-glass .pandax-pg-card { border-radius: 16px; background: rgba(255,255,255,.18); backdrop-filter: blur(14px) saturate(1.8); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.design-glass .pandax-pg-title a { color: #1a1a2e; }
.design-glass .pandax-pg-read-more { background: rgba(255,255,255,.35); color: #1a1a2e; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.5); }
.design-glass .pandax-pg-read-more:hover { background: rgba(255,255,255,.6); }

/* ═══════════════════════════════════════════════════════════════
   CARROSSEL
   ═══════════════════════════════════════════════════════════════ */
.pandax-pg-carousel-wrap {
    position: relative;
}

.pandax-pg-swiper { overflow: hidden; }

/* swiper-slide single card grid */
.pandax-pg-swiper .pandax-pg-grid { display: block; }
.pandax-pg-swiper .pandax-pg-card { height: 100%; }

/* ── Setas ── */
.pandax-swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
    outline: none;
}
.pandax-swiper-btn:hover { transform: translateY(-50%) scale(1.06); }
.pandax-swiper-btn svg { width: 18px; height: 18px; stroke: currentColor; }
.pandax-swiper-prev { left: -22px; }
.pandax-swiper-next { right: -22px; }

/* Arrow position variants */
.arrow-pos-middle_inside .pandax-swiper-prev { left: 10px; }
.arrow-pos-middle_inside .pandax-swiper-next { right: 10px; }
.arrow-pos-bottom_center .pandax-swiper-btn { top: auto; bottom: -60px; transform: none; }
.arrow-pos-bottom_center .pandax-swiper-prev { left: calc(50% - 54px); }
.arrow-pos-bottom_center .pandax-swiper-next { left: calc(50% + 10px); right: auto; }
.arrow-pos-top_right .pandax-swiper-btn { top: -54px; transform: none; }
.arrow-pos-top_right .pandax-swiper-prev { left: auto; right: 54px; }
.arrow-pos-top_right .pandax-swiper-next { right: 0; left: auto; }

/* ── 10 Estilos de Seta ── */
/* 1. circle_solid */
.arrow-circle_solid { border-radius: 50%; }

/* 2. circle_outline */
.arrow-circle_outline { border-radius: 50%; background: transparent !important; }
.arrow-circle_outline:hover { background: #0073aa !important; color: #fff; }

/* 3. square_solid */
.arrow-square_solid { border-radius: 0; }

/* 4. square_outline */
.arrow-square_outline { border-radius: 0; background: transparent !important; }
.arrow-square_outline:hover { background: #0073aa !important; color: #fff; }

/* 5. square_rounded */
.arrow-square_rounded { border-radius: 8px; }

/* 6. minimal */
.arrow-minimal { border: none !important; background: transparent !important; box-shadow: none !important; }
.arrow-minimal svg { width: 24px; height: 24px; }
.arrow-minimal:hover { background: transparent !important; color: #0073aa; }

/* 7. modern_pill */
.arrow-modern_pill { border-radius: 50px; padding: 0 14px; width: auto; min-width: 44px; }

/* 8. shadow */
.arrow-shadow { border-radius: 50%; border: none !important; box-shadow: 0 6px 24px rgba(0,0,0,.2) !important; }
.arrow-shadow:hover { box-shadow: 0 10px 36px rgba(0,0,0,.3) !important; }

/* 9. elegant_line */
.arrow-elegant_line { border-radius: 0; border: none !important; border-bottom: 2px solid currentColor !important; background: transparent !important; width: auto !important; height: auto !important; padding: 8px; }
.arrow-elegant_line:hover { transform: translateY(-50%); color: #0073aa; }

/* 10. neon */
.arrow-neon { border-radius: 50%; border: 2px solid #00d4ff !important; background: transparent !important; color: #00d4ff; box-shadow: 0 0 10px rgba(0,212,255,.4), inset 0 0 10px rgba(0,212,255,.1); }
.arrow-neon:hover { background: #00d4ff !important; color: #000; box-shadow: 0 0 20px rgba(0,212,255,.8); }

/* ── Dots ── */
.swiper-pagination { position: relative; margin-top: 20px; text-align: center; }
.swiper-pagination-bullet { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ccc; margin: 0 4px; cursor: pointer; transition: background .2s, transform .2s; }
.swiper-pagination-bullet-active { background: #0073aa; transform: scale(1.3); }

/* ── Loading overlay ─────────────────────────────────────────── */
.pandax-pg-wrapper.is-loading { position: relative; pointer-events: none; min-height: 80px; }
.pandax-pg-loader { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 36px; height: 36px; border: 3px solid #ddd; border-top-color: #0073aa; border-radius: 50%; animation: pandax-spin .7s linear infinite; z-index: 10; display: none; }
.pandax-pg-wrapper.is-loading .pandax-pg-loader { display: block; }
@keyframes pandax-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ── Animations ──────────────────────────────────────────────── */
.pandax-pg-card.pandax-anim-fade  { animation: pandax-fade .4s ease both; }
.pandax-pg-card.pandax-anim-slide { animation: pandax-slide .4s ease both; }
@keyframes pandax-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pandax-slide { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ── Pagination ──────────────────────────────────────────────── */
.pandax-pg-pagination-wrapper { margin-top: 30px; text-align: center; }
.pandax-pg-pagination-wrapper ul { list-style: none; margin: 0; padding: 0; display: inline-flex; gap: 6px; }
.pandax-pg-pagination-wrapper .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 4px; background: #0073aa; color: #fff; text-decoration: none; font-size: .85rem; font-weight: 500; transition: background .2s; }
.pandax-pg-pagination-wrapper .page-numbers:hover,
.pandax-pg-pagination-wrapper .page-numbers.current { background: #005d8e; }
.pandax-pg-pagination-wrapper .page-numbers.dots { background: transparent; color: #555; }
.pandax-pg-load-more { padding: 10px 30px; border: none; border-radius: 4px; cursor: pointer; font-size: .9rem; font-weight: 600; transition: background .2s, transform .2s; }
.pandax-pg-load-more:hover { transform: translateY(-1px); }
.pandax-pg-load-more:disabled { opacity: .5; cursor: default; transform: none; }

.pandax-no-posts { color: #999; font-style: italic; grid-column: 1 / -1; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pandax-pg-layout-masonry { columns: 2; }
    .pandax-swiper-prev { left: -10px; }
    .pandax-swiper-next { right: -10px; }
}
@media (max-width: 767px) {
    .pandax-pg-layout-masonry { columns: 1; }
    .pandax-pg-layout-list .pandax-pg-card { flex-direction: column !important; }
    .pandax-pg-layout-list .pandax-pg-thumb { flex: none; max-width: 100%; }
    .pandax-swiper-prev { left: 4px; }
    .pandax-swiper-next { right: 4px; }
}
