/* ===== EXPEDITION ITEM GRID STYLING ===== */

/* Tab-Navigation */
.expedition-tabs {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #2a2a2a;
    border-bottom: 2px solid #444;
}

.expedition-tab {
    background: transparent;
    border: none;
    color: #999;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.expedition-tab:hover {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
}

.expedition-tab.active {
    color: #2e8b57;
    border-bottom-color: #2e8b57;
}

/* Grid-Panel Container */
.expedition-tab-content {
    position: relative;
    background: #1a1a1a;
}

.expedition-grid-panel {
    display: none;
    padding: 20px;
    height: 100%;
}

.expedition-grid-panel.active {
    display: block;
}

/* Item Grid (ähnlich Rucksack) */
.expedition-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

/* Item Cell */
.expedition-item-cell {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: grab;
    transition: all 0.2s;
    position: relative;
}

.expedition-item-cell:hover {
    border-color: #2e8b57;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.expedition-item-cell:active {
    cursor: grabbing;
}

.expedition-item-cell .item-icon {
    font-size: 2.5em;
    margin-bottom: 5px;
}

.expedition-item-cell .item-name {
    font-size: 0.9em;
    color: #e0e0e0;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expedition-item-cell .item-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(46, 139, 87, 0.8);
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
}

/* Empty State */
.expedition-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.expedition-empty-state p {
    margin: 10px 0;
}

.expedition-empty-state .hint {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* Animation für Count-Änderungen */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.expedition-item-cell.count-changed .item-count {
    animation: pulse 0.3s ease;
}

/* =========================== */
/* CRAFT-BUTTON STYLING */
/* =========================== */

/* Craft-Button in Item-Cells */
.expedition-item-cell {
    position: relative;
}

.expedition-item-cell.empty {
    opacity: 0.6;
    border-style: dashed;
}

.expedition-item-cell .item-icon.dimmed {
    opacity: 0.5;
}

.expedition-item-cell .craft-button {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: #2e8b57;
    border: none;
    color: white;
    padding: 4px 8px;
    font-size: 0.8em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.expedition-item-cell .craft-button:hover {
    background: #3da968;
    transform: translateX(-50%) scale(1.05);
}

.expedition-item-cell .craft-button.disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.expedition-item-cell .craft-button:active {
    transform: translateX(-50%) scale(0.95);
}

/* Craft Toast */
.craft-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(46, 139, 87, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.craft-toast.fade-out {
    animation: fadeOut 0.3s ease;
    opacity: 0;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
