/* Hangar Hub - Production & Resource Management - Morrhollow Terminal Style */
/* Matches Exchange Panel design (green/teal production theme vs orange trade theme) */

:root {
    --hg-gap-xs: 3px;
    --hg-gap-sm: 4px;
    --hg-gap-md: 6px;
    --hg-gap-lg: 8px;
    --hg-pad-xs: 4px;
    --hg-pad-sm: 6px;
    --hg-pad-md: 8px;
    --hg-pad-lg: 12px;

    /* Morrhollow Terminal Colors - Production theme (green/teal) */
    --hg-bg-dark: rgba(15, 15, 25, 0.95);
    --hg-bg-darker: rgba(8, 8, 15, 0.98);
    --hg-green-glow: #22c55e;
    --hg-teal-accent: #14b8a6;
    --hg-gold-accent: rgba(212, 175, 55, 0.9);
    --hg-gold-border: rgba(212, 175, 55, 0.4);
}

.panel-hangar {
    position: fixed;
    top: 50px;
    left: 10px;
    width: min(1000px, calc(100vw - 20px));
    max-width: 1000px;
    height: calc(100vh - 100px);
    max-height: 700px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    /* Morrhollow-style multi-layer glow shadow (green production theme) */
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(34, 197, 94, 0.15),
        0 0 20px rgba(212, 175, 55, 0.1);
    border: 1px solid var(--hg-gold-border);
    font-family: 'RemiliaMincho', serif;
    font-size: 12px;
    color: #E5E7EB;
    user-select: none;
    background: transparent;
    animation: hg-panel-slide-in 0.3s ease-out;
    margin: 0;
    padding: 0;
}

/* CRITICAL: Remove padding from .panel-content wrapper */
.panel-hangar .panel-content {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Hide the auto-generated .panel-close button */
.panel-hangar .panel-close {
    display: none !important;
}

@keyframes hg-panel-slide-in {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.panel-hangar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        var(--hg-bg-dark) 0%,
        var(--hg-bg-darker) 50%,
        var(--hg-bg-dark) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

/* Header - Compact Single Row */
.panel-hangar .economy-hub-header {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.95) 0%,
        rgba(51, 65, 85, 0.98) 100%);
    min-height: 30px;
    max-height: 30px;
    border-bottom: 1px solid var(--hg-gold-border);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(34, 197, 94, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
    gap: 8px;
}

.panel-hangar .economy-hub-header h2 {
    font-size: 11px;
    color: var(--hg-gold-accent);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    opacity: 0.9;
    white-space: nowrap;
    text-shadow:
        0 0 10px rgba(34, 197, 94, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.8);
}

.panel-hangar .economy-hub-header .wallet-actions {
    display: flex;
    gap: 2px;
    align-items: center;
}

/* Tabs - Morrhollow Terminal Button Style */
.panel-hangar .economy-hub-tabs {
    display: flex;
    gap: var(--hg-gap-sm);
    padding: var(--hg-pad-sm) var(--hg-pad-sm);
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.2) 100%);
    border-bottom: 1px solid var(--hg-gold-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    min-height: 2.25rem;
}

.panel-hangar .hub-tab {
    flex: 1;
    padding: var(--hg-pad-sm) var(--hg-pad-md);
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.3) 0%,
        rgba(51, 65, 85, 0.4) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 4px;
    color: rgba(186, 166, 116, 0.8);
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--hg-gap-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Morrhollow sweep effect */
.panel-hangar .hub-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(34, 197, 94, 0.15),
        transparent);
    transition: left 0.5s ease;
}

.panel-hangar .hub-tab:hover {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.5) 0%,
        rgba(51, 65, 85, 0.6) 100%);
    border-color: var(--hg-green-glow);
    color: #ffffff;
    box-shadow:
        0 0 10px rgba(34, 197, 94, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.panel-hangar .hub-tab:hover::before {
    left: 100%;
}

.panel-hangar .hub-tab.active {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.15) 0%,
        rgba(34, 197, 94, 0.25) 100%);
    border-color: var(--hg-green-glow);
    color: var(--hg-green-glow);
    box-shadow:
        0 0 15px rgba(34, 197, 94, 0.4),
        inset 0 0 10px rgba(34, 197, 94, 0.1);
}

/* Glowing active underline */
.panel-hangar .hub-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--hg-green-glow),
        transparent);
    animation: hg-tab-glow 1.5s ease-in-out infinite;
}

@keyframes hg-tab-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.panel-hangar .tab-icon {
    font-size: 14px;
}

.panel-hangar .tab-text {
    font-size: 9px;
}

/* Body - FIXED HEIGHT, NO SCROLL */
.panel-hangar .economy-hub-body {
    flex: 1;
    overflow: hidden;
    background: transparent;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Header Action Buttons */
.panel-hangar .help-btn,
.panel-hangar .refresh-btn,
.panel-hangar .close-btn {
    padding: 2px 6px;
    background: transparent;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 3px;
    color: rgba(186, 166, 116, 0.7);
    font-family: 'RemiliaMincho', serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.panel-hangar .help-btn:hover,
.panel-hangar .refresh-btn:hover,
.panel-hangar .close-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--hg-green-glow);
    color: var(--hg-green-glow);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
}

.panel-hangar .refresh-btn.spinning {
    animation: hg-spin 1s linear;
}

@keyframes hg-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Inventory View - Compact with Sub-Tabs */
.inventory-view-compact {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.inventory-sub-tabs {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.15) 0%,
        rgba(51, 65, 85, 0.2) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.inv-tab {
    flex: 1;
    padding: 6px 12px;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.3) 0%,
        rgba(51, 65, 85, 0.5) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 4px;
    color: rgba(186, 166, 116, 0.7);
    font-family: 'RemiliaMincho', serif;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.inv-tab:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.7) 0%,
        rgba(30, 41, 59, 0.8) 100%);
    border-color: rgba(34, 197, 94, 0.4);
    color: rgba(34, 197, 94, 0.9);
}

.inv-tab.active {
    background: linear-gradient(180deg,
        rgba(34, 197, 94, 0.15) 0%,
        rgba(34, 197, 94, 0.08) 100%);
    border-color: rgba(34, 197, 94, 0.6);
    color: rgba(34, 197, 94, 1);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.inventory-grid-compact {
    flex: 1;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    overflow-y: auto;
    align-content: start;
}

.empty-category {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(186, 166, 116, 0.5);
    font-size: 13px;
}

.inventory-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.4) 0%,
        rgba(51, 65, 85, 0.6) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    min-height: 80px;
}

.inventory-item:hover {
    border-color: rgba(34, 197, 94, 0.5);
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.6) 0%,
        rgba(30, 41, 59, 0.8) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.item-icon {
    font-size: 32px;
    line-height: 1;
}

.item-name {
    font-size: 10px;
    color: rgba(186, 166, 116, 0.8);
    text-align: center;
    line-height: 1.2;
}

.item-quantity {
    font-size: 11px;
    font-weight: 700;
    color: rgba(34, 197, 94, 0.9);
}

.item-uses {
    font-size: 9px;
    color: rgba(186, 166, 116, 0.6);
}

.item-source-hint {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    font-size: 9px;
    color: rgba(186, 166, 116, 0.7);
    font-weight: 700;
    cursor: help;
    transition: all 0.2s ease;
}

.inventory-item:hover .item-source-hint {
    background: rgba(212, 175, 55, 0.25);
    border-color: rgba(212, 175, 55, 0.5);
    color: rgba(212, 175, 55, 0.9);
    transform: scale(1.1);
}

/* Crafting View */
.crafting-view {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.crafting-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crafting-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(34, 197, 94, 0.9);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crafting-info {
    font-size: 11px;
    color: rgba(186, 166, 116, 0.6);
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.recipe-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.3) 0%,
        rgba(51, 65, 85, 0.5) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    transition: all 0.15s ease;
}

.recipe-card:hover:not(.disabled) {
    border-color: rgba(34, 197, 94, 0.5);
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.5) 0%,
        rgba(30, 41, 59, 0.7) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.recipe-card.disabled {
    opacity: 0.4;
}

.recipe-icon {
    font-size: 48px;
    text-align: center;
}

.recipe-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recipe-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(34, 197, 94, 0.9);
    text-align: center;
}

.recipe-materials {
    font-size: 10px;
    color: rgba(186, 166, 116, 0.7);
    text-align: center;
}

.recipe-materials .material {
    display: inline-block;
    margin: 2px;
}

.recipe-cost {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 10px;
    color: rgba(186, 166, 116, 0.7);
}

.craft-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 6px;
    color: white;
    font-family: 'RemiliaMincho', serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.craft-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.craft-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Machines View */
.machines-view {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.machines-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.machines-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(34, 197, 94, 0.9);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.build-machine-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.2) 0%,
        rgba(34, 197, 94, 0.3) 100%);
    border: 1px solid rgba(34, 197, 94, 0.6);
    border-radius: 6px;
    color: rgba(34, 197, 94, 0.95);
    font-family: 'RemiliaMincho', serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.build-machine-btn:hover {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.3) 0%,
        rgba(34, 197, 94, 0.4) 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.machine-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.3) 0%,
        rgba(51, 65, 85, 0.5) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
}

.machine-card.empty {
    border: 2px dashed rgba(34, 197, 94, 0.3);
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.machine-icon {
    font-size: 48px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    color: rgba(186, 166, 116, 0.4);
}

.empty-text {
    font-size: 12px;
    color: rgba(186, 166, 116, 0.6);
}

.machine-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.machine-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(34, 197, 94, 0.9);
}

.machine-status {
    font-size: 11px;
    font-weight: 600;
}

.machine-timer, .machine-ready {
    font-size: 10px;
    color: rgba(186, 166, 116, 0.7);
}

.machine-durability {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: rgba(186, 166, 116, 0.7);
}

.durability-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.durability-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.machine-actions {
    display: flex;
    gap: 8px;
}

.machine-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-family: 'RemiliaMincho', serif;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.machine-btn.collect {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.3) 0%,
        rgba(22, 163, 74, 0.4) 100%);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: rgba(34, 197, 94, 1);
}

.machine-btn.start {
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.2) 0%,
        rgba(212, 175, 55, 0.3) 100%);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: rgba(212, 175, 55, 1);
}

.machine-btn.repair {
    background: linear-gradient(135deg,
        rgba(251, 146, 60, 0.2) 0%,
        rgba(251, 146, 60, 0.3) 100%);
    border: 1px solid rgba(251, 146, 60, 0.5);
    color: rgba(251, 146, 60, 1);
}

.machine-btn.build {
    background: linear-gradient(135deg,
        rgba(186, 166, 116, 0.2) 0%,
        rgba(186, 166, 116, 0.3) 100%);
    border: 1px solid rgba(186, 166, 116, 0.5);
    color: rgba(186, 166, 116, 1);
}

.machine-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

/* Loading */
.loading {
    padding: 60px 20px;
    text-align: center;
    color: rgba(186, 166, 116, 0.6);
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .panel-hangar {
        width: min(90vw, 800px);
    }
}

@media (max-width: 768px) {
    .panel-hangar {
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: calc(100vh - 70px);
    }

    .panel-hangar .tab-text {
        display: none;
    }

    .recipe-grid,
    .machines-grid {
        grid-template-columns: 1fr;
    }

    .inventory-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

/* ========== CRAFTING FILTERS ========== */
.crafting-filters {
    display: flex;
    flex-direction: column;
    gap: var(--hg-gap-md);
    padding: var(--hg-pad-md);
    background: var(--hg-bg-darker);
    border-bottom: 1px solid var(--hg-gold-border);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: var(--hg-gap-md);
    flex-wrap: wrap;
}

.filter-row label {
    color: var(--hg-teal-accent);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
}

.filter-btn {
    padding: var(--hg-pad-sm) var(--hg-pad-md);
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 4px;
    color: var(--hg-teal-accent);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(20, 184, 166, 0.2);
    border-color: var(--hg-teal-accent);
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.2);
}

.filter-btn.active {
    background: var(--hg-teal-accent);
    color: #0a0a0f;
    border-color: var(--hg-teal-accent);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.4);
}

.filter-btn.small {
    padding: 4px 8px;
    font-size: 10px;
}

/* ========== ENHANCED RECIPE CARDS ========== */
.recipe-card {
    background: var(--hg-bg-darker);
    border: 1px solid var(--hg-gold-border);
    border-radius: 6px;
    padding: var(--hg-pad-md);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: var(--hg-gap-sm);
}

.recipe-card:hover {
    border-color: var(--hg-teal-accent);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.2);
    transform: translateY(-2px);
}

.recipe-card.disabled {
    opacity: 0.5;
    filter: grayscale(0.5);
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recipe-icon {
    font-size: 28px;
    line-height: 1;
}

.tier-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge.tier-1 {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.tier-badge.tier-2 {
    background: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
    border: 1px solid rgba(74, 144, 226, 0.4);
}

.tier-badge.tier-3 {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.4);
}

.slot-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 3px;
    font-size: 9px;
    color: var(--hg-teal-accent);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.recipe-effect {
    font-size: 10px;
    color: #9ca3af;
    font-style: italic;
    margin: 2px 0;
    line-height: 1.3;
}

.recipe-materials {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0;
}

.recipe-materials .material {
    padding: 2px 6px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 3px;
    font-size: 9px;
    color: var(--hg-green-glow);
}

.recipe-materials .material.insufficient {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.recipe-materials .material.has-enough {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
}

.recipe-cost {
    font-size: 10px;
    color: var(--hg-gold-accent);
    margin-top: 4px;
}

.craft-btn {
    width: 100%;
    padding: var(--hg-pad-sm);
    background: linear-gradient(135deg, var(--hg-teal-accent), var(--hg-green-glow));
    border: 1px solid var(--hg-teal-accent);
    border-radius: 4px;
    color: #0a0a0f;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.craft-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.4);
}

.craft-btn:disabled {
    background: rgba(100, 100, 120, 0.2);
    border-color: rgba(100, 100, 120, 0.3);
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.6;
}

.no-recipes {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 13px;
}
