/**
 * GrowthScape - Inventory UI Styles
 * A polished, game-like inventory interface
 */

/* ============================================
   Bottom Action Bar Container
   ============================================ */

.bottom-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 90;
}

/* ============================================
   Inventory Button (in bottom bar)
   ============================================ */

.inventory-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #1e2a4a, #16213e);
    border: 2px solid #2a3f5f;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 0 0 rgba(233, 69, 96, 0),
        inset 0 -4px 12px rgba(0, 0, 0, 0.3),
        inset 0 4px 12px rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.inventory-toggle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(233, 69, 96, 0.3) 60deg,
        transparent 120deg,
        rgba(83, 52, 131, 0.3) 180deg,
        transparent 240deg,
        rgba(233, 69, 96, 0.3) 300deg,
        transparent 360deg
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.inventory-toggle:hover {
    transform: scale(1.08);
    border-color: #e94560;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 24px rgba(233, 69, 96, 0.3),
        inset 0 -4px 12px rgba(0, 0, 0, 0.3),
        inset 0 4px 12px rgba(255, 255, 255, 0.08);
}

.inventory-toggle:hover::before {
    opacity: 1;
    animation: rotate-glow 3s linear infinite;
}

.inventory-toggle:active {
    transform: scale(0.95);
}

.inventory-toggle.active {
    border-color: #e94560;
    background: linear-gradient(145deg, #2a1a2e, #1a1a2e);
}

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

/* Bag Icon */
.bag-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.inventory-toggle:hover .bag-icon {
    transform: scale(1.05) rotate(-3deg);
}

.inventory-toggle:hover .bag-buckle {
    filter: brightness(1.2);
}

/* Item Count Badge */
.inventory-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #e94560, #c73e54);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.4);
    border: 2px solid #1a1a2e;
}

.inventory-count.has-items {
    opacity: 1;
    transform: scale(1);
}

/* Glow effect behind button */
.bag-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -2;
}

.inventory-toggle:hover .bag-glow {
    opacity: 1;
}


/* ============================================
   Inventory Backdrop
   ============================================ */

.inventory-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 200;
}

.inventory-backdrop.visible {
    opacity: 1;
    visibility: visible;
}


/* ============================================
   Inventory Panel
   ============================================ */

.inventory-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    background: linear-gradient(180deg, #1e2a4a 0%, #16213e 100%);
    border-radius: 24px 24px 0 0;
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 -8px 48px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.inventory-panel.open {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.inventory-panel-inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Panel decorative corners */
.panel-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.panel-decoration::before,
.panel-decoration::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, #e94560, #533483);
}

.panel-decoration.top-left {
    top: 0;
    left: 0;
}
.panel-decoration.top-left::before {
    top: 0;
    left: 0;
    width: 24px;
    height: 3px;
    border-radius: 0 0 3px 0;
}
.panel-decoration.top-left::after {
    top: 0;
    left: 0;
    width: 3px;
    height: 24px;
    border-radius: 0 0 3px 0;
}

.panel-decoration.top-right {
    top: 0;
    right: 0;
}
.panel-decoration.top-right::before {
    top: 0;
    right: 0;
    width: 24px;
    height: 3px;
    border-radius: 0 0 0 3px;
}
.panel-decoration.top-right::after {
    top: 0;
    right: 0;
    width: 3px;
    height: 24px;
    border-radius: 0 0 0 3px;
}

.panel-decoration.bottom-left {
    bottom: 0;
    left: 0;
}
.panel-decoration.bottom-left::before {
    bottom: 0;
    left: 0;
    width: 24px;
    height: 3px;
    border-radius: 0 3px 0 0;
}
.panel-decoration.bottom-left::after {
    bottom: 0;
    left: 0;
    width: 3px;
    height: 24px;
    border-radius: 0 3px 0 0;
}

.panel-decoration.bottom-right {
    bottom: 0;
    right: 0;
}
.panel-decoration.bottom-right::before {
    bottom: 0;
    right: 0;
    width: 24px;
    height: 3px;
    border-radius: 3px 0 0 0;
}
.panel-decoration.bottom-right::after {
    bottom: 0;
    right: 0;
    width: 3px;
    height: 24px;
    border-radius: 3px 0 0 0;
}


/* ============================================
   Inventory Header
   ============================================ */

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

.inventory-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    width: 28px;
    height: 28px;
    color: #e94560;
}

.inventory-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.inventory-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.inventory-close svg {
    width: 20px;
    height: 20px;
    color: #a0a0a0;
    transition: color 0.2s ease;
}

.inventory-close:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: rgba(233, 69, 96, 0.3);
}

.inventory-close:hover svg {
    color: #e94560;
}


/* ============================================
   Inventory Info Bar
   ============================================ */

.inventory-info {
    display: flex;
    justify-content: flex-end;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slot-count {
    font-size: 13px;
    color: #a0a0a0;
    font-weight: 500;
}

.slot-count span:first-child {
    color: #e94560;
    font-weight: 700;
}


/* ============================================
   Inventory Grid
   ============================================ */

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 4px;
}

.inventory-slot {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #12192e, #0e1525);
    border: 2px solid #2a3550;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.inventory-slot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.inventory-slot:hover {
    border-color: #4a5a80;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.inventory-slot.selected {
    border-color: #e94560;
    box-shadow:
        0 0 0 2px rgba(233, 69, 96, 0.3),
        0 4px 16px rgba(233, 69, 96, 0.2);
}

.inventory-slot.has-item {
    border-color: #3a4a6a;
}

.inventory-slot.has-item:hover {
    border-color: #5a7aaa;
}

/* Slot content (item icon area) */
.slot-content {
    position: absolute;
    inset: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.inventory-slot:hover .slot-content {
    transform: scale(1.05);
}

/* Item quantity */
.inventory-slot .slot-count {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Hover shine effect */
.slot-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.inventory-slot:hover .slot-hover {
    opacity: 1;
}

/* Empty slot pattern */
.inventory-slot:not(.has-item) .slot-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.5;
}


/* ============================================
   Item Details Panel
   ============================================ */

.item-details {
    min-height: 72px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.item-details-empty {
    width: 100%;
    text-align: center;
    color: #5a6a8a;
    font-size: 13px;
    font-style: italic;
}

.item-details-content {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.item-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.item-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
}

.item-info p {
    font-size: 12px;
    color: #8a9ab0;
    margin: 0;
    line-height: 1.4;
}


/* ============================================
   Animations
   ============================================ */

/* Staggered slot reveal */
.inventory-panel.open .inventory-slot {
    animation: slot-reveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes slot-reveal {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Apply staggered delays */
.inventory-slot:nth-child(1) { animation-delay: 0.05s; }
.inventory-slot:nth-child(2) { animation-delay: 0.07s; }
.inventory-slot:nth-child(3) { animation-delay: 0.09s; }
.inventory-slot:nth-child(4) { animation-delay: 0.11s; }
.inventory-slot:nth-child(5) { animation-delay: 0.13s; }
.inventory-slot:nth-child(6) { animation-delay: 0.15s; }
.inventory-slot:nth-child(7) { animation-delay: 0.17s; }
.inventory-slot:nth-child(8) { animation-delay: 0.19s; }
.inventory-slot:nth-child(9) { animation-delay: 0.21s; }
.inventory-slot:nth-child(10) { animation-delay: 0.23s; }
.inventory-slot:nth-child(11) { animation-delay: 0.25s; }
.inventory-slot:nth-child(12) { animation-delay: 0.27s; }
.inventory-slot:nth-child(13) { animation-delay: 0.29s; }
.inventory-slot:nth-child(14) { animation-delay: 0.31s; }
.inventory-slot:nth-child(15) { animation-delay: 0.33s; }
.inventory-slot:nth-child(16) { animation-delay: 0.35s; }
.inventory-slot:nth-child(17) { animation-delay: 0.37s; }
.inventory-slot:nth-child(18) { animation-delay: 0.39s; }
.inventory-slot:nth-child(19) { animation-delay: 0.41s; }
.inventory-slot:nth-child(20) { animation-delay: 0.43s; }


/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 480px) {
    .inventory-toggle {
        width: 48px;
        height: 48px;
        top: 70px;
        left: 12px;
    }

    .bag-icon {
        width: 26px;
        height: 26px;
    }

    .inventory-panel {
        width: 95%;
        max-height: 85vh;
    }

    .inventory-panel-inner {
        padding: 16px;
        gap: 12px;
    }

    .inventory-grid {
        gap: 8px;
    }

    .inventory-title h2 {
        font-size: 18px;
    }

    .hotbar {
        bottom: 12px;
        gap: 6px;
        padding: 8px 12px;
    }

    .hotbar-slot {
        width: 52px;
        height: 52px;
    }

    .hotbar-key {
        font-size: 9px;
        padding: 1px 4px;
    }
}

@media (min-width: 768px) {
    .inventory-panel {
        bottom: auto;
        top: 50%;
        transform: translateX(-50%) translateY(-50%) scale(0.9);
        border-radius: 24px;
        max-height: 600px;
    }

    .inventory-panel.open {
        transform: translateX(-50%) translateY(-50%) scale(1);
    }
}


/* ============================================
   Quick Select Hotbar
   ============================================ */

.hotbar {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(180deg, rgba(30, 42, 74, 0.95) 0%, rgba(22, 33, 62, 0.98) 100%);
    border: 2px solid rgba(58, 74, 106, 0.6);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hotbar::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, transparent 50%, rgba(83, 52, 131, 0.1) 100%);
    pointer-events: none;
    z-index: -1;
}

.hotbar-slot {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #12192e, #0e1525);
    border: 2px solid #2a3550;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotbar-slot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 10px;
}

.hotbar-slot:hover {
    border-color: #4a6a9a;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.hotbar-slot.has-item {
    border-color: #3a4a6a;
}

.hotbar-slot.has-item:hover {
    border-color: #5a7aaa;
}

.hotbar-slot.selected {
    border-color: #e94560;
    box-shadow:
        0 0 0 3px rgba(233, 69, 96, 0.25),
        0 6px 20px rgba(233, 69, 96, 0.2),
        inset 0 0 20px rgba(233, 69, 96, 0.1);
    transform: translateY(-4px) scale(1.02);
}

.hotbar-slot.selected::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.3) 0%, transparent 60%);
    pointer-events: none;
    animation: hotbar-glow 2s ease-in-out infinite;
}

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

/* Hotbar slot content */
.hotbar-slot-content {
    position: absolute;
    inset: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.hotbar-slot:hover .hotbar-slot-content {
    transform: scale(1.08);
}

.hotbar-slot.selected .hotbar-slot-content {
    transform: scale(1.05);
}

/* Item icon in hotbar */
.hotbar-slot-content svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Quantity badge */
.hotbar-slot .hotbar-count {
    position: absolute;
    bottom: 3px;
    right: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 2;
}

/* Key indicator */
.hotbar-key {
    position: absolute;
    top: 3px;
    left: 4px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(160, 160, 176, 0.8);
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 5px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    letter-spacing: 0.5px;
}

.hotbar-slot.selected .hotbar-key {
    color: #e94560;
    background: rgba(233, 69, 96, 0.15);
}

/* Empty slot pattern */
.hotbar-slot:not(.has-item) .hotbar-slot-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 6px 6px;
    opacity: 0.6;
    border-radius: 8px;
}

/* Hover shine */
.hotbar-slot-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    border-radius: 10px;
}

.hotbar-slot:hover .hotbar-slot-hover {
    opacity: 1;
}

/* Equip animation */
@keyframes equip-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(233, 69, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 69, 96, 0);
    }
}

.hotbar-slot.equip-pulse {
    animation: equip-pulse 0.4s ease-out;
}

/* Equipped item indicator on inventory slot */
.inventory-slot.equipped {
    border-color: #4ade80;
    box-shadow:
        0 0 0 2px rgba(74, 222, 128, 0.3),
        0 4px 16px rgba(74, 222, 128, 0.15);
}

.inventory-slot.equipped::after {
    content: 'E';
    position: absolute;
    top: 3px;
    right: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
    z-index: 3;
}


/* ============================================
   Item Action Bar (right of hotbar)
   ============================================ */

.action-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(30, 42, 74, 0.95) 0%, rgba(22, 33, 62, 0.98) 100%);
    border: 2px solid rgba(74, 222, 128, 0.4);
    border-radius: 14px;
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 20px rgba(74, 222, 128, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.action-bar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.action-bar-inner {
    display: flex;
    gap: 6px;
}

/* Action selection buttons (smaller, compact) */
.action-select-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    background: linear-gradient(145deg, #1a2840, #12192e);
    border: 2px solid #3a4a6a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 60px;
    height: 60px;
}

.action-select-btn:hover {
    border-color: #5a7aaa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.action-select-btn.selected {
    border-color: #4ade80;
    background: linear-gradient(145deg, #1a3828, #12251e);
    box-shadow:
        0 0 0 2px rgba(74, 222, 128, 0.2),
        0 4px 16px rgba(74, 222, 128, 0.15);
}

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

.action-select-btn.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #3a4a6a;
}

.action-select-btn .action-name {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.action-select-btn .action-chance {
    font-size: 9px;
    font-weight: 700;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
}

.action-select-btn.disabled .action-chance {
    color: #666;
    background: rgba(100, 100, 100, 0.15);
}

/* Divider between actions and execute button */
.action-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent);
    margin: 0 4px;
}

/* Execute button (the big action button) */
.action-execute-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    background: linear-gradient(145deg, #1a4828, #124020);
    border: 2px solid #4ade80;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 70px;
    height: 60px;
}

.action-execute-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 6px 20px rgba(74, 222, 128, 0.3),
        0 0 0 3px rgba(74, 222, 128, 0.2);
    background: linear-gradient(145deg, #1e5830, #165028);
}

.action-execute-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.2);
}

.action-execute-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #3a5a4a;
    background: linear-gradient(145deg, #1a2840, #12192e);
}

.action-execute-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.action-execute-btn.cooldown {
    position: relative;
    overflow: hidden;
}

.action-execute-btn.cooldown::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: cooldown-sweep 1s linear forwards;
}

@keyframes cooldown-sweep {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.action-execute-btn .execute-label {
    font-size: 12px;
    font-weight: 700;
    color: #4ade80;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.action-execute-btn .execute-key {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.action-execute-btn:hover .execute-label {
    color: #6ee7a0;
}

/* No action selected state */
.action-execute-btn.no-action .execute-label {
    color: #666;
}

/* Legacy action-button for backwards compatibility */
.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: linear-gradient(145deg, #1a2840, #12192e);
    border: 2px solid #3a5a6a;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 80px;
}

.action-button:hover {
    border-color: #4ade80;
    transform: translateY(-2px);
    box-shadow:
        0 4px 16px rgba(74, 222, 128, 0.2),
        0 0 0 2px rgba(74, 222, 128, 0.15);
    background: linear-gradient(145deg, #1e3048, #16223a);
}

.action-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.15);
}

.action-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #2a3550;
}

.action-button.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #2a3550;
    background: linear-gradient(145deg, #1a2840, #12192e);
}

.action-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.action-requirement {
    font-size: 10px;
    font-weight: 500;
    color: #a0a0a0;
}

.action-chance {
    font-size: 11px;
    font-weight: 700;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

.action-button.disabled .action-chance {
    color: #666;
    background: rgba(100, 100, 100, 0.15);
}

/* Responsive adjustments for bottom bar */
@media (max-width: 480px) {
    .bottom-bar {
        gap: 8px;
    }

    .inventory-toggle {
        width: 52px;
        height: 52px;
    }

    .hotbar {
        padding: 8px 12px;
        gap: 6px;
    }

    .hotbar-slot {
        width: 52px;
        height: 52px;
    }

    .action-bar {
        padding: 8px 10px;
    }

    .action-select-btn {
        min-width: 50px;
        height: 52px;
        padding: 6px 8px;
    }

    .action-execute-btn {
        min-width: 60px;
        height: 52px;
    }
}
