/* Custom Styles for Kingdom Builder MMO */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.container {
    flex: 1;
}

/* Resource Display */
.resource-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
}

/* Building Cards */
.building-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.building-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Hero Cards */
.hero-card {
    border-left: 4px solid var(--primary-color);
}

.hero-card.rarity-common {
    border-left-color: #6c757d;
}

.hero-card.rarity-uncommon {
    border-left-color: #198754;
}

.hero-card.rarity-rare {
    border-left-color: #0dcaf0;
}

.hero-card.rarity-legendary {
    border-left-color: #ffc107;
}

/* Quest Cards */
.quest-card {
    position: relative;
}

.quest-duration {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

/* Item Rarity Colors */
.rarity-common {
    color: #6c757d;
}

.rarity-uncommon {
    color: #198754;
}

.rarity-rare {
    color: #0dcaf0;
}

.rarity-very-rare {
    color: #d63384;
}

.rarity-legendary {
    color: #ffc107;
    font-weight: bold;
}

/* Shop Items */
.shop-item {
    transition: background-color 0.2s;
}

.shop-item:hover {
    background-color: #f8f9fa;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Battle Report */
.battle-report {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Stat Display */
.stat-bar {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    transition: width 0.3s ease;
}

/* Admin Panel */
.admin-panel {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* World Map Regions */
.region-card {
    cursor: pointer;
    transition: all 0.3s;
    min-height: 200px;
}

.region-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.region-card.capital {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .resource-badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Utility classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cursor-pointer {
    cursor: pointer;
}

.no-select {
    user-select: none;
}

/* Inventory Grid */
.inventory-card .nav-tabs .nav-link {
    color: var(--secondary-color);
}
.inventory-card .nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: bold;
}
.item-card {
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.1);
}
.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
}
.item-icon-container {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-card .bi {
    font-size: 2.5rem; /* Large icons */
}

/* Quest Item Icons - Compact Grid Display */
.quest-items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.quest-item-icon {
    width: 48px;
    text-align: center;
    cursor: default;
    position: relative;
}

.quest-item-icon-box {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 2px solid;
    background: rgba(255,255,255,0.9);
    transition: transform 0.15s, box-shadow 0.15s;
}

.quest-item-icon-box:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.quest-item-icon-box i {
    font-size: 1.3rem;
}

.quest-item-icon-box img {
    max-width: 28px;
    max-height: 28px;
}

.quest-item-qty {
    font-size: 0.65rem;
    font-weight: 600;
    color: #333;
    margin-top: 2px;
    line-height: 1.1;
    white-space: nowrap;
}

/* Rarity Border Colors for Quest Items */
.quest-item-icon-box.rarity-common {
    border-color: #6c757d;
}

.quest-item-icon-box.rarity-uncommon {
    border-color: #198754;
}

.quest-item-icon-box.rarity-rare {
    border-color: #0dcaf0;
    box-shadow: 0 0 4px rgba(13, 202, 240, 0.3);
}

.quest-item-icon-box.rarity-epic {
    border-color: #d63384;
    box-shadow: 0 0 4px rgba(214, 51, 132, 0.3);
}

.quest-item-icon-box.rarity-mythical,
.quest-item-icon-box.rarity-legendary {
    border-color: #ffc107;
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.5);
}

/* Requirement status colors */
.quest-item-icon.has-item .quest-item-qty {
    color: #198754;
}

.quest-item-icon.missing-item .quest-item-qty {
    color: #dc3545;
}

.quest-item-icon.missing-item .quest-item-icon-box {
    opacity: 0.6;
}

/* Consumed items warning style */
.quest-items-consumed .quest-item-icon-box {
    background: rgba(255, 193, 7, 0.15);
}

/* Reward items success style */
.quest-items-rewards .quest-item-icon-box {
    background: rgba(25, 135, 84, 0.1);
}

/* Hero Avatar Styles */
.hero-avatar {
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.hero-avatar-placeholder {
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-avatar-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Hero avatar sizes */
.hero-avatar-sm {
    width: 40px;
    height: 40px;
}

.hero-avatar-md {
    width: 60px;
    height: 60px;
}

.hero-avatar-lg {
    width: 80px;
    height: 80px;
}

.hero-avatar-xl {
    width: 120px;
    height: 120px;
}

/* Rarity border glow for hero avatars */
.hero-avatar.rarity-border-common {
    border-color: #6c757d !important;
}

.hero-avatar.rarity-border-uncommon {
    border-color: #198754 !important;
    box-shadow: 0 0 8px rgba(25, 135, 84, 0.3);
}

.hero-avatar.rarity-border-rare {
    border-color: #0dcaf0 !important;
    box-shadow: 0 0 8px rgba(13, 202, 240, 0.4);
}

.hero-avatar.rarity-border-legendary {
    border-color: #ffc107 !important;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.5);
    animation: legendary-glow 2s ease-in-out infinite alternate;
}

@keyframes legendary-glow {
    from {
        box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
    }
    to {
        box-shadow: 0 0 16px rgba(255, 193, 7, 0.7);
    }
}

/* Quest Image Styles */
.quest-image {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid rgba(0,0,0,0.1);
}

.quest-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Quest card with image - responsive layout */
@media (max-width: 576px) {
    .quest-image {
        max-width: 80px !important;
    }
}

/* Battle quest image styling */
.border-danger .quest-image {
    border-color: rgba(220, 53, 69, 0.3);
}

/* Standard quest image styling */
.border-primary .quest-image {
    border-color: rgba(13, 110, 253, 0.3);
}

/* Building Image Styles */
.building-image {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 8px;
}

.building-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Building Items Grid - Reuses quest-item styling */
.building-items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.building-item-icon {
    width: 48px;
    text-align: center;
    cursor: default;
    position: relative;
}

.building-item-icon-box {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 2px solid;
    background: rgba(255,255,255,0.9);
    transition: transform 0.15s, box-shadow 0.15s;
}

.building-item-icon-box:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.building-item-icon-box i {
    font-size: 1.3rem;
}

.building-item-icon-box img {
    max-width: 28px;
    max-height: 28px;
}

.building-item-qty {
    font-size: 0.65rem;
    font-weight: 600;
    color: #333;
    margin-top: 2px;
    line-height: 1.1;
    white-space: nowrap;
}

/* Rarity Border Colors for Building Items */
.building-item-icon-box.rarity-common {
    border-color: #6c757d;
}

.building-item-icon-box.rarity-uncommon {
    border-color: #198754;
}

.building-item-icon-box.rarity-rare {
    border-color: #0dcaf0;
    box-shadow: 0 0 4px rgba(13, 202, 240, 0.3);
}

.building-item-icon-box.rarity-epic {
    border-color: #d63384;
    box-shadow: 0 0 4px rgba(214, 51, 132, 0.3);
}

.building-item-icon-box.rarity-mythical,
.building-item-icon-box.rarity-legendary {
    border-color: #ffc107;
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.5);
}

/* Cost requirement status colors */
.building-item-icon.has-item .building-item-qty {
    color: #198754;
}

.building-item-icon.missing-item .building-item-qty {
    color: #dc3545;
}

.building-item-icon.missing-item .building-item-icon-box {
    opacity: 0.6;
}

/* Production items style - green background */
.building-items-production .building-item-icon-box {
    background: rgba(25, 135, 84, 0.1);
}

.building-items-production .building-item-qty {
    color: #198754;
}

/* Capacity items style - blue border */
.building-items-capacity .building-item-icon-box {
    border-color: #0d6efd !important;
    border-width: 3px;
    box-shadow: 0 0 6px rgba(13, 110, 253, 0.4);
    background: rgba(13, 110, 253, 0.08);
}

.building-items-capacity .building-item-qty {
    color: #0d6efd;
}

/* Cost items style - warning/neutral background */
.building-items-cost .building-item-icon-box {
    background: rgba(255, 193, 7, 0.08);
}

/* Item Requirements style */
.building-items-requirements .building-item-icon-box {
    background: rgba(108, 117, 125, 0.08);
}

/* Crafting Result Item Icon - Larger display for main crafted item */
.crafting-result-icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 3px solid;
    background: rgba(255,255,255,0.95);
    transition: transform 0.15s, box-shadow 0.15s;
}

.crafting-result-icon-box:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.crafting-result-icon-box i {
    font-size: 1.8rem;
}

.crafting-result-icon-box img {
    max-width: 40px;
    max-height: 40px;
}

/* Rarity Border Colors for Crafting Result */
.crafting-result-icon-box.rarity-common {
    border-color: #6c757d;
}

.crafting-result-icon-box.rarity-uncommon {
    border-color: #198754;
    box-shadow: 0 0 4px rgba(25, 135, 84, 0.3);
}

.crafting-result-icon-box.rarity-rare {
    border-color: #0dcaf0;
    box-shadow: 0 0 6px rgba(13, 202, 240, 0.4);
}

.crafting-result-icon-box.rarity-very-rare,
.crafting-result-icon-box.rarity-epic {
    border-color: #d63384;
    box-shadow: 0 0 6px rgba(214, 51, 132, 0.4);
}

.crafting-result-icon-box.rarity-mythical,
.crafting-result-icon-box.rarity-legendary {
    border-color: #ffc107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
    animation: legendary-glow 2s ease-in-out infinite alternate;
}

/* Shop Item Icons - Used in merchant, player shops, etc. */
.shop-item-icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 3px solid;
    background: rgba(255,255,255,0.95);
    transition: transform 0.15s, box-shadow 0.15s;
}

.shop-item-icon-box:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.shop-item-icon-box i {
    font-size: 1.8rem;
}

.shop-item-icon-box img {
    max-width: 40px;
    max-height: 40px;
}

/* Rarity Border Colors for Shop Items */
.shop-item-icon-box.rarity-common {
    border-color: #6c757d;
}

.shop-item-icon-box.rarity-uncommon {
    border-color: #198754;
    box-shadow: 0 0 4px rgba(25, 135, 84, 0.3);
}

.shop-item-icon-box.rarity-rare {
    border-color: #0dcaf0;
    box-shadow: 0 0 6px rgba(13, 202, 240, 0.4);
}

.shop-item-icon-box.rarity-very-rare,
.shop-item-icon-box.rarity-epic {
    border-color: #d63384;
    box-shadow: 0 0 6px rgba(214, 51, 132, 0.4);
}

.shop-item-icon-box.rarity-mythical,
.shop-item-icon-box.rarity-legendary {
    border-color: #ffc107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
    animation: legendary-glow 2s ease-in-out infinite alternate;
}

/* Smaller shop icon variant for tables/lists */
.shop-item-icon-sm {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 2px solid;
    background: rgba(255,255,255,0.95);
    transition: transform 0.15s, box-shadow 0.15s;
    vertical-align: middle;
}

.shop-item-icon-sm:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.shop-item-icon-sm i {
    font-size: 1.3rem;
}

.shop-item-icon-sm img {
    max-width: 28px;
    max-height: 28px;
}

/* Rarity Border Colors for Small Shop Icons */
.shop-item-icon-sm.rarity-common {
    border-color: #6c757d;
}

.shop-item-icon-sm.rarity-uncommon {
    border-color: #198754;
}

.shop-item-icon-sm.rarity-rare {
    border-color: #0dcaf0;
    box-shadow: 0 0 4px rgba(13, 202, 240, 0.3);
}

.shop-item-icon-sm.rarity-very-rare,
.shop-item-icon-sm.rarity-epic {
    border-color: #d63384;
    box-shadow: 0 0 4px rgba(214, 51, 132, 0.3);
}

.shop-item-icon-sm.rarity-mythical,
.shop-item-icon-sm.rarity-legendary {
    border-color: #ffc107;
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.5);
}

/* Equipment Icon with stat tooltip */
.equipment-icon-box {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 2px solid;
    background: rgba(255,255,255,0.95);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: help;
}

.equipment-icon-box:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.equipment-icon-box i {
    font-size: 1.4rem;
}

.equipment-icon-box img {
    max-width: 32px;
    max-height: 32px;
}

/* Rarity Border Colors for Equipment Icons */
.equipment-icon-box.rarity-common {
    border-color: #6c757d;
}

.equipment-icon-box.rarity-uncommon {
    border-color: #198754;
    box-shadow: 0 0 4px rgba(25, 135, 84, 0.3);
}

.equipment-icon-box.rarity-rare {
    border-color: #0dcaf0;
    box-shadow: 0 0 6px rgba(13, 202, 240, 0.4);
}

.equipment-icon-box.rarity-very-rare,
.equipment-icon-box.rarity-epic {
    border-color: #d63384;
    box-shadow: 0 0 6px rgba(214, 51, 132, 0.4);
}

.equipment-icon-box.rarity-mythical,
.equipment-icon-box.rarity-legendary {
    border-color: #ffc107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
    animation: legendary-glow 2s ease-in-out infinite alternate;
}

/* Resource Generation Table */
.resource-table {
    font-size: 0.9rem;
}

.resource-table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
}

.resource-table td {
    vertical-align: middle;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.resource-table .progress {
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.resource-table .progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    min-width: 30px;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
    transition: width 0.3s ease;
}

.resource-table .progress-bar small {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.resource-table .table-danger-subtle {
    background-color: rgba(220, 53, 69, 0.05);
}

/* Purple color for void/soul items */
.text-purple {
    color: #6f42c1 !important;
}

/* ========================================
   Location Images (Regions & Sublocations)
   ======================================== */

/* Container for location images - creates square aspect ratio */
.location-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect Ratio (square) */
    overflow: hidden;
    background-color: #e9ecef;
}

/* The actual image - covers the container */
.location-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover effect on region cards */
.region-card:hover .location-image {
    transform: scale(1.05);
}

/* Sublocation card hover effect */
.sublocation-card:hover .location-image {
    transform: scale(1.05);
}

/* Capital badge overlay on image */
.location-capital-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd89b 0%, #d4a744 100%);
    color: #333;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.location-capital-badge i {
    color: #c49a00;
}

/* Type badge overlay on sublocation images */
.location-type-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Gradient overlay for better text readability on images */
.location-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
}

/* Image preview in admin */
.location-image-preview {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Cards with images should have no padding at top */
.region-card .location-image-container,
.sublocation-card .location-image-container {
    border-radius: calc(0.375rem - 1px) calc(0.375rem - 1px) 0 0;
}

/* Region card adjustments when image is present */
.region-card:has(.location-image-container) .card-body {
    padding-top: 1rem;
}

.region-card:has(.location-image-container) .card-body .display-1 {
    display: none;
}

/* Sublocation card adjustments when image is present */
.sublocation-card:has(.location-image-container) .card-body {
    padding-top: 1rem;
}

/* ========================================
   Community Items (Donations & Trash)
   ======================================== */

.community-item {
    transition: transform 0.2s, box-shadow 0.2s;
}

.community-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.community-item-icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px solid;
    background: rgba(255, 255, 255, 0.95);
    transition: transform 0.15s, box-shadow 0.15s;
}

.community-item-icon-box i {
    font-size: 1.5rem;
}

.community-item-icon-box img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

/* Rarity borders for community items */
.community-item-icon-box.rarity-common {
    border-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.community-item-icon-box.rarity-uncommon {
    border-color: #198754;
    background: linear-gradient(135deg, #f0fff4 0%, #d4edda 100%);
}

.community-item-icon-box.rarity-rare {
    border-color: #0dcaf0;
    background: linear-gradient(135deg, #e7feff 0%, #d1ecf1 100%);
    box-shadow: 0 0 6px rgba(13, 202, 240, 0.3);
}

.community-item-icon-box.rarity-epic,
.community-item-icon-box.rarity-very-rare {
    border-color: #d63384;
    background: linear-gradient(135deg, #fff0f6 0%, #fce4ec 100%);
    box-shadow: 0 0 6px rgba(214, 51, 132, 0.3);
}

.community-item-icon-box.rarity-legendary,
.community-item-icon-box.rarity-mythical {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffde7 0%, #fff8c4 100%);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

/* Donation Center specific styles */
.border-info.community-item {
    border-left: 4px solid #0dcaf0;
}

.border-info.community-item .card-footer {
    background: linear-gradient(to right, rgba(13, 202, 240, 0.05), transparent);
}

/* Scrapyard (Trash) specific styles */
.border-warning.community-item {
    border-left: 4px solid #ffc107;
}

.border-warning.community-item .card-footer {
    background: linear-gradient(to right, rgba(255, 193, 7, 0.1), transparent);
}

/* Shop item icon box (matching style) */
.shop-item-icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px solid;
    background: rgba(255, 255, 255, 0.95);
    transition: transform 0.15s, box-shadow 0.15s;
}

.shop-item-icon-box i {
    font-size: 1.5rem;
}

.shop-item-icon-box img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

/* Rarity borders for shop items */
.shop-item-icon-box.rarity-common {
    border-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.shop-item-icon-box.rarity-uncommon {
    border-color: #198754;
    background: linear-gradient(135deg, #f0fff4 0%, #d4edda 100%);
}

.shop-item-icon-box.rarity-rare {
    border-color: #0dcaf0;
    background: linear-gradient(135deg, #e7feff 0%, #d1ecf1 100%);
    box-shadow: 0 0 6px rgba(13, 202, 240, 0.3);
}

.shop-item-icon-box.rarity-epic,
.shop-item-icon-box.rarity-very-rare {
    border-color: #d63384;
    background: linear-gradient(135deg, #fff0f6 0%, #fce4ec 100%);
    box-shadow: 0 0 6px rgba(214, 51, 132, 0.3);
}

.shop-item-icon-box.rarity-legendary,
.shop-item-icon-box.rarity-mythical {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffde7 0%, #fff8c4 100%);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}