/* ============================================
   ARTIFACT ITEMS - Fix chiều cao đồng đều
   ============================================ */

/* Đảm bảo tất cả artifact items có chiều cao đồng đều */
.artifact-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Fix chiều cao thumbnail */
.artifact-item .aspect-square {
    flex-shrink: 0;
}

/* Giới hạn tiêu đề hiển thị 2 dòng với ellipsis */
.artifact-item h4 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 2.8rem;
    max-height: 2.8rem;
}

/* Đảm bảo phần content có flex-grow để chiếm hết không gian */
.artifact-item .p-5 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Đảm bảo nút luôn ở dưới cùng */
.artifact-item .flex.justify-center {
    margin-top: auto;
}

/* ============================================
   ARTIFACT MODAL - Fix tiêu đề không đè lên nút close
   ============================================ */
#artifact-modal .text-3xl {
    padding-right: 4rem !important;
    max-width: calc(100% - 4rem) !important;
}

/* ============================================
   LEADER GRID - Override kiosk fixed width in responsive grid
   ============================================ */

/* Kiosk CSS sets leader-item width: 300px which overflows grid cells on mobile.
   Override to 100% so items fit their grid column. */
body.kiosk-mode .grid .leader-item {
    width: 100%;
}

body.kiosk-mode .grid .leader-item .img-wrapper {
    width: 100%;
    max-width: 180px;
    height: auto;
    aspect-ratio: 1 / 1;
}

/* ============================================
   WELCOME SECTION - Responsive font sizes
   ============================================ */
.welcome-greeting {
    font-size: clamp(20px, 5vw, 48px);
    line-height: 1.4;
}

.welcome-title {
    font-size: clamp(22px, 6vw, 45px) !important;
    line-height: 1.3 !important;
}

/* ============================================
   LEADER FILTER TABS - Style cho tabs Lãnh đạo
   ============================================ */
.leader-filter-tab {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    color: #252B37;
    border: 2px solid #AB0E20;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.leader-filter-tab:hover {
    background: rgba(171, 14, 32, 0.05);
}

.leader-filter-tab.active {
    background: #FFFFFF;
    color: #AB0E20;
    border: 2px solid #AB0E20;
    font-weight: 600;
}
