/** * Code of Conquest - Shop UI Stylesheet * Shop modal for browsing and purchasing items */ /* ===== SHOP MODAL ===== */ .shop-modal { max-width: 900px; width: 95%; max-height: 85vh; } /* ===== SHOP HEADER ===== */ .shop-modal .modal-header { display: flex; align-items: center; gap: 1rem; } .shop-header-info { flex: 1; } .shop-header-info .modal-title { margin: 0; } .shop-keeper { font-size: var(--text-sm, 0.875rem); color: var(--text-muted, #707078); font-style: italic; } .shop-gold-display { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--bg-tertiary, #16161a); border: 1px solid var(--accent-gold, #f3a61a); border-radius: 6px; } .shop-gold-display .gold-icon { font-size: 1.2rem; } .shop-gold-display .gold-amount { font-size: var(--text-lg, 1.125rem); font-weight: 700; color: var(--accent-gold, #f3a61a); } /* ===== SHOP MESSAGES ===== */ .shop-message { padding: 0.75rem 1rem; font-size: var(--text-sm, 0.875rem); text-align: center; } .shop-message--success { background: rgba(34, 197, 94, 0.15); border-bottom: 1px solid rgba(34, 197, 94, 0.3); color: #22c55e; } .shop-message--error { background: rgba(239, 68, 68, 0.15); border-bottom: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; } /* ===== SHOP TABS ===== */ .shop-tabs { display: flex; gap: 0.25rem; padding: 0 1rem; background: var(--bg-tertiary, #16161a); border-bottom: 1px solid var(--play-border, #3a3a45); overflow-x: auto; -webkit-overflow-scrolling: touch; } .shop-tabs .tab { min-height: 48px; padding: 0.75rem 1rem; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--text-secondary, #a0a0a8); font-size: var(--text-sm, 0.875rem); cursor: pointer; white-space: nowrap; transition: all 0.2s ease; } .shop-tabs .tab:hover { color: var(--text-primary, #e5e5e5); background: rgba(255, 255, 255, 0.05); } .shop-tabs .tab.active { color: var(--accent-gold, #f3a61a); border-bottom-color: var(--accent-gold, #f3a61a); } /* ===== SHOP BODY ===== */ .shop-body { padding: 1rem; overflow-y: auto; } /* ===== SHOP GRID ===== */ .shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; } /* ===== SHOP ITEM CARD ===== */ .shop-item { display: flex; flex-direction: column; padding: 1rem; background: var(--bg-input, #1e1e24); border: 2px solid var(--border-primary, #3a3a45); border-radius: 8px; transition: all 0.2s ease; } .shop-item:hover { background: rgba(255, 255, 255, 0.03); transform: translateY(-2px); } /* Rarity borders */ .shop-item.rarity-common { border-color: var(--rarity-common, #9ca3af); } .shop-item.rarity-uncommon { border-color: var(--rarity-uncommon, #22c55e); } .shop-item.rarity-rare { border-color: var(--rarity-rare, #3b82f6); } .shop-item.rarity-epic { border-color: var(--rarity-epic, #a855f7); } .shop-item.rarity-legendary { border-color: var(--rarity-legendary, #f59e0b); box-shadow: 0 0 8px rgba(245, 158, 11, 0.3); } /* Item Header */ .shop-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.25rem; } /* ===== RARITY TAG ===== */ .shop-item-rarity { display: inline-block; padding: 0.2rem 0.5rem; font-size: var(--text-xs, 0.75rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 4px; margin-bottom: 0.5rem; } .rarity-tag--common { background: rgba(156, 163, 175, 0.2); color: var(--rarity-common, #9ca3af); border: 1px solid var(--rarity-common, #9ca3af); } .rarity-tag--uncommon { background: rgba(34, 197, 94, 0.15); color: var(--rarity-uncommon, #22c55e); border: 1px solid var(--rarity-uncommon, #22c55e); } .rarity-tag--rare { background: rgba(59, 130, 246, 0.15); color: var(--rarity-rare, #3b82f6); border: 1px solid var(--rarity-rare, #3b82f6); } .rarity-tag--epic { background: rgba(168, 85, 247, 0.15); color: var(--rarity-epic, #a855f7); border: 1px solid var(--rarity-epic, #a855f7); } .rarity-tag--legendary { background: rgba(245, 158, 11, 0.15); color: var(--rarity-legendary, #f59e0b); border: 1px solid var(--rarity-legendary, #f59e0b); } .shop-item-name { font-family: var(--font-heading, 'Cinzel', serif); font-size: var(--text-base, 1rem); font-weight: 600; color: var(--text-primary, #e5e5e5); } .shop-item-type { font-size: var(--text-xs, 0.75rem); color: var(--text-muted, #707078); text-transform: uppercase; letter-spacing: 0.5px; } /* Item Description */ .shop-item-desc { font-size: var(--text-sm, 0.875rem); color: var(--text-secondary, #a0a0a8); line-height: 1.4; margin: 0 0 0.75rem 0; flex: 1; } /* Item Stats */ .shop-item-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; min-height: 24px; } .shop-item-stats .stat { font-size: var(--text-xs, 0.75rem); padding: 0.25rem 0.5rem; background: var(--bg-tertiary, #16161a); border-radius: 4px; color: var(--text-primary, #e5e5e5); } /* Item Footer - Price and Buy */ .shop-item-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 0.75rem; border-top: 1px solid var(--play-border, #3a3a45); } .shop-item-price { display: flex; align-items: center; gap: 0.25rem; font-size: var(--text-base, 1rem); font-weight: 600; color: var(--accent-gold, #f3a61a); } .shop-item-price .gold-icon { font-size: 1rem; } .shop-item-price.unaffordable { color: var(--text-muted, #707078); } /* ===== PURCHASE BUTTON ===== */ .btn-purchase { padding: 0.5rem 1rem; min-width: 90px; border: none; border-radius: 6px; font-size: var(--text-sm, 0.875rem); font-weight: 600; cursor: pointer; transition: all 0.2s ease; } .btn-purchase--available { background: var(--accent-green, #22c55e); color: white; } .btn-purchase--available:hover { background: #16a34a; transform: scale(1.02); } .btn-purchase--disabled { background: var(--bg-tertiary, #16161a); color: var(--text-muted, #707078); cursor: not-allowed; } /* ===== EMPTY STATE ===== */ .shop-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--text-muted, #707078); font-style: italic; } /* ===== SHOP FOOTER ===== */ .shop-modal .modal-footer { display: flex; justify-content: space-between; align-items: center; } .shop-footer-gold { display: flex; align-items: center; gap: 0.5rem; color: var(--accent-gold, #f3a61a); font-weight: 600; } .shop-footer-gold .gold-icon { font-size: 1.1rem; } /* ===== MOBILE RESPONSIVENESS ===== */ @media (max-width: 768px) { .shop-modal { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; border-radius: 0; border: none; } .shop-modal .modal-header { flex-wrap: wrap; gap: 0.5rem; } .shop-header-info { order: 1; flex: 1 0 60%; } .shop-gold-display { order: 2; } .shop-modal .modal-close { order: 3; } .shop-grid { grid-template-columns: 1fr; } .shop-tabs { padding: 0 0.5rem; } .shop-tabs .tab { min-height: 44px; padding: 0.5rem 0.75rem; font-size: 0.8rem; } .shop-item { padding: 0.75rem; } .shop-item-name { font-size: var(--text-sm, 0.875rem); } } /* Extra small screens */ @media (max-width: 400px) { .shop-item-footer { flex-direction: column; gap: 0.5rem; align-items: stretch; } .shop-item-price { justify-content: center; } .btn-purchase { width: 100%; } } /* ===== ACCESSIBILITY ===== */ .shop-tabs .tab:focus-visible, .btn-purchase:focus-visible { outline: 2px solid var(--accent-gold, #f3a61a); outline-offset: 2px; } /* Reduced motion */ @media (prefers-reduced-motion: reduce) { .shop-item, .btn-purchase { transition: none; } .shop-item:hover { transform: none; } }