/* Placeholder ảnh */
.index_img-placeholder {
    background-color: var(--index_img-placeholder-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    overflow: hidden;
    text-align: center;
    flex-direction: column;
    opacity: 0.9;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Thanh tiêu đề section */
.index_section-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Tiêu đề viên thuốc */
.index_section-title-pill {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: 1px solid #374151;
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .index_section-title-pill {
        font-size: 0.875rem;
    }
}

/* Thẻ Game (Dọc) */
.index_card-base {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out;
    border: 1px solid #1f2937;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.index_card-base:hover {
    transform: scale(1.02);
    border-color: #9333ea;
}

.index_card-vertical {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Nội dung thẻ */
.index_card-content-inner {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* Hộp chỉ số game */
.index_card-stat-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #374151;
}

.index_card-stat-box span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Tiêu đề game */
.index_game-title {
    font-weight: bold;
    font-size: 1.125rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.index_game-title:hover {
    color: #c084fc;
}

.index_game-category {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

/* Thẻ Game (Ngang) */
.index_hot-card-horizontal {
    padding: 0.75rem;
    display: flex;
    gap: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #1f2937;
    transition: border-color 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.index_hot-card-horizontal:hover {
    border-color: #555c65;
}

/* Ảnh thu nhỏ thẻ ngang */
.index_hot-card-thumb {
    width: 6rem;
    height: 8rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

/* Chi tiết thẻ ngang */
.index_hot-card-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

/* Tiêu đề thẻ ngang */
.index_hot-card-title {
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.index_hot-card-title:hover {
    color: #c084fc;
}

/* Nút tải thẻ ngang */
.index_hot-card-download-btn {
    font-size: 0.75rem;
    background-color: rgba(109, 40, 217, 0.5);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    border-radius: 0.25rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.index_hot-card-download-btn:hover {
    background-color: #581c87;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

/* Thẻ sự kiện */
.index_event-card-base {
    border-radius: 0.75rem;
    text-align: center;
    font-size: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #1f2937;
    transition: border-color 0.3s, background-color 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    height: 10rem;
}

.index_event-card-base:hover {
    border-color: #f97316;
}

@media (min-width: 768px) {
    .index_event-card-base {
        height: 12rem;
    }
}

/* Lớp phủ thẻ sự kiện */
.index_event-card-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s;
}

.index_event-card-base:hover .index_event-card-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

.index_event-card-text {
    z-index: 10;
}