/* Reset and Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: tra; color: #ffffff; overflow: hidden; height: 100vh; width: 100vw; display: flex; align-items: center; justify-content: center; padding: clamp(10px, 2vw, 30px); } /* Main Container - Adaptive Sizing */ .blackmarket-container { width: clamp(320px, 95vw, 1600px); height: clamp(600px, 90vh, 1000px); background: #0a0a0a; border: 1px solid #1f1f1f; border-radius: clamp(12px, 1.5vw, 20px); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; animation: slideIn 0.4s ease-out; overflow: hidden; position: relative; } .blackmarket-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(255, 255, 255, 0.02) 100%); pointer-events: none; border-radius: inherit; } @keyframes slideIn { from { opacity: 0; transform: translateY(-30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } /* Header - Responsive */ .header { background: linear-gradient(135deg, #111111 0%, #0d0d0d 100%); padding: clamp(16px, 2.5vw, 28px) clamp(20px, 3vw, 40px); border-bottom: 1px solid #1f1f1f; border-radius: clamp(11px, 1.4vw, 19px) clamp(11px, 1.4vw, 19px) 0 0; flex-shrink: 0; position: relative; z-index: 2; } .header-content { display: flex; justify-content: space-between; align-items: center; } .logo { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 16px); } .logo-icon { font-size: clamp(1.5rem, 2.5vw, 2.5rem); color: #ffffff; transition: transform 0.3s ease; } .logo h1 { font-size: clamp(1.2rem, 2.2vw, 2.2rem); font-weight: 700; letter-spacing: clamp(0.5px, 0.15vw, 2px); color: #ffffff; text-transform: uppercase; } .player-info { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 24px); } .balance { display: flex; align-items: center; gap: clamp(6px, 0.8vw, 12px); background: rgba(255, 255, 255, 0.05); padding: clamp(10px, 1.2vw, 16px) clamp(14px, 1.8vw, 24px); border-radius: clamp(6px, 0.8vw, 12px); border: 1px solid rgba(255, 255, 255, 0.1); font-size: clamp(0.9rem, 1.1vw, 1.2rem); font-weight: 600; } .money-icon { color: #4CAF50; font-size: clamp(1rem, 1.2vw, 1.3rem); } .close-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); color: #ffffff; width: clamp(36px, 4vw, 48px); height: clamp(36px, 4vw, 48px); border-radius: clamp(6px, 0.8vw, 12px); font-size: clamp(1rem, 1.2vw, 1.4rem); cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; } .close-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); transform: scale(1.05); } /* Navigation Tabs - Responsive */ .nav-tabs { display: flex; background: #080808; border-bottom: 1px solid #1f1f1f; flex-shrink: 0; position: relative; z-index: 2; } .tab-btn { flex: 1; padding: clamp(14px, 2vw, 24px) clamp(8px, 1.5vw, 20px); background: transparent; border: none; color: #666666; font-size: clamp(0.8rem, 1vw, 1rem); font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: clamp(4px, 0.8vw, 10px); border-bottom: 3px solid transparent; position: relative; min-height: clamp(50px, 6vw, 70px); } .tab-btn span { display: block; } .tab-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.03); opacity: 0; transition: opacity 0.3s ease; } .tab-btn:hover::before { opacity: 1; } .tab-btn:hover { color: #ffffff; } .tab-btn.active { color: #ffffff; border-bottom-color: #ffffff; background: rgba(255, 255, 255, 0.05); } .tab-btn i { font-size: clamp(1rem, 1.2vw, 1.3rem); } /* Content Area - Responsive */ .content-area { flex: 1; padding: clamp(16px, 3vw, 40px); overflow: hidden; background: #000000; display: flex; flex-direction: column; position: relative; z-index: 1; } .tab-content { display: none; height: 100%; flex-direction: column; } .tab-content.active { display: flex; animation: fadeIn 0.3s ease-in; } @keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } } /* Category Header - Responsive */ .category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(20px, 3vw, 32px); padding-bottom: clamp(12px, 2vw, 20px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); flex-shrink: 0; flex-wrap: wrap; gap: clamp(12px, 2vw, 20px); } .category-header h2 { font-size: clamp(1.2rem, 1.8vw, 1.8rem); color: #ffffff; font-weight: 600; display: flex; align-items: center; gap: clamp(8px, 1vw, 14px); } .category-header h2 i { color: #ffffff; font-size: clamp(1rem, 1.4vw, 1.6rem); } .search-bar { display: flex; gap: clamp(6px, 1vw, 12px); flex-shrink: 0; } .search-bar input { padding: clamp(10px, 1.5vw, 16px) clamp(12px, 1.8vw, 20px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: clamp(6px, 1vw, 12px); background: rgba(255, 255, 255, 0.05); color: #ffffff; font-size: clamp(0.8rem, 1vw, 1rem); width: clamp(200px, 20vw, 320px); transition: all 0.3s ease; } .search-bar input:focus { outline: none; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); } .search-bar input::placeholder { color: #777777; } .search-btn { padding: clamp(10px, 1.5vw, 16px) clamp(12px, 1.8vw, 20px); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: clamp(6px, 1vw, 12px); color: #ffffff; font-size: clamp(0.8rem, 1vw, 1rem); cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; min-width: clamp(40px, 5vw, 60px); } .search-btn:hover { background: rgba(255, 255, 255, 0.12); transform: scale(1.02); } /* Items Grid - Fully Responsive */ .items-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 25vw, 320px), 1fr)); gap: clamp(16px, 2vw, 28px); flex: 1; overflow-y: auto; padding-right: clamp(4px, 0.8vw, 12px); align-content: start; } .items-grid::-webkit-scrollbar { width: clamp(6px, 0.8vw, 10px); } .items-grid::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: clamp(3px, 0.4vw, 5px); } .items-grid::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: clamp(3px, 0.4vw, 5px); } .items-grid::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); } /* Item Cards - Fully Responsive */ .item-card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: clamp(10px, 1.2vw, 16px); padding: clamp(16px, 2.5vw, 28px); cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; height: fit-content; min-height: clamp(200px, 25vh, 300px); display: flex; flex-direction: column; } .item-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.08), transparent); transform: translateX(-100%) translateY(-100%) rotate(45deg); transition: transform 0.6s ease; opacity: 0; } .item-card:hover::before { opacity: 1; transform: translateX(100%) translateY(100%) rotate(45deg); } .item-card:hover { border-color: rgba(255, 255, 255, 0.25); background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); } .item-image { text-align: center; margin-bottom: clamp(12px, 2vw, 20px); font-size: clamp(2rem, 3.5vw, 3.5rem); color: #ffffff; position: relative; z-index: 1; flex-shrink: 0; } .item-image i { transition: transform 0.3s ease; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1)); } .item-card:hover .item-image i { transform: scale(1.1); } .item-name { font-size: clamp(1rem, 1.4vw, 1.4rem); font-weight: 700; margin-bottom: clamp(6px, 1vw, 12px); color: #ffffff; text-align: center; position: relative; z-index: 1; flex-shrink: 0; } .item-description { font-size: clamp(0.8rem, 1vw, 1rem); color: #aaaaaa; margin-bottom: clamp(12px, 2vw, 20px); text-align: center; line-height: 1.5; position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; } .item-footer { display: flex; justify-content: space-between; align-items: center; padding-top: clamp(12px, 2vw, 20px); border-top: 1px solid rgba(255, 255, 255, 0.12); position: relative; z-index: 1; flex-shrink: 0; margin-top: auto; } .item-price { font-size: clamp(1rem, 1.3vw, 1.3rem); font-weight: 700; color: #4CAF50; text-shadow: 0 0 8px rgba(76, 175, 80, 0.3); } .item-stock { font-size: clamp(0.7rem, 0.9vw, 0.9rem); color: #ffffff; background: rgba(255, 255, 255, 0.1); padding: clamp(4px, 0.6vw, 8px) clamp(6px, 1vw, 12px); border-radius: clamp(4px, 0.6vw, 8px); border: 1px solid rgba(255, 255, 255, 0.15); font-weight: 500; white-space: nowrap; } .item-stock.low { color: #ff9800; border-color: rgba(255, 152, 0, 0.4); background: rgba(255, 152, 0, 0.15); } .item-stock.out { color: #f44336; border-color: rgba(244, 67, 54, 0.4); background: rgba(244, 67, 54, 0.15); } .item-card.disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; } .item-card.disabled:hover { border-color: rgba(255, 255, 255, 0.12); background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%); box-shadow: none; } /* Modal Styles - Responsive */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); padding: clamp(10px, 2vw, 30px); } .modal-content { background: linear-gradient(135deg, #111111 0%, #0a0a0a 100%); margin: clamp(20px, 5vh, 80px) auto; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: clamp(12px, 1.5vw, 20px); width: clamp(320px, 90vw, 650px); max-height: 90vh; box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8); animation: modalSlideIn 0.3s ease; overflow: hidden; } @keyframes modalSlideIn { from { opacity: 0; transform: translateY(-40px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } } .modal-header { background: rgba(255, 255, 255, 0.05); padding: clamp(16px, 2.5vw, 28px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; } .modal-header h3 { font-size: clamp(1.1rem, 1.5vw, 1.5rem); font-weight: 600; color: #ffffff; } .modal-close { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #cccccc; font-size: clamp(1rem, 1.2vw, 1.3rem); cursor: pointer; transition: all 0.3s ease; width: clamp(28px, 3.5vw, 40px); height: clamp(28px, 3.5vw, 40px); display: flex; align-items: center; justify-content: center; border-radius: clamp(6px, 0.8vw, 10px); } .modal-close:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); } .modal-body { padding: clamp(16px, 3vw, 32px); max-height: 60vh; overflow-y: auto; } .item-preview { display: flex; gap: clamp(16px, 2.5vw, 28px); margin-bottom: clamp(20px, 3vw, 32px); align-items: flex-start; } .modal .item-image { font-size: clamp(3rem, 4.5vw, 5rem); min-width: clamp(80px, 10vw, 120px); color: #ffffff; text-align: center; flex-shrink: 0; } .item-details { flex: 1; min-width: 0; } .item-details h4 { font-size: clamp(1.2rem, 1.6vw, 1.6rem); color: #ffffff; margin-bottom: clamp(8px, 1vw, 12px); font-weight: 600; } .item-details p { color: #aaaaaa; margin-bottom: clamp(14px, 2vw, 20px); line-height: 1.6; font-size: clamp(0.9rem, 1vw, 1rem); } .item-stats { display: flex; flex-direction: column; gap: clamp(8px, 1vw, 12px); } .stat { font-size: clamp(0.9rem, 1vw, 1rem); color: #ffffff; display: flex; align-items: center; gap: clamp(8px, 1vw, 12px); } .stat i { width: clamp(16px, 2vw, 20px); color: #aaaaaa; flex-shrink: 0; } .purchase-options { display: flex; justify-content: space-between; align-items: center; padding: clamp(16px, 2.5vw, 28px); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: clamp(8px, 1.2vw, 14px); margin-bottom: clamp(16px, 2.5vw, 28px); flex-wrap: wrap; gap: clamp(12px, 2vw, 20px); } .quantity-selector { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 18px); } .quantity-selector label { display: flex; align-items: center; gap: clamp(6px, 0.8vw, 10px); color: #ffffff; font-weight: 500; font-size: clamp(0.9rem, 1vw, 1rem); } .quantity-controls { display: flex; align-items: center; gap: clamp(8px, 1vw, 12px); } .qty-btn { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: #ffffff; width: clamp(32px, 4vw, 42px); height: clamp(32px, 4vw, 42px); border-radius: clamp(6px, 0.8vw, 10px); font-size: clamp(0.9rem, 1vw, 1.1rem); cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; } .qty-btn:hover { background: rgba(255, 255, 255, 0.15); transform: scale(1.05); } #quantity { width: clamp(60px, 8vw, 80px); padding: clamp(8px, 1.2vw, 12px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: clamp(6px, 0.8vw, 10px); background: rgba(255, 255, 255, 0.05); color: #ffffff; text-align: center; font-size: clamp(0.9rem, 1.1vw, 1.1rem); font-weight: 600; } #quantity:focus { outline: none; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); } .total-price { font-size: clamp(1.1rem, 1.4vw, 1.4rem); color: #4CAF50; font-weight: 700; display: flex; align-items: center; gap: clamp(6px, 0.8vw, 10px); text-shadow: 0 0 8px rgba(76, 175, 80, 0.3); } .modal-footer { padding: clamp(16px, 2.5vw, 28px); border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: flex-end; gap: clamp(10px, 1.5vw, 16px); background: rgba(255, 255, 255, 0.02); flex-wrap: wrap; } .btn { padding: clamp(10px, 1.5vw, 14px) clamp(16px, 2.5vw, 28px); border: none; border-radius: clamp(6px, 1vw, 12px); font-size: clamp(0.8rem, 1vw, 1rem); font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: clamp(6px, 0.8vw, 10px); white-space: nowrap; } .btn-primary { background: #ffffff; color: #000000; } .btn-primary:hover { background: #f0f0f0; transform: translateY(-2px); } .btn-primary.disabled { background: #666666; color: #333333; cursor: not-allowed; transform: none; } .btn-secondary { background: rgba(255, 255, 255, 0.08); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.15); } .btn-secondary:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); } /* Notifications - Responsive */ .notifications { position: fixed; top: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); z-index: 1100; max-width: clamp(280px, 35vw, 400px); } .notification { background: rgba(0, 0, 0, 0.95); color: #ffffff; padding: clamp(12px, 1.8vw, 18px) clamp(16px, 2.2vw, 22px); margin-bottom: clamp(8px, 1.2vw, 14px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: clamp(8px, 1.2vw, 14px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6); animation: slideInRight 0.3s ease; display: flex; align-items: center; gap: clamp(8px, 1.2vw, 14px); border-left: clamp(3px, 0.4vw, 5px) solid #ffffff; font-size: clamp(0.85rem, 1vw, 1rem); } .notification.success { border-left-color: #4CAF50; } .notification.success::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: #4CAF50; } .notification.error { border-left-color: #f44336; } .notification.error::before { content: '\f00d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: #f44336; } .notification.info { border-left-color: #2196F3; } .notification.info::before { content: '\f05a'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: #2196F3; } @keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } } /* Resolution-Specific Optimizations */ /* 4K (3840x2160) and larger */ @media (min-width: 2560px) { .blackmarket-container { max-width: 1800px; max-height: 1200px; } .items-grid { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px; } .item-card { min-height: 350px; } .logo h1 { font-size: 2.8rem; } .category-header h2 { font-size: 2.2rem; } } /* 2K (2560x1440) */ @media (min-width: 1920px) and (max-width: 2559px) { .blackmarket-container { max-width: 1400px; max-height: 1000px; } .items-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; } .item-card { min-height: 320px; } } /* 1080p (1920x1080) */ @media (min-width: 1366px) and (max-width: 1919px) { .blackmarket-container { max-width: 1200px; max-height: 850px; } .items-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; } .item-card { min-height: 280px; } .tab-btn span { display: inline; } } /* 720p (1366x768) and smaller laptops */ @media (min-width: 1024px) and (max-width: 1365px) { .blackmarket-container { max-width: 1000px; max-height: 650px; } .items-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; } .item-card { min-height: 250px; padding: 18px; } .header { padding: 16px 24px; } .content-area { padding: 24px; } } /* Tablets and small screens */ @media (max-width: 1023px) { body { padding: 10px; } .blackmarket-container { width: 100vw; height: 100vh; border-radius: 0; max-width: none; max-height: none; } .header { padding: 14px 20px; border-radius: 0; } .logo h1 { font-size: 1.4rem; letter-spacing: 1px; } .logo-icon { font-size: 1.6rem; } .balance { padding: 8px 14px; font-size: 0.9rem; } .close-btn { width: 32px; height: 32px; font-size: 1rem; } .nav-tabs { flex-wrap: wrap; } .tab-btn { min-width: 50%; padding: 12px 8px; font-size: 0.85rem; } .tab-btn span { display: none; } .content-area { padding: 16px; } .category-header { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 20px; } .category-header h2 { font-size: 1.3rem; } .search-bar { width: 100%; } .search-bar input { flex: 1; min-width: 0; width: auto; } .items-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; } .item-card { min-height: 220px; padding: 14px; } .item-image { font-size: 2.2rem; margin-bottom: 12px; } .item-name { font-size: 1.1rem; margin-bottom: 6px; } .item-description { font-size: 0.8rem; margin-bottom: 12px; } .item-footer { padding-top: 12px; flex-direction: column; gap: 8px; align-items: center; } .item-price { font-size: 1.1rem; } .item-stock { font-size: 0.75rem; } /* Modal adjustments for tablets */ .modal { padding: 5px; } .modal-content { width: 95vw; max-height: 95vh; margin: 2.5vh auto; } .modal-header { padding: 16px 20px; } .modal-body { padding: 20px; max-height: 70vh; } .item-preview { flex-direction: column; text-align: center; gap: 16px; } .modal .item-image { font-size: 3.5rem; min-width: auto; } .purchase-options { flex-direction: column; gap: 14px; padding: 16px; } .modal-footer { padding: 16px 20px; justify-content: center; } .btn { flex: 1; max-width: 120px; justify-content: center; } } /* Mobile phones */ @media (max-width: 767px) { .nav-tabs { overflow-x: auto; flex-wrap: nowrap; } .tab-btn { min-width: 25%; flex-shrink: 0; white-space: nowrap; } .items-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; } .item-card { min-height: 200px; padding: 12px; } .item-image { font-size: 2rem; } .item-name { font-size: 1rem; } .item-description { font-size: 0.75rem; line-height: 1.3; } .search-bar input { font-size: 0.85rem; } .notifications { top: 10px; right: 10px; left: 10px; max-width: none; } .notification { font-size: 0.8rem; padding: 10px 14px; } } /* Very small screens */ @media (max-width: 480px) { .logo h1 { font-size: 1.1rem; } .balance { font-size: 0.8rem; padding: 6px 10px; } .items-grid { grid-template-columns: 1fr; gap: 10px; } .item-card { min-height: 180px; } .category-header h2 { font-size: 1.1rem; } .modal-content { width: 98vw; margin: 1vh auto; } .qty-btn { width: 28px; height: 28px; font-size: 0.8rem; } #quantity { width: 50px; font-size: 0.9rem; } } /* Landscape orientation fixes for tablets */ @media (max-width: 1023px) and (orientation: landscape) { .blackmarket-container { height: 100vh; } .nav-tabs { flex-wrap: nowrap; overflow-x: auto; } .tab-btn { min-width: 25%; flex-shrink: 0; } .tab-btn span { display: inline; font-size: 0.8rem; } .content-area { padding: 16px 20px; } .items-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } } /* High DPI displays */ @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { .item-image i { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2)); } .blackmarket-container { border-width: 0.5px; } .item-card { border-width: 0.5px; } } /* Reduced motion preferences */ @media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } .item-card::before { display: none; } } /* Dark mode support (for systems that support it) */ @media (prefers-color-scheme: dark) { /* Already dark by default, but can add specific adjustments */ .blackmarket-container { background: #050505; } } /* Focus management for accessibility */ .tab-btn:focus, .btn:focus, .search-bar input:focus, #quantity:focus, .qty-btn:focus, .close-btn:focus, .modal-close:focus, .search-btn:focus { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; } /* High contrast mode support */ @media (prefers-contrast: high) { .item-card { border-color: rgba(255, 255, 255, 0.3); } .item-stock { border-color: rgba(255, 255, 255, 0.4); } .btn-primary { background: #ffffff; color: #000000; border: 2px solid #ffffff; } } /* Print styles (in case someone tries to print) */ @media print { .blackmarket-container { background: white; color: black; box-shadow: none; border: 1px solid black; } .close-btn, .search-btn, .btn { display: none; } } /* Utility Classes */ .hidden { display: none !important; } .disabled { opacity: 0.5 !important; cursor: not-allowed !important; pointer-events: none !important; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* Loading states */ .loading { opacity: 0.7; pointer-events: none; } .loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #ffffff; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Custom scrollbar for all browsers */ * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent; } /* Performance optimizations */ .item-card, .modal-content, .blackmarket-container { will-change: transform; backface-visibility: hidden; perspective: 1000px; } /* Ensure text remains readable during font load */ body { font-display: swap; }