/**
 * Account Detail Page - 123nick Style
 * Copyright (c) 2025 HUST University
 * @author NGUYỄN ĐỨC BÌNH
 */

/* ========================================
   Page Layout
   ======================================== */
.account-detail {
    min-height: 100vh;
    padding: 0.5rem 100px;
}

.account-detail__container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Breadcrumb */
.account-detail__breadcrumb {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.account-detail__breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.account-detail__breadcrumb a:hover {
    color: #a78bfa;
}

.account-detail__breadcrumb-current {
    color: #facc15;
    font-weight: 500;
}

.account-detail__breadcrumb-sep {
    color: #4b5563;
}

/* ========================================
   Main Grid Layout
   ======================================== */
.account-detail__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .account-detail__grid {
        grid-template-columns: 55% 45%;
        gap: 1.5rem;
    }
}

/* ========================================
   Gallery Section (Left Column)
   ======================================== */
.account-detail__gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Main Image */
.account-detail__main-image {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1f2e;
    border: 1px solid #4b5563;
}

.account-detail__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.account-detail__image-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Thumbnail Grid */
.account-detail__thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.account-detail__thumbnail {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: #1a1f2e;
    transition: all 0.2s ease;
}

.account-detail__thumbnail:hover,
.account-detail__thumbnail--active {
    border-color: #7c3aed;
}

.account-detail__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Info Section (Right Column)
   ======================================== */
.account-detail__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Header Row */
.account-detail__header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.account-detail__header-left {
    flex: 1;
}

.account-detail__header-right {
    display: flex;
    gap: 0.5rem;
}

.account-detail__icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    flex-shrink: 0;
}

.account-detail__icon-btn i {
    font-size: 18px;
}

/* Favorite Button Style */
.account-detail__icon-btn--favorite {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.account-detail__icon-btn--favorite:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    transform: scale(1.1);
}

.account-detail__icon-btn--favorite.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-color: transparent;
}

.account-detail__icon-btn--favorite.active:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* Cart Button Style */
.account-detail__icon-btn--cart {
    background: rgba(124, 58, 237, 0.15);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.account-detail__icon-btn--cart:hover {
    background: rgba(124, 58, 237, 0.25);
    border-color: #7c3aed;
    transform: scale(1.1);
}

.account-detail__icon-btn--cart.added,
.account-detail__icon-btn--cart[data-in-cart="true"] {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: 1px solid #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.account-detail__icon-btn--cart.added:hover,
.account-detail__icon-btn--cart[data-in-cart="true"]:hover {
    background: linear-gradient(135deg, #059669, #047857);
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
    transform: scale(1.1);
}

/* Badges */
.account-detail__badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.account-detail__badge {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
}

.account-detail__badge--id {
    background: #1e293b;
    color: white;
    border: 1px solid #334155;
}

.account-detail__badge--status {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.account-detail__badge--sold {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.account-detail__badge--deposited {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Title */
.account-detail__title {
    font-size: 2.75rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

/* Meta info */
.account-detail__meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 1.375rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.account-detail__meta i {
    margin-right: 0.25rem;
}

/* Price Box */
.account-detail__price-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.account-detail__price {
    font-size: 3.5rem;
    font-weight: 700;
    color: #f43f5e;
    margin: 0;
}

.account-detail__price-note {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Action Buttons */
.account-detail__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.account-detail__actions--4cols {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .account-detail__actions--4cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

.account-detail__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    font-size: 1.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.account-detail__btn--primary {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.account-detail__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.account-detail__btn--secondary {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid #374151;
    color: white;
}

.account-detail__btn--secondary:hover {
    background: rgba(55, 65, 81, 0.6);
    border-color: #4b5563;
}

/* Commitments */
.account-detail__commitments {
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid #4b5563;
    border-radius: 12px;
    padding: 1.25rem;
}

.account-detail__commitments-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #f43f5e;
    margin: 0 0 1.25rem 0;
}

.account-detail__commitments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}

.account-detail__commitment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    color: #d1d5db;
}

.account-detail__commitment-item i {
    color: #10b981;
    font-size: 1.25rem;
}

/* Seller Info */
.account-detail__seller {
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid #4b5563;
    border-radius: 12px;
    padding: 1.25rem;
}

.account-detail__seller-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #9ca3af;
    margin: 0 0 1.25rem 0;
}

.account-detail__seller-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-detail__seller-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-detail__seller-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.account-detail__seller-details h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.account-detail__seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.account-detail__seller-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.account-detail__seller-stats i {
    color: #facc15;
}

.account-detail__seller-response {
    text-align: right;
    font-size: 0.875rem;
    color: #9ca3af;
}

.account-detail__seller-response span {
    display: block;
    color: #10b981;
    font-weight: 600;
}

/* ========================================
   Bottom Sections
   ======================================== */
.account-detail__bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .account-detail__bottom {
        grid-template-columns: 1fr 1fr;
    }
}

/* Specs Section */
.account-detail__specs {
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid #4b5563;
    border-radius: 12px;
    padding: 1.5rem;
}

.account-detail__section-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-detail__section-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: linear-gradient(180deg, #7c3aed, #ec4899);
    border-radius: 2px;
}

.account-detail__specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.account-detail__spec-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.375rem;
}

.account-detail__spec-label {
    color: #9ca3af;
}

.account-detail__spec-value {
    background: #1e293b;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.25rem;
}

/* Safety Notice */
.account-detail__safety {
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid #4b5563;
    border-radius: 12px;
    padding: 1.5rem;
}

.account-detail__safety-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.625rem;
    font-weight: 700;
    color: #60a5fa;
    margin: 0 0 1.5rem 0;
}

.account-detail__safety-title i {
    font-size: 1.625rem;
}

.account-detail__safety-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-detail__safety-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.375rem;
    color: #d1d5db;
    line-height: 1.5;
}

.account-detail__safety-list li::before {
    content: '•';
    color: #60a5fa;
    font-weight: bold;
}

/* Description */
.account-detail__description {
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid #4b5563;
    border-radius: 12px;
    padding: 1.25rem;
}

.account-detail__desc-text {
    font-size: 1.375rem;
    color: #d1d5db;
    line-height: 1.6;
    margin: 0;
}

/* Payment Methods */
.account-detail__payment {
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid #4b5563;
    border-radius: 12px;
    padding: 1.25rem;
}

.account-detail__payment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-detail__payment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    color: #d1d5db;
}

.account-detail__payment-item i {
    color: #10b981;
    font-size: 1.25rem;
}

/* ========================================
   Related Section
   ======================================== */
.account-detail__related {
    margin-top: 2rem;
    padding: 0;
    background: transparent;
    border: none;
}

.account-detail__related .menu__header {
    margin-bottom: 1rem;
}

.account-detail__related .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .account-detail__related .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .account-detail__related .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .account-detail__related .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ========================================
   Modal Styles (inherited)
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #374151;
}

.modal__title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.modal__close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal__body {
    padding: 1rem;
}

.modal__footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid #374151;
}

.modal__btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal__btn--confirm {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    border: none;
}

.modal__btn--close {
    background: rgba(55, 65, 81, 0.5);
    color: white;
    border: 1px solid #4b5563;
}

.modal__recharge-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal__recharge-option {
    cursor: pointer;
}

.modal__recharge-option input {
    display: none;
}

.modal__recharge-option-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid #374151;
    border-radius: 8px;
    color: white;
    transition: all 0.2s;
}

.modal__recharge-option input:checked+.modal__recharge-option-content {
    background: rgba(124, 58, 237, 0.2);
    border-color: #7c3aed;
}

.modal__recharge-option-content i {
    font-size: 1.25rem;
    color: #7c3aed;
}

/* Status overlay for sold/deposited */
.account-detail__status-overlay {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.account-detail__status-overlay i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.account-detail__status-overlay--sold i {
    color: #ef4444;
}

.account-detail__status-overlay--deposited i {
    color: #f59e0b;
}

.account-detail__status-overlay h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
}

.account-detail__status-overlay p {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}