/* Category Detail Page with Modern Branding */

/* Import brand colors */
:root {
    --gold-primary: #FFB700;
    --gold-secondary: #FF9500;
    --gold-light: #FFF4E6;
    --gold-dark: #E67E00;
    --gradient-gold: linear-gradient(135deg, #FFB700 0%, #FF9500 100%);
    --gradient-gold-hover: linear-gradient(135deg, #FF9500 0%, #E67E00 100%);
    --gradient-gold-subtle: linear-gradient(135deg, #FFFBF5 0%, #FFF4E6 100%);
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF8F0 100%);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 183, 0, 0.1);
}

.category-icon-large {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold-subtle);
    border-radius: 16px;
    color: var(--gold-primary);
}

/* Market Stats */
.market-stats-section .stat-card {
    background: #FFFFFF;
    border: 1px solid rgba(255, 183, 0, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.market-stats-section .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.15);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
}

/* Search Section */
.search-section {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 183, 0, 0.08);
}

.search-input-modern {
    border-color: rgba(255, 183, 0, 0.2) ;
    transition: all 0.3s ease;
}

.search-input-modern:focus {
    border-color: var(--gold-primary) ;
    box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.1) ;
}

/* Asset Cards Enhancement */
.modern-price-card {
    transition: all 0.3s ease;
}

.modern-price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 183, 0, 0.12);
    border-color: rgba(255, 183, 0, 0.2);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-gold);
    border: none;
    box-shadow: 0 2px 8px rgba(255, 183, 0, 0.2);
}

.btn-primary:hover {
    background: var(--gradient-gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.3);
}

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

.btn-outline-primary:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #FFFFFF;
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid rgba(255, 183, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dropdown-item:hover {
    background: var(--gold-light);
    color: var(--gold-dark);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.shimmer {
    animation: shimmer 1.2s ease-in-out infinite;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 10%, #f6f7f8 20%, #f6f7f8 100%);
    background-size: 800px 104px;
}

/* Sort Animation */
.modern-price-card {
    transition: all 0.3s ease, opacity 0.2s ease;
}

.modern-price-card.sorting {
    opacity: 0.6;
    transform: scale(0.98);
}

/* Favorite Button Animation */
.btn-favorite {
    transition: all 0.3s ease;
}

.btn-favorite.active {
    color: var(--gold-primary);
    transform: scale(1.1);
}

.btn-favorite:hover {
    transform: scale(1.15);
}

/* No Results */
#noResultsMessage {
    margin-top: 2rem;
    border-radius: 12px;
    background: var(--gold-light);
    border-color: var(--gold-primary);
    color: var(--gold-dark);
}

/* Responsive */
@media (max-width: 767px) {
    .category-icon-large {
        font-size: 2rem;
        width: 48px;
        height: 48px;
    }
    
    .market-stats-section .stat-card {
        padding: 1rem;
    }
    
    .stat-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .search-section {
        padding: 1rem;
    }
    
    .category-header {
        padding: 1rem;
    }
}

/* Featured Assets Section */
.featured-assets-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.featured-assets-section .section-header {
    border-bottom: 2px solid var(--gold-light);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.featured-assets-section .section-header h2 {
    color: var(--gold-dark);
}

.featured-asset-card .card {
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #FFFFFF;
    border: 1px solid rgba(255, 183, 0, 0.1);
}

.featured-asset-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 183, 0, 0.15);
    border-color: var(--gold-primary);
}

.asset-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-light);
    border-radius: 12px;
}

.asset-icon {
    max-width: 32px;
    max-height: 32px;
}

.asset-icon-placeholder {
    font-size: 1.5rem;
}

.trading-pair-item {
    transition: background 0.2s ease;
}

.trading-pair-item:hover {
    background: var(--gold-light);
}

.asset-stats {
    background: var(--gold-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 1.25rem;
    color: var(--gold-dark);
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: #666;
}

/* Override button in featured assets */
.featured-asset-card .btn-primary {
    background: var(--gradient-gold);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.featured-asset-card .btn-primary:hover {
    background: var(--gradient-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 183, 0, 0.3);
}

/* Badges */
.badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========== Merged from category-detail-fixed.css ========== */

/* Category Detail Page - Fixed Styles for Production */

/* ===== BREADCRUMB FIXES FOR CATEGORY PAGES ===== */
.modern-breadcrumb {
    background: #FFFFFF ;
    border: 1px solid rgba(255, 183, 0, 0.08) ;
    border-radius: 12px ;
    padding: 1rem 1.5rem ;
    margin-bottom: 1.5rem ;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) ;
}

.breadcrumb {
    margin-bottom: 0 ;
    background: transparent ;
}

.breadcrumb-item {
    display: flex ;
    align-items: center ;
}

.breadcrumb-item i {
    margin-right: 0.5rem ;
    color: inherit ;
    font-family: "Font Awesome 6 Free" ;
    font-style: normal ;
    font-weight: 900 ;
}

.breadcrumb-item a {
    color: #718096 ;
    text-decoration: none ;
    font-weight: 500 ;
    transition: color 0.2s ease ;
    display: flex ;
    align-items: center ;
}

.breadcrumb-item a:hover {
    color: #FFB700 ;
}

.breadcrumb-item.active {
    color: #2D3748 ;
    font-weight: 600 ;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #CBD5E0 ;
    content: "›" ;
    padding: 0 0.75rem ;
}

/* ===== CATEGORY HEADER ICON FIXES ===== */
.category-icon-large {
    font-size: 2.5rem ;
    width: 60px ;
    height: 60px ;
    display: flex ;
    align-items: center ;
    justify-content: center ;
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF4E6 100%) ;
    border-radius: 16px ;
    color: #FFB700 ;
    border: 2px solid rgba(255, 183, 0, 0.15) ;
}

.category-icon-large i {
    font-family: "Font Awesome 6 Free" ;
    font-style: normal ;
    font-weight: 900 ;
    display: inline-block ;
}

/* ===== ASSET CARD ICON FIXES ===== */
.asset-icon-modern {
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF4E6 100%) ;
    border: 1px solid rgba(255, 183, 0, 0.15) ;
    border-radius: 12px ;
    width: 48px ;
    height: 48px ;
    display: flex ;
    align-items: center ;
    justify-content: center ;
    font-size: 1.5rem ;
    color: #FFB700 ;
    font-weight: 600 ;
    flex-shrink: 0 ;
}

.asset-icon-modern i {
    font-family: "Font Awesome 6 Free" ;
    font-style: normal ;
    font-weight: 900 ;
    display: inline-block ;
}

/* ===== ENSURE FONTAWESOME ICONS DISPLAY ===== */
.fas, .far, .fab {
    font-family: "Font Awesome 6 Free" ;
    font-style: normal ;
    font-variant: normal ;
    text-rendering: auto ;
    -webkit-font-smoothing: antialiased ;
    display: inline-block ;
}

.fas {
    font-weight: 900 ;
}

.far {
    font-weight: 400 ;
}

/* Fix specific icon issues */
.fa-home::before,
.fa-coins::before,
.fa-dollar-sign::before,
.fa-bitcoin::before,
.fa-chart-line::before,
.fa-gem::before,
.fa-leaf::before,
.fa-oil-can::before {
    display: inline-block ;
}

/* Prevent FOUC (Flash of Unstyled Content) */
.category-icon-large,
.asset-icon-modern,
.breadcrumb-item {
    visibility: visible ;
}

/* Force icon display for all icon types */
.category-icon-large i[class*="fa-"],
.asset-icon-modern i[class*="fa-"],
.breadcrumb-item i[class*="fa-"] {
    font-family: "Font Awesome 6 Free" ;
    font-weight: 900 ;
    font-style: normal ;
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 767px) {
    .category-icon-large {
        font-size: 2rem ;
        width: 48px ;
        height: 48px ;
    }
    
    .asset-icon-modern {
        width: 40px ;
        height: 40px ;
        font-size: 1.25rem ;
    }
    
    .modern-breadcrumb {
        padding: 0.75rem 1rem ;
    }
    
    .breadcrumb {
        font-size: 0.875rem ;
    }
}

/* ===== OVERRIDE ANY JAVASCRIPT MODIFICATIONS ===== */
/* Use very specific selectors to ensure our styles take precedence */
body .container .modern-breadcrumb .breadcrumb .breadcrumb-item i[class*="fa-"] {
    font-family: "Font Awesome 6 Free" ;
    font-weight: 900 ;
    font-style: normal ;
}

body .container .category-header .category-icon-large i[class*="fa-"] {
    font-family: "Font Awesome 6 Free" ;
    font-weight: 900 ;
    font-style: normal ;
}

body .container .modern-price-card .asset-icon-modern i[class*="fa-"] {
    font-family: "Font Awesome 6 Free" ;
    font-weight: 900 ;
    font-style: normal ;
}