
/* ==================== ACTIVE EXPEDITION PHASE ==================== */

/* Active content layout */
.expedition-active-content {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.expedition-active-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expedition-active-right {
    flex: 1;
    min-width: 0;
}

/* Character info (active phase) */
.expedition-active-character {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(74, 103, 65, 0.3);
    border-radius: 8px;
}

.expedition-active-character .char-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(74, 103, 65, 0.2);
}

.expedition-active-character .char-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expedition-active-character .char-info {
    flex: 1;
}

.expedition-active-character .char-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.expedition-active-character .char-role {
    font-size: 0.9rem;
    color: #aaa;
}

/* Stamina bar */
.expedition-stamina-container {
    padding: 15px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(74, 103, 65, 0.3);
    border-radius: 8px;
}

.stamina-label {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 8px;
}

.stamina-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(74, 103, 65, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.stamina-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #4caf50;
    transition: width 0.3s ease, background 0.3s ease;
}

.stamina-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* Eat button */
.expedition-btn-eat {
    width: 100%;
    padding: 8px 16px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

.expedition-btn-eat:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.expedition-btn-eat:active:not(:disabled) {
    transform: translateY(0);
}

.expedition-btn-eat:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #555;
}

.expedition-btn-eat.drag-over {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.6);
}

/* Return button */
.expedition-btn-return {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

.expedition-btn-return:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.4);
}

.expedition-btn-return:active {
    transform: translateY(0);
}

/* Active backpack (with drag & drop) */
.expedition-backpack-active {
    padding: 10px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(74, 103, 65, 0.3);
    border-radius: 8px;
    width: fit-content;
}

.expedition-backpack-active .expedition-backpack-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4a6741;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.expedition-backpack-active .expedition-backpack-grid {
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 4px;
}

/* Drop zone for discarding items */
.expedition-drop-zone {
    padding: 15px;
    background: rgba(233, 69, 96, 0.1);
    border: 2px dashed rgba(233, 69, 96, 0.3);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.expedition-drop-zone:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: rgba(233, 69, 96, 0.5);
}

.expedition-drop-zone.drag-over {
    background: rgba(233, 69, 96, 0.3);
    border-color: #e94560;
    border-style: solid;
    transform: scale(1.02);
}

.drop-zone-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.drop-zone-text {
    font-size: 0.9rem;
    color: #e94560;
    font-family: 'Courier New', monospace;
}

/* Event log */
.expedition-event-log {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(74, 103, 65, 0.3);
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.expedition-event-log h3 {
    margin: 0 0 15px 0;
    color: #4a6741;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
}

.event-log-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 600px;
}

.event-log-empty {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.event-log-entry {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border-left: 3px solid #4a6741;
}

.event-log-entry.event-type-found_resource {
    border-left-color: #4caf50;
}

.event-log-entry.event-type-exhausted {
    border-left-color: #e94560;
    background: rgba(233, 69, 96, 0.1);
}

.event-log-entry.event-type-stamina_check {
    border-left-color: #ffa726;
}

.event-time {
    color: #888;
    font-size: 0.8rem;
    min-width: 65px;
    font-family: monospace;
}

.event-text {
    color: #ccc;
    font-size: 0.95rem;
    flex: 1;
}

/* Choice Events */
.event-log-entry.event-type-choice {
    border-left-color: #2196f3;
    background: rgba(33, 150, 243, 0.08);
    flex-direction: column;
}

.event-log-entry.event-type-choice_result {
    border-left-color: #9c27b0;
    background: rgba(156, 39, 176, 0.05);
}

.event-log-entry.event-type-food_eaten {
    border-left-color: #4caf50;
    background: rgba(76, 175, 80, 0.08);
}

/* Choice buttons container */
.expedition-choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}

/* Choice button */
.expedition-choice-btn {
    width: 100%;
    padding: 10px 16px;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 6px;
    color: #64b5f6;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Choice button timer background */
.expedition-choice-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(200, 200, 200, 0.15);
    transform: translateX(var(--timer-progress, 100%));
    z-index: 0;
    pointer-events: none;
    transition: none;
}

.expedition-choice-btn.timer-active::before {
    /* Progress is controlled by JavaScript via --timer-progress */
}

/* Ensure button content is above timer */
.expedition-choice-btn > * {
    position: relative;
    z-index: 1;
}

.expedition-choice-btn:hover:not(:disabled) {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.5);
    transform: translateX(4px);
}

.expedition-choice-btn:active:not(:disabled) {
    transform: translateX(2px);
}

.expedition-choice-btn.selected {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    color: #4caf50;
}

.expedition-choice-btn.disabled,
.expedition-choice-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.1);
    border-color: rgba(100, 100, 100, 0.2);
    color: #777;
}

/* Choice costs display */
.choice-costs {
    font-size: 0.85rem;
    color: #aaa;
    margin-left: 8px;
}

.choice-cost-stamina {
    color: #ffa726;
}

.choice-cost-item {
    color: #64b5f6;
}

/* Item consumption styling */
.choice-cost-item.consumable {
    color: #e94560;  /* Rot für verbrauchbar */
    font-weight: 500;
}

.choice-cost-item.reusable {
    color: #4caf50;  /* Grün für wiederverwendbar */
    font-weight: 500;
}

.choice-cost-slots {
    color: #9c27b0;
}

/* Scrollbar styling */
.event-log-list::-webkit-scrollbar {
    width: 8px;
}

.event-log-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.event-log-list::-webkit-scrollbar-thumb {
    background: rgba(74, 103, 65, 0.4);
    border-radius: 4px;
}

.event-log-list::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 103, 65, 0.6);
}

/* Animation for auto-added items */
@keyframes expedition-item-added {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
