/* ═══════════════════════════════════════════════════
   VN Portfolio Manager — portfolio.css
   ═══════════════════════════════════════════════════ */

/* ─── Reset cơ bản ─── */
.vnp-section, .vnp-single-wrap, .vnp-related {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.vnp-section *, .vnp-single-wrap *, .vnp-related * {
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════
   PHẦN PORTFOLIO LƯỚI (shortcode)
   ═══════════════════════════════════════════════════ */

/* Header section */
.vnp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}
.vnp-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #c0392b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}
.vnp-view-all {
    font-size: 0.85rem;
    color: #c0392b;
    text-decoration: none;
    font-weight: 600;
}
.vnp-view-all:hover { text-decoration: underline; }

/* Grid */
.vnp-grid {
    display: grid;
    gap: 1rem;
}
.vnp-cols-1 { grid-template-columns: 1fr; }
.vnp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vnp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vnp-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .vnp-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .vnp-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .vnp-cols-2,
    .vnp-cols-3,
    .vnp-cols-4 { grid-template-columns: repeat(2, 1fr)}
}

/* Card */
.vnp-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.vnp-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Thumb */
.vnp-card__thumb {
    position: relative;
    height: 185px;
    overflow: hidden;
    background: #2c3e50;
}
.vnp-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.vnp-card:hover .vnp-card__thumb img {
    transform: scale(1.05);
}
.vnp-card__no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #34495e;
    color: rgba(255,255,255,0.25);
    text-decoration: none;
}
.vnp-card__no-img .dashicons { font-size: 52px; width: 52px; height: 52px; }

/* Nút play */
.vnp-play-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: #c0392b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    padding-left: 3px;
    line-height: 1;
    transition: background 0.2s, transform 0.15s;
}
.vnp-play-btn:hover { background: #a93226; transform: scale(1.1); }

/* Card body */
.vnp-card__body {
    padding: 10px 14px 14px;
}
.vnp-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.35;
}
.vnp-card__title a {
    color: #1a1a1a;
    text-decoration: none;
}
.vnp-card__title a:hover { color: #c0392b; }

/* Thông số */
.vnp-card__spec {
    font-size: 0.78rem;
    color: #666;
    margin: 0 0 9px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Tags */
.vnp-card__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.vnp-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1.5px solid;
    background: transparent;
    letter-spacing: 0.2px;
}

/* Empty message */
.vnp-empty { color: #888; font-style: italic; }

/* ═══════════════════════════════════════════════════
   DANH MỤC (shortcode [vn_portfolio_categories])
   ═══════════════════════════════════════════════════ */
.vnp-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}
.vnp-cat-btn {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #c0392b;
    color: #c0392b;
    background: transparent;
    transition: all 0.18s;
}
.vnp-cat-btn:hover,
.vnp-cat-btn.vnp-cat-active {
    background: #c0392b;
    color: #fff;
}
/* Style box */
.vnp-cat-style-box .vnp-cat-btn {
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════
   TRANG SINGLE DỰ ÁN
   ═══════════════════════════════════════════════════ */
.vnp-single-wrap {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.25rem;
}

/* Breadcrumb */
.vnp-breadcrumb {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 1.5rem;
}
.vnp-breadcrumb a { color: #c0392b; text-decoration: none; }
.vnp-breadcrumb a:hover { text-decoration: underline; }
.vnp-breadcrumb span { margin: 0 4px; }

/* Layout 2 cột */
.vnp-single {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}
@media (max-width: 768px) {
    .vnp-single { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Media */
.vnp-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.vnp-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.vnp-feat-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Cột thông tin */
.vnp-single__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.75rem; }
.vnp-single__cat-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    background: #fdecea;
    color: #c0392b;
    text-decoration: none;
    border: 1px solid #f1a9a0;
}
.vnp-single__cat-badge:hover { background: #c0392b; color: #fff; }

.vnp-single__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.25;
    margin: 0 0 1rem;
}

/* Spec box */
.vnp-single__spec-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 16px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}
.vnp-single__spec-icon { font-size: 1rem; color: #c0392b; }

/* Hạng mục */
.vnp-single__items { margin-bottom: 1.25rem; }
.vnp-single__items-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    margin: 0 0 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mô tả + nội dung */
.vnp-single__excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.vnp-single__content {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

/* Nút quay lại */
.vnp-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: #c0392b;
    color: #fff;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.vnp-btn-back:hover { background: #a93226; color: #fff; }

/* Dự án liên quan */
.vnp-related { margin-top: 2rem; }
.vnp-related__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #c0392b;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
