/**
 * TaiLieuMenHa - Luxury Gold Theme Styles
 */

/* --- Google Fonts: Montserrat --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

/* --- Gold Color Variables --- */
:root {
    --gold-50: #fefdf8;
    --gold-100: #fdf9e7;
    --gold-200: #f9f0c3;
    --gold-300: #f3e29a;
    --gold-400: #e9c968;
    --gold-500: #d4a843;
    --gold-600: #b8892e;
    --gold-700: #966826;
    --gold-800: #7a5324;
    --gold-900: #664522;
    --gold-gradient: linear-gradient(135deg, #f3e29a 0%, #d4a843 50%, #b8892e 100%);
    --gold-gradient-light: linear-gradient(135deg, #fdf9e7 0%, #f9f0c3 100%);
    --dark-bg: #0f0e0c;
    --dark-bg-light: #1a1816;
    --dark-bg-lighter: #28231e;
}

/* --- Typography & Basics --- */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    background: #f8f7f4;
}

a {
    text-decoration: none !important;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: none !important;
}

.fw-black { font-weight: 900; }
.italic { font-style: italic; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }

/* --- Layout Utilities --- */
.max-w-700 { max-width: 700px; }
.max-w-900 { max-width: 900px; }
.max-w-1100 { max-width: 1100px; }

/* ================================
   GOLD LUXURY THEME COMPONENTS
   ================================ */

/* --- Page Headers Luxury --- */
.page-header-luxury {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
}

.page-header-luxury::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header-luxury h1 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.page-header-luxury h1 span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header-luxury p {
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

/* --- Gold Text --- */
.text-gold {
    color: var(--gold-500) !important;
}

.text-gold-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Gold Buttons --- */
.btn-gold {
    background: var(--gold-gradient);
    border: none;
    color: var(--dark-bg);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 25px rgba(212, 168, 67, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(212, 168, 67, 0.5);
    color: var(--dark-bg);
}

.btn-gold-outline {
    background: transparent;
    border: 2px solid var(--gold-500);
    color: var(--gold-500);
    font-weight: 700;
    padding: 11px 28px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.btn-gold-outline:hover {
    background: var(--gold-gradient);
    border-color: transparent;
    color: var(--dark-bg);
}

.btn-gold-sm {
    padding: 8px 20px;
    font-size: 11px;
}

/* --- Gold Cards --- */
.card-luxury {
    background: #fff;
    border: 1px solid rgba(212, 168, 67, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-luxury:hover {
    border-color: var(--gold-400);
    box-shadow: 0 25px 60px rgba(212, 168, 67, 0.12);
    transform: translateY(-8px);
}

.card-luxury-dark {
    background: linear-gradient(145deg, var(--dark-bg-lighter), var(--dark-bg-light));
    border: 1px solid rgba(212, 168, 67, 0.2);
}

.card-luxury-dark:hover {
    border-color: var(--gold-400);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 168, 67, 0.1);
}

/* --- Card Header Luxury --- */
.card-header-luxury {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    border-bottom: 2px solid var(--gold-500);
    padding: 24px 28px;
}

.card-header-luxury h3,
.card-header-luxury h4,
.card-header-luxury h5 {
    color: #fff;
    margin: 0;
    font-weight: 700;
}

.card-header-luxury h3 span,
.card-header-luxury h4 span,
.card-header-luxury h5 span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Section Titles --- */
.section-title-gold {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-500);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-gold::before {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

/* --- Gold Badge --- */
.badge-gold {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

/* --- Gold Input Fields --- */
.form-control-luxury {
    background: rgba(212, 168, 67, 0.05);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    color: #333;
    transition: all 0.3s ease;
}

.form-control-luxury:focus {
    background: #fff;
    border-color: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.15);
    outline: none;
}

.form-control-luxury::placeholder {
    color: #999;
}

/* Dark theme input */
.form-control-luxury-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 168, 67, 0.2);
    color: #fff;
}

.form-control-luxury-dark:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-400);
    color: #fff;
}

/* --- Gold Input Group --- */
.input-group-luxury .input-group-text {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-right: none;
    color: var(--gold-400);
    border-radius: 12px 0 0 12px;
    padding: 14px 18px;
}

.input-group-luxury .form-control {
    background: rgba(212, 168, 67, 0.05);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding: 14px 18px;
}

.input-group-luxury .form-control:focus {
    background: #fff;
    border-color: rgba(212, 168, 67, 0.2);
    box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.1);
}

/* --- Sidebar Luxury --- */
.sidebar-luxury {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    border: 1px solid rgba(212, 168, 67, 0.15);
    border-radius: 20px;
    padding: 24px;
}

.sidebar-luxury .sidebar-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gold-500);
    position: relative;
}

.sidebar-luxury .list-group-item {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-luxury .list-group-item:hover {
    background: rgba(212, 168, 67, 0.1);
    color: var(--gold-300);
}

.sidebar-luxury .list-group-item.active {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    font-weight: 700;
}

/* --- Table Luxury --- */
.table-luxury {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 67, 0.15);
}

.table-luxury thead {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
}

.table-luxury thead th {
    color: var(--gold-300);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 20px;
    border: none;
}

.table-luxury tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    vertical-align: middle;
}

.table-luxury tbody tr:hover {
    background: rgba(212, 168, 67, 0.05);
}

/* --- Pagination Luxury --- */
.pagination-luxury .page-item .page-link {
    background: #fff;
    border: 1px solid rgba(212, 168, 67, 0.2);
    color: var(--dark-bg);
    padding: 10px 16px;
    font-weight: 600;
    margin: 0 3px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.pagination-luxury .page-item .page-link:hover {
    background: rgba(212, 168, 67, 0.1);
    border-color: var(--gold-400);
    color: var(--gold-600);
}

.pagination-luxury .page-item.active .page-link {
    background: var(--gold-gradient);
    border-color: transparent;
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

/* --- Alert Luxury --- */
.alert-luxury-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left: 4px solid #10b981;
    border-radius: 12px;
    color: #065f46;
}

.alert-luxury-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    color: #991b1b;
}

.alert-luxury-warning {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.15) 0%, rgba(212, 168, 67, 0.05) 100%);
    border: 1px solid rgba(212, 168, 67, 0.4);
    border-left: 4px solid var(--gold-500);
    border-radius: 12px;
    color: var(--gold-800);
}

/* --- Stats Cards Luxury --- */
.stat-card-luxury {
    background: linear-gradient(145deg, var(--dark-bg-lighter), var(--dark-bg-light));
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.stat-card-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
}

.stat-card-luxury .stat-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 80px;
    opacity: 0.1;
    color: var(--gold-400);
}

.stat-card-luxury .stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.stat-card-luxury .stat-value {
    font-size: 32px;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Product Card Shop Page --- */
.product-card-luxury {
    background: #fff;
    border: 1px solid rgba(212, 168, 67, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.product-card-luxury:hover {
    border-color: var(--gold-400);
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(212, 168, 67, 0.15);
}

.product-card-luxury .product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-card-luxury .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-luxury:hover .product-image img {
    transform: scale(1.1);
}

.product-card-luxury .product-price {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gold-gradient);
    color: var(--dark-bg);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.4);
}

.product-card-luxury .product-body {
    padding: 24px;
}

.product-card-luxury .product-title {
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.4;
}

.product-card-luxury .product-title a {
    color: inherit;
    transition: color 0.3s;
}

.product-card-luxury .product-title a:hover {
    color: var(--gold-600);
}

.product-card-luxury .btn-add-cart {
    width: 100%;
    background: var(--gold-gradient);
    border: none;
    color: var(--dark-bg);
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.25);
}

.product-card-luxury .btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
}

/* --- Breadcrumb Luxury --- */
.breadcrumb-luxury {
    background: rgba(212, 168, 67, 0.08);
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(212, 168, 67, 0.15);
}

.breadcrumb-luxury .breadcrumb {
    margin: 0;
}

.breadcrumb-luxury .breadcrumb-item a {
    color: var(--gold-600);
    font-weight: 500;
}

.breadcrumb-luxury .breadcrumb-item a:hover {
    color: var(--gold-800);
}

.breadcrumb-luxury .breadcrumb-item.active {
    color: #666;
}

.breadcrumb-luxury .breadcrumb-item + .breadcrumb-item::before {
    color: var(--gold-400);
}

/* ================================
   LEGACY COMPONENTS (Updated)
   ================================ */

.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.transition-hover {
    transition: all 0.3s ease;
}
.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hover-scale:hover {
    transform: scale(1.1);
}

.last-no-border:last-child {
    border-bottom: none !important;
}

/* --- Navigation & Header --- */
.navbar-brand img {
    transition: transform 0.3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}

/* --- Sidebar (Dashboard) --- */
#user-sidebar {
    transition: all 0.3s ease;
}

#user-sidebar .nav-link {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

#user-sidebar .nav-link:hover {
    background: rgba(212, 168, 67, 0.1);
    color: var(--gold-300) !important;
}

#user-sidebar .nav-link.active {
    border-left-color: var(--gold-500);
    background: rgba(212, 168, 67, 0.15);
}

/* --- Colors --- */
.hover-primary:hover { color: var(--gold-500) !important; }
.hover-gold:hover { color: var(--gold-400) !important; }

/* --- Buttons Override --- */
.btn-primary {
    background: var(--gold-gradient);
    border: none;
    color: var(--dark-bg);
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e9c968 0%, #c49838 50%, #a07824 100%);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.btn-primary:focus,
.btn-primary:active {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.3);
}

.btn-outline-primary {
    border-color: var(--gold-500);
    color: var(--gold-600);
}

.btn-outline-primary:hover {
    background: var(--gold-gradient);
    border-color: transparent;
    color: var(--dark-bg);
}

.shadow-blue-200 {
    box-shadow: 0 10px 15px -3px rgba(212, 168, 67, 0.25);
}

/* --- Line Clamp --- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Misc --- */
.z-index-1000 { z-index: 1000; }

/* --- List Group Gold --- */
.list-group-item.active {
    background: var(--gold-gradient);
    border-color: transparent;
    color: var(--dark-bg);
}

.list-group-item-action:hover {
    background: rgba(212, 168, 67, 0.1);
    color: var(--gold-600);
}

/* --- Form Check Gold --- */
.form-check-input:checked {
    background-color: var(--gold-500);
    border-color: var(--gold-500);
}

.form-check-input:focus {
    border-color: var(--gold-400);
    box-shadow: 0 0 0 0.25rem rgba(212, 168, 67, 0.25);
}

/* --- Selection --- */
::selection {
    background: var(--gold-300);
    color: var(--dark-bg);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gold-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-600);
}

@media (max-width: 768px) {
    #user-sidebar {
        position: fixed;
        z-index: 1050;
        height: 100vh;
    }

    .page-header-luxury {
        padding: 40px 0;
    }

    .page-header-luxury h1 {
        font-size: 28px;
    }
}
