/* ============================================================
   ULTRAKIT POST CLASSIC — Premium
   Image top · Content bottom · Centered max-width
   6 Card Styles · 5 Hover Effects · Image Ratio
   AJAX Load More · Filter Bar · Full Query Builder
   ============================================================ */

.ultrakit-pc-wrapper {
    --ultrakit-pc-accent: #6c5ce7;
    width: 100%;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.ultrakit-pc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
    justify-content: center;
}
.ultrakit-pc-filter-btn {
    padding: 8px 20px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.22s ease;
    background: #f0f0f8;
    color: #666;
    line-height: 1;
}
.filter-pill .ultrakit-pc-filter-btn { border-radius: 999px; }
.filter-pill .ultrakit-pc-filter-btn.is-active,
.filter-pill .ultrakit-pc-filter-btn:hover { background: var(--ultrakit-pc-accent); color: #fff; }
.filter-underline .ultrakit-pc-filter-btn { background: transparent; border-bottom: 2px solid transparent; border-radius: 0; padding-bottom: 6px; }
.filter-underline .ultrakit-pc-filter-btn.is-active,
.filter-underline .ultrakit-pc-filter-btn:hover { color: var(--ultrakit-pc-accent); border-bottom-color: var(--ultrakit-pc-accent); background: transparent; }
.filter-solid .ultrakit-pc-filter-btn.is-active,
.filter-solid .ultrakit-pc-filter-btn:hover { background: var(--ultrakit-pc-accent); color: #fff; }
.filter-outlined .ultrakit-pc-filter-btn { border: 1.5px solid #e0e0e0; background: transparent; }
.filter-outlined .ultrakit-pc-filter-btn.is-active,
.filter-outlined .ultrakit-pc-filter-btn:hover { border-color: var(--ultrakit-pc-accent); color: var(--ultrakit-pc-accent); background: rgba(108,92,231,0.06); }

/* ============================================================
   LIST CONTAINER
   ============================================================ */
.ultrakit-pc-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

/* ============================================================
   CARD — Image top, content bottom, centered max-width
   ============================================================ */
.ultrakit-pc-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* ── Image (top) ── */
.ultrakit-pc-thumb-link {
    display: block;
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
}
.ultrakit-pc-thumb {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}
/* Image ratios */
.ratio-16-9 { padding-bottom: 56.25%; }
.ratio-4-3  { padding-bottom: 75%; }
.ratio-1-1  { padding-bottom: 100%; }
.ratio-3-2  { padding-bottom: 66.67%; }
.ratio-3-4  { padding-bottom: 133.33%; }

.ultrakit-pc-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

/* Category badge on image */
.ultrakit-pc-cat-overlay {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}

/* ── Content (bottom) ── */
.ultrakit-pc-card-body {
    padding: 28px 32px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category badges in body (when no image) */
.ultrakit-pc-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.ultrakit-pc-cat {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(108,92,231,0.1);
    color: var(--ultrakit-pc-accent) !important;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.6;
    transition: all 0.2s;
}
.ultrakit-pc-cat:hover { background: var(--ultrakit-pc-accent); color: #fff !important; }

/* Title */
.ultrakit-pc-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 14px;
    line-height: 1.35;
}
.ultrakit-pc-title a { color: inherit; text-decoration: none; }
.ultrakit-pc-title a:hover { color: var(--ultrakit-pc-accent); }

/* Meta row: author · date · reading time */
.ultrakit-pc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f5;
}
.ultrakit-pc-author-wrap { display: flex; align-items: center; gap: 8px; }
.ultrakit-pc-avatar { width: 32px !important; height: 32px !important; border-radius: 50%; }
.ultrakit-pc-author { font-size: 13px; font-weight: 700; color: #444; text-decoration: none; }
.ultrakit-pc-author:hover { color: var(--ultrakit-pc-accent); }
.ultrakit-pc-meta-right { display: flex; align-items: center; gap: 14px; }
.ultrakit-pc-date,
.ultrakit-pc-rtime {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #999;
}
.ultrakit-pc-date i, .ultrakit-pc-rtime i { font-size: 11px; }

/* Excerpt */
.ultrakit-pc-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.75;
    margin: 0 0 18px;
    flex: 1;
}

/* Tags */
.ultrakit-pc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.ultrakit-pc-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ultrakit-pc-accent);
    background: rgba(108,92,231,0.07);
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none;
}
.ultrakit-pc-tag:hover { background: var(--ultrakit-pc-accent); color: #fff; }

/* Read More */
.ultrakit-pc-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding: 10px 22px;
    background: var(--ultrakit-pc-accent);
    color: #fff !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
    transition: all 0.25s ease;
}
.ultrakit-pc-btn:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(108,92,231,0.3); }
.ultrakit-pc-btn i { font-size: 12px; }

.ultrakit-pc-no-posts { text-align: center; color: #aaa; padding: 40px; }

/* ============================================================
   HOVER EFFECTS
   ============================================================ */
.hover-lift:hover  { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.12) !important; }
.hover-zoom:hover .ultrakit-pc-thumb img { transform: scale(1.05); }
.hover-glow:hover  { box-shadow: 0 10px 40px rgba(108,92,231,0.2) !important; }
.hover-border { border: 2px solid transparent; }
.hover-border:hover { border-color: var(--ultrakit-pc-accent); }

/* ============================================================
   CARD STYLES
   ============================================================ */

/* Style 1: Clean White — default */

/* Style 2: Borderless Flat */
.card-style-2 {
    box-shadow: none !important;
    border-radius: 0 !important;
    border-bottom: 2px solid #f0f0f5;
    background: #fff;
}

/* Style 3: Dark Night */
.card-style-3 { background: #1a1a2e; box-shadow: 0 6px 32px rgba(0,0,0,0.3); }
.card-style-3 .ultrakit-pc-title a  { color: #fff; }
.card-style-3 .ultrakit-pc-excerpt  { color: #8888aa; }
.card-style-3 .ultrakit-pc-date,
.card-style-3 .ultrakit-pc-rtime    { color: #555570; }
.card-style-3 .ultrakit-pc-author   { color: #9999bb; }
.card-style-3 .ultrakit-pc-meta     { border-bottom-color: rgba(255,255,255,0.07); }
.card-style-3 .ultrakit-pc-cat      { background: rgba(255,255,255,0.1); color: #a29bfe !important; }

/* Style 4: Glassmorphism */
.card-style-4 {
    background: rgba(255,255,255,0.15);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 6px 28px rgba(0,0,0,0.08);
}
.card-style-4 .ultrakit-pc-title a  { color: #fff; }
.card-style-4 .ultrakit-pc-excerpt  { color: rgba(255,255,255,0.75); }
.card-style-4 .ultrakit-pc-meta     { border-bottom-color: rgba(255,255,255,0.12); }

/* Style 5: Left Accent Bar */
.card-style-5 {
    border-left: 6px solid var(--ultrakit-pc-accent);
    border-radius: 0 16px 16px 0 !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Style 6: Outlined */
.card-style-6 {
    background: transparent;
    border: 1.5px solid #e0e0ec;
    box-shadow: none;
}
.card-style-6:hover { border-color: var(--ultrakit-pc-accent); background: rgba(108,92,231,0.02); }

/* ============================================================
   PAGINATION / LOAD MORE
   ============================================================ */
.ultrakit-pc-pagination {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.ultrakit-pc-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 36px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.25s ease;
}
.lm-solid    { background: var(--ultrakit-pc-accent); color: #fff; }
.lm-solid:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,92,231,0.3); }
.lm-outline  { background: transparent; border: 2px solid var(--ultrakit-pc-accent); color: var(--ultrakit-pc-accent); }
.lm-outline:hover { background: var(--ultrakit-pc-accent); color: #fff; }
.lm-gradient { background: linear-gradient(135deg, var(--ultrakit-pc-accent), #a29bfe); color: #fff; }
.lm-gradient:hover { opacity: 0.9; transform: translateY(-2px); }
.lm-ghost { background: transparent; border: 1.5px solid #ddd; color: #555; }
.lm-ghost:hover { border-color: var(--ultrakit-pc-accent); color: var(--ultrakit-pc-accent); }

.ultrakit-pc-lm-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ultrakit-pc-spin 0.6s linear infinite;
}
.ultrakit-pc-load-more-btn.is-loading .ultrakit-pc-lm-text { opacity: 0.6; }
.ultrakit-pc-load-more-btn.is-loading .ultrakit-pc-lm-spinner { display: block; }
@keyframes ultrakit-pc-spin { to { transform: rotate(360deg); } }

.ultrakit-pc-numbered { display: flex; gap: 6px; flex-wrap: wrap; }
.ultrakit-pc-page-btn {
    min-width: 40px; height: 40px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease;
    font-family: inherit;
}
.ultrakit-pc-page-btn:hover { border-color: var(--ultrakit-pc-accent); color: var(--ultrakit-pc-accent); }
.ultrakit-pc-page-btn.is-active { background: var(--ultrakit-pc-accent); border-color: var(--ultrakit-pc-accent); color: #fff; }

.ultrakit-pc-posts.is-loading { opacity: 0.5; pointer-events: none; transition: opacity 0.2s; }
.ultrakit-pc-posts.is-filtering { animation: ultrakit-pc-fade 0.35s ease; }
@keyframes ultrakit-pc-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ultrakit-pc-no-more { text-align: center; color: #aaa; font-size: 14px; margin-top: 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .ultrakit-pc-card { border-radius: 12px; }
    .ultrakit-pc-card-body { padding: 22px 22px 24px; }
    .ultrakit-pc-title { font-size: 19px; }
    .ultrakit-pc-excerpt { font-size: 14px; }
}
@media (max-width: 480px) {
    .ultrakit-pc-card-body { padding: 18px 18px 20px; }
    .ultrakit-pc-title { font-size: 17px; }
}
