/* 인벤토리 시스템 스타일 */
/* 당근영어 앱 - 아이템 시스템 */

/* 인벤토리 버튼 */
.inventory-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

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

.inventory-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.inventory-icon i {
    color: white;
    font-size: 20px;
}

.item-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid white;
}

.inventory-text {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* 인벤토리 모달 */
.inventory-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.inventory-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.inventory-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

/* 활성 부스터 정보 */
.active-boost-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.boost-icon {
    font-size: 30px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.boost-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.boost-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* 인벤토리 아이템 목록 */
.inventory-items {
    margin-bottom: 25px;
}

.empty-inventory {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.inventory-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.inventory-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.inventory-item.common {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.inventory-item.common::before {
    background: #6c757d;
}

.inventory-item.uncommon {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.inventory-item.uncommon::before {
    background: #28a745;
}

.inventory-item.rare {
    background: linear-gradient(135deg, #cce7ff 0%, #b3d9ff 100%);
    border-color: #007bff;
}

.inventory-item.rare::before {
    background: #007bff;
}

.inventory-item.epic {
    background: linear-gradient(135deg, #e2d9f3 0%, #d1c4e9 100%);
    border-color: #6f42c1;
}

.inventory-item.epic::before {
    background: #6f42c1;
}

.inventory-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.inventory-item:hover::before {
    opacity: 1;
}

.item-icon {
    font-size: 30px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    min-width: 40px;
    text-align: center;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.item-description {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.item-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.item-quantity {
    color: #007bff;
    font-weight: 600;
}

.item-rarity {
    color: #6c757d;
    font-weight: 500;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.use-item-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.use-item-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 인벤토리 푸터 */
.inventory-footer {
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.stat-icon {
    font-size: 16px;
}

.stat-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* 부스터 상태 표시 */
.boost-status {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    animation: slideInRight 0.5s ease;
}

.boost-status.fade-out {
    animation: slideOutRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.boost-status-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 200px;
}

.boost-status .boost-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.boost-text {
    flex: 1;
    min-width: 0;
}

.boost-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.boost-multiplier {
    font-size: 12px;
    opacity: 0.9;
}

/* 아이템 획득 알림 */
.item-obtained-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    animation: slideInRight 0.5s ease;
}

.item-obtained-content {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #e9ecef;
    min-width: 250px;
}

.item-obtained-content .item-icon {
    font-size: 30px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.item-obtained-content .item-text h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.item-obtained-content .item-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* 알림 시스템 */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: slideInDown 0.5s ease;
}

.notification.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.notification.info {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
}

@keyframes slideInDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* 아이템 상점 모달 */
.item-shop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.item-shop-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.shop-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.shop-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shop-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-item.common::before {
    background: #6c757d;
}

.shop-item.uncommon::before {
    background: #28a745;
}

.shop-item.rare::before {
    background: #007bff;
}

.shop-item.epic::before {
    background: #6f42c1;
}

.shop-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.shop-item:hover::before {
    opacity: 1;
}

.shop-item .item-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 15px;
}

.shop-item .item-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.shop-item .item-info p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.item-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #ff6b35;
}

.price-icon {
    font-size: 16px;
}

.buy-item-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-item-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .inventory-button {
        top: 15px;
        left: 15px;
    }
    
    .inventory-icon {
        width: 45px;
        height: 45px;
    }
    
    .inventory-icon i {
        font-size: 18px;
    }
    
    .item-count {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    .inventory-text {
        font-size: 10px;
    }
    
    .inventory-content {
        padding: 20px;
        margin: 20px;
    }
    
    .shop-items {
        grid-template-columns: 1fr;
    }
    
    .boost-status {
        top: 70px;
        right: 15px;
    }
    
    .boost-status-content {
        min-width: 180px;
        padding: 12px 15px;
    }
    
    .item-obtained-notification {
        top: 80px;
        right: 15px;
    }
    
    .item-obtained-content {
        min-width: 220px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .inventory-icon {
        width: 40px;
        height: 40px;
    }
    
    .inventory-icon i {
        font-size: 16px;
    }
    
    .item-count {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }
    
    .inventory-text {
        font-size: 9px;
    }
    
    .inventory-content {
        padding: 15px;
        margin: 15px;
    }
    
    .inventory-item {
        padding: 15px;
        gap: 12px;
    }
    
    .item-icon {
        font-size: 25px;
        min-width: 35px;
    }
    
    .item-name {
        font-size: 14px;
    }
    
    .item-description {
        font-size: 12px;
    }
    
    .item-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .boost-status-content {
        min-width: 160px;
        padding: 10px 12px;
    }
    
    .boost-name {
        font-size: 12px;
    }
    
    .boost-multiplier {
        font-size: 10px;
    }
} 