/* =================================== */
/* === GIAO DIỆN CỬA HÀNG TÀI KHOẢN === */
/* =================================== */

/* --- Trang Danh Sách Tài Khoản --- */
.account-grid {
    /* Sử dụng grid để các thẻ có chiều cao bằng nhau */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* --- Thẻ Tài Khoản (Account Card) --- */
.account-card {
    background-color: #1a1a2a;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #2a2a3a;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.account-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.account-card-thumbnail {
    position: relative;
    aspect-ratio: 16 / 10;
}
.account-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.account-card-price-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(45deg, #e0a836, #ffc107);
    color: #111;
    padding: 5px 12px;
    font-weight: bold;
    font-size: 1.1rem;
    border-top-left-radius: 8px;
}

.account-card-body {
    padding: 1rem;
    flex-grow: 1; /* Đẩy footer xuống dưới */
    display: flex;
    flex-direction: column;
}
.account-card-title {
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    flex-grow: 1; /* Đẩy các stats xuống dưới */
}
.account-card-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    color: #aaa;
    font-size: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid #2a2a3a;
}
.account-card-stats span {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.account-card-stats strong {
    color: #fff;
}

/* --- Trang Chi Tiết Tài Khoản --- */
.account-detail-header h1 {
    font-weight: bold;
    color: #e0a836;
}
.account-detail-image {
    border-radius: 8px;
    border: 3px solid #444;
}
.detail-info-panel {
    background-color: #1a1a2a;
    padding: 2rem;
    border-radius: 8px;
}
.detail-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e0a836;
}
.detail-stats-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.detail-stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #2a2a3a;
    color: #ccc;
}
.detail-stats-list li:last-child {
    border-bottom: none;
}
.detail-stats-list strong {
    color: #fff;
}

.btn-buy-account {
    background: linear-gradient(45deg, #dc3545, #ff69b4);
    color: #fff;
    border: none;
    font-weight: bold;
    font-size: 1.25rem;
    padding: 0.75rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .detail-info-panel {
        margin-top: 2rem;
    }
}
/* CSS cho thư viện ảnh chi tiết */
.account-image-gallery {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.gallery-thumb:hover {
    border-color: #888;
}
.gallery-thumb.active {
    border-color: #e0a836;
}
/* CSS cho tag phân loại tài khoản */
.account-card {
    position: relative; /* Bắt buộc để định vị tag */
}/* --- CSS CHO TAG PHÂN LOẠI TÀI KHOẢN --- */

/* Style cho tag khi nằm trên thẻ Account Card (trang danh sách) */
.account-card .account-type-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    z-index: 2;
}

/* Style chung cho màu sắc của các tag */
.account-type-badge.reg {
    background-color: #198754; /* Màu xanh lá */
}
.account-type-badge.log {
    background-color: #0d6efd; /* Màu xanh dương */
}
.account-type-badge.sale {
    background: linear-gradient(45deg, #dc3545, #ff69b4);
    animation: pulse 1.5s infinite;
}
.account-type-badge.warranty {
    background-color: #0dcaf0;
    color: #000;
}

/* Style cho tag khi nằm trong trang chi tiết (khử position:absolute) */
.detail-info-panel .account-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}
/* =================================== */
/* === THANH CÔNG CỤ (TOOLBAR) === */
/* =================================== */
.account-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #1a1a2a;
    border-radius: 8px;
    flex-wrap: wrap; /* Cho phép xuống dòng nếu cần */
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toolbar-section.search-form {
    flex-grow: 1; /* Cho phép ô tìm kiếm co dãn */
    min-width: 200px;
}

.search-form .form-control,
.search-form .input-group-text,
.search-form .btn-dark {
    background-color: #121221;
    border-color: #444;
    color: #fff;
}
.search-form .form-control:focus {
    border-color: #e0a836;
    box-shadow: none;
}


/* --- Responsive cho Toolbar --- */
@media (max-width: 992px) {
    .account-toolbar {
        flex-direction: column;
        align-items: stretch; /* Các thành phần sẽ rộng 100% */
    }
}
/* CSS cho tag SALE */
.account-type-badge.sale {
    background: linear-gradient(45deg, #dc3545, #ff69b4);
    animation: pulse 1.5s infinite;
}

/* Hiệu ứng nhấp nháy cho tag SALE */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* CSS cho giá sale */
.account-card-price-overlay del {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.6);
}
/* CSS cho Trang Chi Tiết đã nâng cấp */
.price-box {
    background-color: #121221;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}
.price-box .sale-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #dc3545;
}
.price-box .original-price {
    font-size: 1.2rem;
    color: #888;
}
.price-box .normal-price {
    font-size: 2rem;
    font-weight: bold;
    color: #e0a836;
}
.price-box .countdown-timer {
    font-size: 0.9rem;
    color: #ffc107;
    margin-top: 0.75rem;
}

.account-type-badge.warranty {
    background-color: #0dcaf0;
    color: #000;
}

.description-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2a2a3a;
    color: #ccc;
}
.description-box h5 {
    color: #fff;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.category-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: #1a1a2a;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 2rem;
    min-height: 120px;
    text-align: center;
    transition: all 0.2s ease;
}
.category-card:hover {
    transform: translateY(-5px);
    border-color: #e0a836;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.category-card-name {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
}
.account-breadcrumb .breadcrumb {
    --bs-breadcrumb-divider-color: #6c757d;
    --bs-breadcrumb-item-active-color: #e0a836;
}
.account-breadcrumb .breadcrumb-item a {
    color: #adb5bd;
    text-decoration: none;
}
/* public/css/account-shop.css */

.account-shop-page {
    padding: 0;
}

/* === HERO SECTION === */
.shop-hero-section {
    background: linear-gradient(rgba(10, 10, 26, 0.8), rgba(10, 10, 26, 1));
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid #e0a836;
}

/* === BREADCRUMB === */
.account-breadcrumb .breadcrumb {
    --bs-breadcrumb-divider-color: #6c757d;
    --bs-breadcrumb-item-active-color: #e0a836;
}
.account-breadcrumb .breadcrumb-item a {
    color: #adb5bd;
    text-decoration: none;
}
.account-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
}

/* === SHOP TITLE === */
.shop-title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 1.5rem;
    border-left: 4px solid #e0a836;
    padding-left: 1rem;
}

/* === CATEGORY CARD === */
.category-card-link {
    text-decoration: none;
}
.category-card {
    transition: all 0.3s ease-in-out;
    border-color: #2a2a3a !important;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: #e0a836 !important;
}
.card-img-container {
    position: relative;
    height: 150px;
    overflow: hidden;
}
.category-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.category-card:hover .card-img {
    transform: scale(1.1);
}
.category-card .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 60%);
    padding: 0.75rem;
}
.category-card .card-title {
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.category-card .card-footer {
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 1px solid #2a2a3a;
}
.account-card-link {
    text-decoration: none;
}
.account-card-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
}
.account-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.account-card:hover .account-card-thumbnail img {
    transform: scale(1.1);
}

/* Badge chung */
.account-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
}
.account-badge.sale { background-color: #dc3545; }
.account-badge.random { background: linear-gradient(45deg, #6f42c1, #0dcaf0); }
.account-badge.reg { background-color: #198754; }
.account-badge.log { background-color: #0d6efd; }

/* Giá tiền */
.account-card-price {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
    color: #ffc107;
    padding: 0.25rem 0.75rem;
    border-top-left-radius: 8px;
    font-weight: bold;
}
.account-card-price del {
    color: #aaa;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* Thân card */
.card-body { padding: 0.75rem; }
.card-title {
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
}
.card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #aaa;
    border-top: 1px solid #2a2a3a;
    padding-top: 0.5rem;
}
.card-stats i {
    color: #e0a836;
    margin-right: 4px;
}
/* public/css/account-shop.css */

/* === NÚT MUA HÀNG ĐÃ ĐƯỢC NÂNG CẤP (PHIÊN BẢN RỰC RỠ) === */
.btn-buy-random {
    /* Kích thước và Font chữ */
    font-size: 1.3rem;      /* Tăng kích thước chữ */
    font-weight: 700;       /* In đậm */
    padding: 1rem 2rem;     /* Tăng padding cho nút to hơn */
    text-transform: uppercase;
    letter-spacing: 1.5px;

    /* Màu sắc và Nền */
    color: #ffffff; /* Màu chữ trắng nổi bật trên nền cam */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); /* Thêm bóng cho chữ để dễ đọc */
    background: linear-gradient(45deg, #f09819, #ff512f); /* Gradient Cam-Vàng rực rỡ */
    border: none;
    border-radius: 50px; /* Bo tròn mạnh để tạo cảm giác "game-like" */

    /* Hiệu ứng và Đổ bóng */
    box-shadow: 0 4px 20px rgba(240, 152, 25, 0.6); /* Đổ bóng màu cam */
    transition: all 0.3s ease-in-out;
    
    /* Animation "thở" để thu hút sự chú ý */
    animation: vibrant-pulse 2.5s infinite;
}

/* Hiệu ứng khi di chuột vào */
.btn-buy-random:hover {
    color: #fff;
    transform: translateY(-5px) scale(1.05); /* Nâng nút lên và phóng to */
    box-shadow: 0 10px 30px rgba(240, 152, 25, 0.8); /* Bóng đổ đậm hơn */
    animation-play-state: paused; /* Dừng animation khi hover */
}

/* Keyframes cho animation "thở" */
@keyframes vibrant-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(240, 152, 25, 0.6);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 8px 25px rgba(240, 152, 25, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(240, 152, 25, 0.6);
    }
}
/* === CSS CHO CÁC DANH SÁCH MỚI TRÊN TRANG CHI TIẾT === */
.commitment-list, .reward-list {
    padding-left: 0;
    margin-top: 0.5rem;
    list-style: none;
}
.commitment-list li, .reward-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #ccc;
    padding: 0.6rem 0;
    border-bottom: 1px solid #2a2a3a;
}
.commitment-list li:last-child, .reward-list li:last-child {
    border-bottom: none;
}
.commitment-list i, .reward-list i {
    margin-top: 5px;
    font-size: 1.1rem;
    width: 20px; /* Giữ icon thẳng hàng */
    text-align: center;
}

.reward-list li strong {
    color: #fff;
    display: block;
}
.reward-list li small {
    color: #aaa;
}